Thread: Lets Begin
View Single Post
  #2 (permalink)  
Old September 12th, 2005, 01:51 AM
Force-X's Avatar
Force-X Force-X is offline
New Member
 
Posts/Threads: 7/1
Thanks: 0
Thanked 1 Time in 1 Post
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Rep Power/Points: 0/60
Force-X is on a distinguished road
Default with some explanation

in my opinion, we should start with c first it will be easier to understand c++.
dont laugh at this though ---->
/*this is how you begin rofl*/ // compiler doesnt read anything inside '/*...*/' sign.
// this double slash sign is also used to comment out something



#include <stdio.h> // this will call to include the header file named stdio.h
int main(void) { // this defines your main function
printf("Hello World! We are starting lol\n"); // the printf triggers the function to print whatever the msg we have
return 0; // every line ends with a ';'
} // you are calling the function to an end by putting the closing bracket

#include <stdio.h>
int main () { printf ("Hello World!\n"); return 0; } <--- this should look easier now lol

Jubair bro, nice coding
guys, im not pro in it so if you find any mistake please leave me a comment thanks.
__________________
NEWBIE
| Reply With Quote