Errors in a simple program

April 23, 2011 at 17:09:42
Specs: Windows 7
I'm new to C programming and I'm trying to learn from this site.
http://www.learn-programming.za.net...
I followed all the instructions that it specifies me to do.
After doing all the step, i am in the part where I have to do something on the command prompt but there were 2 errors that occured.
First: unable to open include file 'studio.h'
second: Call to function 'printf' with no prototype in function main.
As you notice, i have no knowledge on any type of programming except the basics in Visual Basic which i took 2 years ago.
I'm using a Windows 7. Can Anyone help me? Or Suggest anything? Thank you

See More: Errors in a simple program

Report •


#1
April 23, 2011 at 17:23:20
Linked tutorial: . . . you need to download borland C++ . . .
It's a terribly out of date tutorial. Do yourself a favor and get a newer one. The fact that Borland doesn't even run on modern OSes without emulation should tell you how outdated it is. (Your second problem is caused by the first, and the first wouldn't be if you used a modern C/C++ IDE.)

How To Ask Questions The Smart Way


Report •

#2
April 23, 2011 at 18:12:33
I've downloaded a borland C++ from this site..
http://edn.embarcadero.com/article/...
Is this a good one?
Where can I get a newer tutorial? Can you suggest me any website?
Thanks!

Report •

#3
April 23, 2011 at 18:31:15
Honestly, programming is fairly abstract, and to get a good handle on the subject, you need a good book or three. I don't have any personal recommendations, so I'll defer to the C++ FAQ Lite.

If you're looking for a modern IDE, and you should be, then I suggest either Visual Studio Express (free, more polished), or Code::Blocks (also free, mostly portable).

If you're dead set on a tutorial (and you realize you'll give the language up because a tutorial can't teach you everything you need to know), there's always the tutorial on cplusplus.com.

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
April 23, 2011 at 19:43:24
May I ask whats the difference between C and C++? Isn't the C++ like the more advanced version of C?
And I saw the cplusplus.com awhile ago in other forums but thanks for giving it to me. Does the tutorials in cplusplus.com recommends the user to a IDE or is it ok if I used either Studio Express or Code::Blocks?
And What's IDE stands for?
I'm sorry if I ask too much.

Report •

#5
April 23, 2011 at 23:02:05
In Code:: Blocks. Do i need to download both setups for Windows?
Thanks!

Report •

#6
April 24, 2011 at 02:20:59
whats the difference between C and C++?
A number of things, and I'm sure to forget something if I tried to make a list. In general, you can think of C++ as a superset of C. C++ has classes, an expanded library, exceptions, and pretty much demands the programmer embrace RAII; C doesn't.

Does the tutorials in cplusplus.com recommends the user to a IDE or is it ok if I used either Studio Express or Code::Blocks?
The tutorial tries to teach you the language, and not a complier, so pick whichever IDE you want.

What's IDE stands for?
Integrated Development Environment

Do i need to download both setups for Windows?
Just the larger of the two.

How To Ask Questions The Smart Way


Report •

#7
April 24, 2011 at 12:38:22
Well, cause i'm trying to learn by inputing the language into an IDE and compile it and see how it works. I tried using Code::Blocks but I don't get how it is used.

Report •

#8
April 24, 2011 at 13:41:38

Report •

#9
April 25, 2011 at 17:34:44
Where do I input the code? Then How what do I do to compile it, make it into an .exe file then make work as a program?

Report •

Ask Question