Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


For Thoughs wanting to learn c++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lukechin
Grandmaster Cheater
Reputation: 0

Joined: 24 Jun 2006
Posts: 536
Location: in willy wonkas factory

PostPosted: Thu Apr 12, 2007 9:28 am    Post subject: For Thoughs wanting to learn c++ Reply with quote

This is for beginners here is my - blog http://codeguru-learningcpp.blogspot.com/

it justt covers the basics. I'll be adding more code over time.

P.S
this isnt for people like noz...etc

this is for people that ask how to program c++

theres something wrong with the html so just put
at the beginning of each program
#include <iostream>

_________________
hmm back once again....


Last edited by lukechin on Thu Apr 12, 2007 6:50 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Apr 12, 2007 12:21 pm    Post subject: Reply with quote

you write

Code:

#include // input output header file
#include // string header file


on top of every example program, and while this may be valid in dev-c++ (Because they include headers for you like iostream, stdio whether you like it or not) it is not valid elsewhere, please write the proper includes.

_________________


Last edited by appalsap on Thu Apr 12, 2007 6:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
lukechin
Grandmaster Cheater
Reputation: 0

Joined: 24 Jun 2006
Posts: 536
Location: in willy wonkas factory

PostPosted: Thu Apr 12, 2007 6:43 pm    Post subject: Reply with quote

there somthing wrong i didnt relize but the blog reads <iostream> as html code caause of the <> ...
_________________
hmm back once again....
Back to top
View user's profile Send private message Visit poster's website
jongwee
Moderator
Reputation: 0

Joined: 28 Jun 2006
Posts: 1388
Location: Singapore

PostPosted: Fri Apr 13, 2007 6:45 am    Post subject: Reply with quote

Code:
#include
using std::cout;
using std::cin;
using std::endl; // if you havent seen this before it justs ends the line

int main()
{

for (int A = 1 ; A<= 30 ; A++)
{
cout << A << endl;

}

system("pause");
return 0;
}

Why dont you just put a using namespace std;
instead of using std::cout;
using std::cin;
using std::endl;

_________________
Back to top
View user's profile Send private message MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Fri Apr 13, 2007 7:10 am    Post subject: Reply with quote

jongwee wrote:
Why dont you just put a using namespace std;


because you shouldn't use namespaces in examples to beginning programmers who do not know what a namespace is.

_________________
Back to top
View user's profile Send private message
pancit
Newbie cheater
Reputation: 0

Joined: 04 Apr 2007
Posts: 14

PostPosted: Fri Apr 13, 2007 8:13 am    Post subject: Reply with quote

im noobz
_________________

"I'm HACKING..."
_______________________________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites