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? Quote
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 Quote
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 Quote
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. Quote
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++. Quote
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) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.