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
|
Posted: Tue Aug 07, 2012 5:19 am Post subject: did c++ changed |
|
|
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 |
|
 |
elco How do I cheat?
Reputation: 0
Joined: 11 Jul 2012 Posts: 7
|
Posted: Sat Aug 11, 2012 6:46 pm Post subject: |
|
|
sure it did but even from 2002 it still runs on VS2010  |
|
Back to top |
|
 |
n0 m3rcY Cheater
Reputation: 0
Joined: 18 Jun 2012 Posts: 42
|
Posted: Mon Aug 13, 2012 1:15 am Post subject: |
|
|
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Mon Aug 13, 2012 6:11 am Post subject: |
|
|
uh what winsock is not even part of the language standard. the first part of its name should give that away |
|
Back to top |
|
 |
n0 m3rcY Cheater
Reputation: 0
Joined: 18 Jun 2012 Posts: 42
|
Posted: Mon Aug 13, 2012 10:31 am Post subject: |
|
|
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Mon Aug 13, 2012 6:42 pm Post subject: |
|
|
What does this have to do with Winsock? |
|
Back to top |
|
 |
coolman++ Advanced Cheater
Reputation: -1
Joined: 19 Jul 2012 Posts: 79 Location: Saudi Arabia
|
Posted: Mon Aug 13, 2012 10:13 pm Post subject: |
|
|
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 |
|
 |
n0 m3rcY Cheater
Reputation: 0
Joined: 18 Jun 2012 Posts: 42
|
Posted: Mon Aug 13, 2012 11:36 pm Post subject: |
|
|
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 |
|
 |
coolman++ Advanced Cheater
Reputation: -1
Joined: 19 Jul 2012 Posts: 79 Location: Saudi Arabia
|
Posted: Tue Aug 14, 2012 12:02 am Post subject: |
|
|
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Aug 14, 2012 5:49 pm Post subject: |
|
|
++ is not a valid symbol to be used in a variable name |
|
Back to top |
|
 |
coolman++ Advanced Cheater
Reputation: -1
Joined: 19 Jul 2012 Posts: 79 Location: Saudi Arabia
|
Posted: Tue Aug 14, 2012 10:25 pm Post subject: |
|
|
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 |
|
 |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Fri Aug 17, 2012 8:01 am Post subject: |
|
|
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 |
|
 |
|