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 


did c++ changed

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
paupav
Master Cheater
Reputation: 13

Joined: 15 Apr 2011
Posts: 314
Location: P. Sherman 42, Wallaby Way, Sydney

PostPosted: Tue Aug 07, 2012 5:19 am    Post subject: did c++ changed Reply with quote

i am starting again to learn c++ and i have found 1 pretty good tutorial (atleast i think so) but only problem is that its from 2002... so did c++ changed since then ( since 2002)?

TUTORIAL;
http://www.isotton.com/devel/docs/lcpp/lcpp.pdf
Back to top
View user's profile Send private message
elco
How do I cheat?
Reputation: 0

Joined: 11 Jul 2012
Posts: 7

PostPosted: Sat Aug 11, 2012 6:46 pm    Post subject: Reply with quote

sure it did but even from 2002 it still runs on VS2010 Laughing
Back to top
View user's profile Send private message
n0 m3rcY
Cheater
Reputation: 0

Joined: 18 Jun 2012
Posts: 42

PostPosted: Mon Aug 13, 2012 1:15 am    Post subject: Reply with quote

Yes the standard has been updated significantly. However most code should compile, the only stuff you need to worry about is updating it (ie winsock, implementation of string class, etc).
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Aug 13, 2012 6:11 am    Post subject: Reply with quote

uh what winsock is not even part of the language standard. the first part of its name should give that away
Back to top
View user's profile Send private message
n0 m3rcY
Cheater
Reputation: 0

Joined: 18 Jun 2012
Posts: 42

PostPosted: Mon Aug 13, 2012 10:31 am    Post subject: Reply with quote

Slugsnack wrote:
uh what winsock is not even part of the language standard. the first part of its name should give that away

In case the "it" pronoun wasn't clear, you'll notice I said updating "it". The only other attachable noun in my sentence being the standard, and him updating the standard wouldn't exactly make sense.

tl;dr: He probably needs to update his code, standard relevancy or not.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Aug 13, 2012 6:42 pm    Post subject: Reply with quote

What does this have to do with Winsock?
Back to top
View user's profile Send private message
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Mon Aug 13, 2012 10:13 pm    Post subject: Reply with quote

yea a few things like you don't define constants with #define anymore..

well slugsnack would define it using ctrl+v anyway so for him not much has changed

_________________

Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
n0 m3rcY
Cheater
Reputation: 0

Joined: 18 Jun 2012
Posts: 42

PostPosted: Mon Aug 13, 2012 11:36 pm    Post subject: Reply with quote

coolman++ wrote:
yea a few things like you don't define constants with #define anymore..

To clarify for OP you use
Code:
const [data type] [name] = [value];
ie
const char NEWLINE = '\n';
Back to top
View user's profile Send private message
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Tue Aug 14, 2012 12:02 am    Post subject: This post has 1 review(s) Reply with quote

n0 m3rcY wrote:
coolman++ wrote:
yea a few things like you don't define constants with #define anymore..

To clarify for OP you use
Code:
const [data type] [name] = [value];
ie
const char NEWLINE = '\n';


you just made it worse. lemme explain easier:

const int slugsnack = 0;
const int coolman++ = 2147000000;

also:

if coolman++ > slugsnack
slugsnack = cry;

_________________

Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Aug 14, 2012 5:49 pm    Post subject: Reply with quote

++ is not a valid symbol to be used in a variable name
Back to top
View user's profile Send private message
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Tue Aug 14, 2012 10:25 pm    Post subject: Reply with quote

Slugsnack wrote:
++ is not a valid symbol to be used in a variable name


it just means coolman increases one level everytime the compiler reads the line, kinda like the inc command in assembler

_________________

Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
paupav
Master Cheater
Reputation: 13

Joined: 15 Apr 2011
Posts: 314
Location: P. Sherman 42, Wallaby Way, Sydney

PostPosted: Fri Aug 17, 2012 8:01 am    Post subject: Reply with quote

coolman++ wrote:
Slugsnack wrote:
++ is not a valid symbol to be used in a variable name


it just means coolman increases one level everytime the compiler reads the line, kinda like the inc command in assembler

you would get error because variable coolman have to first be defined to increase
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