| 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!  _________________ (= |
|
| 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
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"...
|
|
| 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++. And I'm a bit sickened by how much C# looks like Java, to be honest, with that public.static.void main.  _________________
 |
|
| 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. 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++. And I'm a bit sickened by how much C# looks like Java, to be honest, with that public.static.void main.  |
Thought C# and C was the same
Found som Youtube tutorials in swedish but he don't have C tutorials, should I move on to the C++ tutorials instead?  _________________ (= |
|
| Back to top |
|
|
qazz42

Vampire Killer

Joined: 07 Apr 2010 Posts: 4179
|
|
| 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?  _________________ -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
|
|
| 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 |
|
|
|