Fidelity Bravery Integrety
Welcome to www.fbiclans.forumotion.com
Please enter your username and password to log in.
If you are not registered yet please hit the "Register" button to do so.
Thank you,
Chef


Fidelity Bravery Integrety
 
HomeShoutboxGalleryFAQSearchRegisterLog in
New FBI Forums:www.fbiclans.forummotion.com
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
September 2018
MonTueWedThuFriSatSun
     12
3456789
10111213141516
17181920212223
24252627282930
CalendarCalendar
Search
 
 

Display results as :
 
Rechercher Advanced Search

Share | 
 

 [Tutorial] C++ for Noobies.

Go down 
AuthorMessage
KeimpeHAX
Coder
Coder
avatar

Female
Number of posts : 21
Registration date : 2009-04-14

PostSubject: [Tutorial] C++ for Noobies.   14/4/2009, 20:46

yo people! this is out here for the noobs!!!

language: C++
difficulty: NEWBIE (3n3rgy)
program: compiler: google C++ Compiler
credits: freckles i think

1.Open a new empty win32 console application. Name it Hello.

2.Open a new c++ source file, name it hello.

3.Now in the source file we need to add the code...type
Code:
#include

this tells the compiling programs preprocessor to include the iostream standard input/output c++ library

4.now on a new line, add the command...
Code:
using namespace std;

All the elements of the standard C++ library are declared within what is called a namespace, the namespace with the name std.
So in order to access its functionality we declare with this expression
that we will be using these entities. This line is very frequent in C++
programs that use the standard library, and in fact it will be included
in most of the source codes included in these tutorials.(explaination
thanks to www.cplusplus.com

5.on another new line type the command...
Code:
int main()

This command defines where the program should begin from, every c++ needs this command.

6.Very simple method, we need to begin the actual program so type on a new line a simple Code:
{

this little 'watsamacallit' whatever is inside this little
'watsamacallit' and the finishing 'watsanacallit' is what happens when
the program is executed.

7.Ok now we need the program to do something once executed so type...
Code:
cout<<"Hello World! ";

cout<< is the standard output method of c++ code.
; defines the finish line of that command, everything within the 'watsamacallit''s need to finish with a ;

8.So close to finished!, on a new line type...
Code:
return 0;

The 'return 0' statment tells the main function to
finish.This is the most usual way to finish a c++ program, presuming it
worked well with no errors.

9.new line, finish it off with Code:
}

'WATSAMACALLIT' !!!

10.add some credits...same as et configs //
Code:
//This is Credits
//My c++ program!

11.Now we need to execute our program...from the menu
Build/Execute Hello.exe

you should get a console program up saying "Hello World!" press any key to continue

if not tell me what you got, hopefully i can help you.

If you can't do this. pleas close this site. turn off the pc and go watch TV.
Back to top Go down
View user profile
|FBI|Poo~BeaR|eG*M
Staff Sargeant, Grade 2
Staff Sargeant, Grade 2
avatar

Male
Number of posts : 165
Location : Netherlands
Registration date : 2009-03-15

PostSubject: Re: [Tutorial] C++ for Noobies.   14/4/2009, 23:57

I think i cud do this.. When i read the steps 1 by 1 Very Happy But i aint gonna make this kinda stuff, idk y ur puttin this S*** up on a site where hacks aint allowed man Razz
Back to top Go down
View user profile
Jelly
Staff Sargeant, Grade 2
Staff Sargeant, Grade 2


Male
Number of posts : 150
Location : Canada, Saskatchewan
Registration date : 2009-04-10

PostSubject: Re: [Tutorial] C++ for Noobies.   15/4/2009, 00:10

Very nice i like it might use one day Smile
Back to top Go down
View user profile
|FBI|Chef|AAT|
Forum Founder
Forum Founder
avatar

Male
Number of posts : 313
Location : The Netherlands
Registration date : 2009-03-06

PostSubject: Re: [Tutorial] C++ for Noobies.   15/4/2009, 00:30

|FBI|Poo~BeaR|eG*M wrote:
I think i cud do this.. When i read the steps 1 by 1 Very Happy But i aint gonna make this kinda stuff, idk y ur puttin this S*** up on a site where hacks aint allowed man Razz

This has nothing to do with cheating/hacking.
It's just the basics of the C++ language (Computer language used for coding)

_________________

Back to top Go down
View user profile http://www.ET-Scripts.omgforum.net
KeimpeHAX
Coder
Coder
avatar

Female
Number of posts : 21
Registration date : 2009-04-14

PostSubject: Re: [Tutorial] C++ for Noobies.   15/4/2009, 09:04

You call this hackstuff?

Its the language where your pc run on..
Back to top Go down
View user profile
Ghost
Private, Grade 2
Private, Grade 2


Number of posts : 23
Registration date : 2009-05-14

PostSubject: Re: [Tutorial] C++ for Noobies.   21/5/2009, 11:56

nice
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: [Tutorial] C++ for Noobies.   

Back to top Go down
 
[Tutorial] C++ for Noobies.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Fidelity Bravery Integrety :: Others :: Guides-
Jump to: