Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Main Index FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: C++:
C++ For Beginners

 

 


chaosterror90
Enthusiast


Nov 30, 2005, 10:30 AM

Post #1 of 8 (1103 views)
Shortcut
C++ For Beginners Can't Post

This tutorial for complete beginners.
Use a compiler like VC++ 6 or Bloodshed.


CODE

#include <iostream.h> //Includes iostream for I/O operations?!?!?!?!?!? LIEK

char f[50] = "Hello World!"; //Sets f to 50 character length and puts "Hello World!" in

int main() //Initialises main
{ //All code in Main goes after this
cout << f << "\n"; //Outputs whats in f then makes a new line ("\n")
return 0; //Ends the program
}//End of code for main




Hope this was helpful for people who know no C++


-----------------------------------------------------------
Join my fourms at http://runefun.myfreeforum.org/index.php

and enjoy!



zero kracken
Enthusiast


Dec 14, 2005, 8:50 AM

Post #2 of 8 (1082 views)
Shortcut
Re: [chaosterror90] C++ For Beginners [In reply to] Can't Post

http://forum.free-games.com.au/forum/Game_Technology_C8/C%2B%2B_F50/C%2B%2B_for_beginners_P224630/

This thread is pointless. You just copied everything.


ZeroKracken


Matviy
Enthusiast


Jan 4, 2006, 8:34 PM

Post #3 of 8 (1038 views)
Shortcut
Re: [chaosterror90] C++ For Beginners [In reply to] Can't Post

you sir...are a chicken McFagget diped and frided in un-saturated engine oil.


suamo
Newbie

Jan 28, 2006, 9:34 PM

Post #4 of 8 (995 views)
Shortcut
Re: [Matviy] C++ For Beginners [In reply to] Can't Post

Here ya go:





#include <iostream> //Includes the input/output stream header file



int main() //Begins the main function of the program

{

cout << "hello guys!"; //Prints out the Text "hello guys!"...cout means Console output.To end the line in direct codes, we end it with a

// Semicolon..

return 0; //Return no value at the end of the program...

}

Done.


Anthrax
Member


Mar 2, 2006, 7:43 AM

Post #5 of 8 (954 views)
Shortcut
Re: [chaosterror90] C++ For Beginners [In reply to] Can't Post

lol



Click here.



-yag si em tub enoyreve-



Anthrax
Member


Mar 2, 2006, 7:44 AM

Post #6 of 8 (953 views)
Shortcut
Re: [chaosterror90] C++ For Beginners [In reply to] Can't Post

i hope you know this is SpaMAx03



Click here.



-yag si em tub enoyreve-



Jaymzanator
Enthusiast


Mar 28, 2006, 3:22 AM

Post #7 of 8 (914 views)
Shortcut
Re: [Anthrax] C++ For Beginners [In reply to] Can't Post

why don't you tell them about the stdio header ... it is alot easier than iostream :P


(17:20) Taz:
and tazg is lol'in at you all the way from canada
(17:21) James:
lol canadians


abby12
Newbie

Jun 28, 2008, 6:09 PM

Post #8 of 8 (435 views)
Shortcut
Re: [chaosterror90] C++ For Beginners [In reply to] Can't Post

You have written good code for beginners,you have given the comment with each line that is helpful to understand the code easily.

___________
website development
Free templates

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.19 s on (CGI/1.1)