what does this mean?

tmh88tmh88 Pittsburgh / Athens, OH
edited November 2005 in Internet & Media
Im new to c++ and i see this at the beginning of every program my book shows. It clearly explains everything but these few pieces of hte code. What do they mean, can guess the one is for standard spacing or something, but what about the includes and the intmain thing. thanks

#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;

int main(int nNumberofArgs, char* pszArgs[])

Comments

  • IamMrRayIamMrRay Otis, MA
    edited November 2005
    this is just normal syntax. the #include is basically telling the program to include the libraries so you do not need to recode them. who would want to?--take alot of time. thats why you make libraries, so you can just plug them in for when you need them.

    #include <iostream> /*iostream and several other parts are the main library files that are used in c++ and the file between the symbols is the specified library. */

    int main(int nNumberofArgs, char* pszArgs[])

    /*this is intitiating functions that are nessesary for the program to run, they arent called that nessesarally, but there will be functions that are defined. */

    /* */ means a comment, the code is excluded from the compilation

    I would suggest investing in a book for this you will learn this sorta stuff in chapter one or two but probably one. Im not too big on programming however I want to get good eventually.
Sign In or Register to comment.