Guest Guest_Kriz Posted January 28, 2004 Report Posted January 28, 2004 i wanna kno what the diffrent between x++ and ++x in c++ programing?
Night Fox Posted January 28, 2004 Report Posted January 28, 2004 i wanna kno what the diffrent between x++ and ++x in c++ programing?To answer to ur questions goto this website: http://books.slashdot.org/books/02/06/25/1...4.shtml?tid=156
Bargeld Posted January 28, 2004 Report Posted January 28, 2004 a tad more direct: http://search.yahoo.com/search?p=differenc...n=20&fl=0&x=wrt Sysop - SSCX Alpha West SVS
ExplodyThingy Posted January 28, 2004 Report Posted January 28, 2004 Even more direct, for all of your purposes, nothing. this is one method, it starts reading from character 0 and incriments from there. int x=0;while(true)character[x++] this is another method, it starts reading from character incriments from 0 , therefore the character string will start at 1. int x=0;while(true)character[++x] I think. ~ExplodyOnions3:MikeTheNose> I use my own insanity to communicate
Mr Ekted Posted January 29, 2004 Report Posted January 29, 2004 These two statement are equal: x++;++x; These two are not: y = x++;y = ++x; The first could be re-written: y = x;x = x + 1; The second: x = x + 1;y = x; In short, placing the ++ (or any other similar operator) before the variable increments (affects) it before its value is used. placing it after the variable changes it after its value is used. Also note that the ++ operator type is also available in C, not just C++. http://home.maine.rr.com/user/ekted/pics/ssgc.jpg http://www.againsttcpa.com/images/AgainstTCPA-Log01Small.gif
Guest Guest_Kriz Posted January 30, 2004 Report Posted January 30, 2004 thx for ur help i allrdy found out my self by running a simpel program (explody answered right)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now