CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 147 users online: 1 member, 113 guests and 33 bots.
Members: None.
Bots: VoilaBot (3), Spinn3r (1), Magpie Crawler (3), VoilaBot (8), Googlebot (18).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 11 Jun 2012 03:41:56 pm    Post subject: Help a noob learn C.

I have decided to learn C so I can make programs for the Prizm, hopefully.

I don't know anything about programing, the only thing I know is the basic stuff with a computer and some PS and 3DS MAX.

Right now I am on a old slow computer running Windows 8.

I have Checked some threds about learning C for the prizm but I don't get it all, what to use etc.

"What You'll Need
:: Casio fx-9860 SDK: Note that you need to have an fx-9860 calculator to download this SDK"

http://www.fishbot.co.cc/downloads/fx9860sdk.html This link seems to be down for me so I cant get that.

What SDK should I use? GCC?

If theres a guide on how to set everything up it would be great.

Thanks! Smile
_________________
(=
Back to top
Tari


Systems Integrator


Joined: 03 Jul 2006
Posts: 2120
Location: Always-winter, Michigan

Posted: 11 Jun 2012 03:44:56 pm    Post subject:

Prizm GCC SDK setup guide.
That'll get you up and running, but won't help with figuring out what you're doing in C. Someone else can probably offer resources on that, as I don't know of any good ones offhand.
_________________


Ask questions the smart way · タリ
Back to top
zeldaking


Power User


Joined: 31 Jul 2011
Posts: 474
Location: Utah

Posted: 11 Jun 2012 03:46:40 pm    Post subject:

When I get on my computer (on my 3DS right now) I'll post all my getting started tutorials for you. In the mean time you need to learn C. I prefer a book to learn but it is up to you. I would start by googleing a C tutorial, there are some good ones out there.
Here you go Smile
http://www.cemetech.net/forum/viewtopic.php?t=7876
Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 12 Jun 2012 01:05:35 pm    Post subject:

I am reading some tutorials but I think im kinda' slow...
"if ( 5 < 10 )
printf( "Five is now less than ten, that's a big surprise" );
Here, we're just evaluating the statement, "is five less than ten", to see if it is true or not; with any luck, it's not! If you want, you can write your own full program including stdio.h and put this in the main function and run it to test."

Anyone that can show me how to do this program? All I can do now is "hello world" and make a program that tells me to press a number then says what number I pressed....
_________________
(=
Back to top
seana11


Super-Expert


Joined: 23 May 2011
Posts: 833
Location: Well, the sign says "You are here"...

Posted: 12 Jun 2012 02:18:59 pm    Post subject:

lirkaren wrote:
I am reading some tutorials but I think im kinda' slow...
"if ( 5 < 10 )
printf( "Five is now less than ten, that's a big surprise" );
Here, we're just evaluating the statement, "is five less than ten", to see if it is true or not; with any luck, it's not! If you want, you can write your own full program including stdio.h and put this in the main function and run it to test."

Anyone that can show me how to do this program? All I can do now is "hello world" and make a program that tells me to press a number then says what number I pressed....



Code:
#include <stdio.h>

int main(){
     if(5<10) printf("Five is less than 10. \n");
}


For now, just stick whatever you want to test in the main procedure.
_________________

Code:
-----BEGIN GEEK CODE BLOCK-----
GCS d- s+: a---@ C+++ UL++ P L+++ E- W++ N o? K? w--- O? M--
V- PS++(--) PE- Y+ PGP t 5? X(+) R tv-- b++(+++) DI+(++)
D(+) G e-(*)>++@ h! r!>+++ y?
------END GEEK CODE BLOCK------
decoded
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55878
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2012 02:20:31 pm    Post subject: Re: Help a noob learn C.

lirkaren wrote:
What You'll Need
:: Casio fx-9860 SDK: Note that you need to have an fx-9860 calculator to download this SDK"
That's entirely outdated; where was that so that I can add a note pointing readers to the PrizmSDK? That was for the miniSDK/microSDK, which is no longer maintained as far as I know.
_________________


Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 12 Jun 2012 03:13:16 pm    Post subject: Re: Help a noob learn C.

KermMartian wrote:
where was that so that I can add a note pointing readers to the PrizmSDK?


It was in [HOWTO] Prizm C Development.
_________________
(=
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55878
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2012 06:07:55 pm    Post subject: Re: Help a noob learn C.

lirkaren wrote:
KermMartian wrote:
where was that so that I can add a note pointing readers to the PrizmSDK?


It was in [HOWTO] Prizm C Development.
Thanks for that. I have updated that thread to instead point over to this page on WikiPrizm:

http://prizm.cemetech.net/index.php?title=PrizmSDK_Setup_Guide
_________________


Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 01 Jul 2012 09:39:37 am    Post subject:

Anyone knows what I am doing wrong?


using System;
namespace Project1
{
class Class1
{
public.static.void Main(string[] args);
{
int x = 78;
Console.Write(x);
Console.ReadKey();
}
}
}
_________________
(=
Back to top
Ashbad


I am governor Jerry Brown


Joined: 01 Dec 2010
Posts: 2423
Location: There lived a certain man in Russia long ago

Posted: 01 Jul 2012 09:43:26 am    Post subject:

lirkaren wrote:
Anyone knows what I am doing wrong?


using System;
namespace Project1
{
class Class1
{
public.static.void Main(string[] args);
{
int x = 78;
Console.Write(x);
Console.ReadKey();
}
}
}


You're writing code in C#... not C.
_________________
-Ashbad
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55878
Location: Earth, Sol, Milky Way

Posted: 01 Jul 2012 09:45:59 am    Post subject:

That is indeed nothing even remotely related to C/C++. Smile And I'm a bit sickened by how much C# looks like Java, to be honest, with that public.static.void main. Sad
_________________


Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 01 Jul 2012 09:46:00 am    Post subject:

Yes the guide is for C# and Visual Studio.
but I still don't get what I am doing wrong (noob).
_________________
(=
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55878
Location: Earth, Sol, Milky Way

Posted: 01 Jul 2012 09:48:51 am    Post subject:

lirkaren wrote:
Yes the guide is for C# and Visual Studio.
but I still don't get what I am doing wrong (noob).
C# is not C at all. Smile Did you want to be learning C (and eventually C++), or C#? As far as what is wrong with that code, C++-wise, you should see what error messages the interpreter is throwing.
_________________


Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 01 Jul 2012 09:52:08 am    Post subject:

KermMartian wrote:
That is indeed nothing even remotely related to C/C++. Smile And I'm a bit sickened by how much C# looks like Java, to be honest, with that public.static.void main. Sad

Thought C# and C was the same Razz

Found som Youtube tutorials in swedish but he don't have C tutorials, should I move on to the C++ tutorials instead? Smile
_________________
(=
Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 01 Jul 2012 09:58:38 am    Post subject:


Code:
public.static.void


should be


Code:
public static void


(for future reference if you ever decide to use C#)
_________________




Last edited by qazz42 on 01 Jul 2012 10:29:04 am; edited 1 time in total
Back to top
Ashbad


I am governor Jerry Brown


Joined: 01 Dec 2010
Posts: 2423
Location: There lived a certain man in Russia long ago

Posted: 01 Jul 2012 10:03:10 am    Post subject:

qazz42 wrote:

Code:
public.static.void


should be


Code:
public static void


What's the point of correcting his C# syntax if he's using the totally wrong language anyways? Rolling Eyes
_________________
-Ashbad
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55878
Location: Earth, Sol, Milky Way

Posted: 01 Jul 2012 10:09:51 am    Post subject:

I recommend that between C and C++, you learn C first, since (and don't you dare go all pedant on me, guys) almost all valid C code is also valid C++ code, but all valid C++ code is absolutely not valid C code. Thus, find yourself some decent C tutorials and go to it! Although I always find that I learn best by mostly playing with, modifying, and teasing apart existing code.
_________________


Back to top
Ashbad


I am governor Jerry Brown


Joined: 01 Dec 2010
Posts: 2423
Location: There lived a certain man in Russia long ago

Posted: 01 Jul 2012 10:31:26 am    Post subject:

As for recommended tutorials, I personally like throwing this at people because it's rather well done, and teaches everything you'll need to know to get yourself up to speed in C. http://www.cprogramming.com/tutorial/c-tutorial.html
_________________
-Ashbad
Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 01 Jul 2012 10:39:48 am    Post subject:

I think I will start with C++ becouse the videos are in swedish and he explains pretty good so I think it will be more easy for me to do that.

http://www.youtube.com/watch?v=ahFONPNt3vY&feature=relmfu
_________________
(=
Back to top
zeldaking


Power User


Joined: 31 Jul 2011
Posts: 474
Location: Utah

Posted: 01 Jul 2012 11:02:10 am    Post subject:

That is what I kind of did, I learned C++ partly. Then I switched over and started C, let me tell you it can be a bit confusing. As Kerm said some C++ code doesn't translate or work in C. So I also recommend learning C first. Good luck and have fun.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Page 1 of 2 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.043327 seconds.