dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to start

  1. #1
    Join Date
    Mar 2004
    Posts
    11

    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.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    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.

    }

  3. #3
    Join Date
    Dec 2003
    Location
    Okla, US
    Posts
    126
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center