-
how to start
Can someone please put together a program to teach me some of the basics on how to program in C++. As you can see I am a beginner user of C++. I need help, please!
Last edited by Danny; 03-09-2004 at 11:48 PM.
-
c++ currently takes about 2 years to fully learn. Its faster if you know a look-alike language. You need a book.
//this is a comment. everything after // is a comment until end of line
#include<iostream> //<file> are standard includes (part of the language) or in a known path (I do not like this use)
#include "c:\include\myfile.h" // this is a file I wrote
using namespace std; //this allows use of the standard language includes
int main() //the main program. returns int(eger) to the os for historic reasons.
{
int x; //variable declared
x = 1; //variable initialized
if(x == 1) //condition
for(x = 0; x < 10; x++) //for loop
cout << " hello new guy\n" ; << write to the screen.
}
-
Are you wanting to do something specific? Any plans?
If you want to became a programmer, then you will have to get a compiler/IDE. Any many books :)
If you want to do something specific you can cut down on what to learn. Such as windows/linux development, game development, GUI design ... etc.
gorshing
newb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|