Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: swap two values withou using temp. storage Pin
stevev623-Jul-10 2:37
stevev623-Jul-10 2:37 
AnswerRe: swap two values withou using temp. storage Pin
Craig Norton23-Jul-10 3:31
Craig Norton23-Jul-10 3:31 
AnswerRe: FAST! swap two values without using temp. storage PinPopular
ghle23-Jul-10 4:20
ghle23-Jul-10 4:20 
AnswerRe: swap two values withou using temp. storage Pin
BC3Tech23-Jul-10 4:33
BC3Tech23-Jul-10 4:33 
AnswerRe: swap two values withou using temp. storage Pin
EbenRoux23-Jul-10 4:48
EbenRoux23-Jul-10 4:48 
AnswerRe: swap two values withou using temp. storage Pin
codemunkeh23-Jul-10 5:20
codemunkeh23-Jul-10 5:20 
AnswerRe: swap two values withou using temp. storage Pin
Igor Jerosimic23-Jul-10 5:36
Igor Jerosimic23-Jul-10 5:36 
JokeRe: swap two values withou using temp. storage Pin
Member 322138523-Jul-10 7:16
Member 322138523-Jul-10 7:16 
<joke>

to avoid using temporary storage - i would consider showing the user two boxes, and asking them to swap the numbers for me. this is safe for strings or XML or whatever. if the user chooses to use Notepad or something, it doesn't bother me, but i know that my code executes as fast as possible and is bug-free because i am using natural techniques from nature.

microsoft does this when you have to change your password. it shows you three text boxes. the first is your old password, and the next two are your new password. the code first checks that the new password matches the new new password, and then swaps the new new password for the old password.

works seamless every time
AnswerRe: swap two values withou using temp. storage Pin
Kenneth Kasajian23-Jul-10 14:40
Kenneth Kasajian23-Jul-10 14:40 
AnswerRe: swap two values withou using temp. storage Pin
manjulameganathan23-Jul-10 18:00
manjulameganathan23-Jul-10 18:00 
AnswerRe: swap two values withou using temp. storage Pin
Jigar Sheth25-Jul-10 20:38
Jigar Sheth25-Jul-10 20:38 
QuestionWaveInOpen Help?? Pin
AmbiguousName21-Jul-10 19:36
AmbiguousName21-Jul-10 19:36 
AnswerRe: WaveInOpen Help?? Pin
«_Superman_»21-Jul-10 19:38
professional«_Superman_»21-Jul-10 19:38 
QuestionHow can disable a subitem where i use COutlook2Ctrl::OCL_SELECT? Pin
Le@rner21-Jul-10 19:23
Le@rner21-Jul-10 19:23 
Questionhow Does CWinApp realize the singleton pattern? Pin
zxjun8421-Jul-10 18:54
zxjun8421-Jul-10 18:54 
AnswerRe: how Does CWinApp realize the singleton pattern? Pin
«_Superman_»21-Jul-10 19:45
professional«_Superman_»21-Jul-10 19:45 
GeneralRe: how Does CWinApp realize the singleton pattern? Pin
zxjun8421-Jul-10 20:39
zxjun8421-Jul-10 20:39 
GeneralRe: how Does CWinApp realize the singleton pattern? Pin
«_Superman_»21-Jul-10 21:26
professional«_Superman_»21-Jul-10 21:26 
GeneralRe: how Does CWinApp realize the singleton pattern? Pin
zxjun8421-Jul-10 22:18
zxjun8421-Jul-10 22:18 
Questionproblem between OS of 32bit ans 64 bits Pin
xjh_sz21-Jul-10 15:03
xjh_sz21-Jul-10 15:03 
AnswerRe: problem between OS of 32bit ans 64 bits Pin
«_Superman_»21-Jul-10 19:53
professional«_Superman_»21-Jul-10 19:53 
QuestionCrash Window on Close [modified] Pin
Fareed Rizkalla21-Jul-10 14:10
Fareed Rizkalla21-Jul-10 14:10 
AnswerRe: Crash Window on Close Pin
«_Superman_»21-Jul-10 20:00
professional«_Superman_»21-Jul-10 20:00 
AnswerRe: Crash Window on Close Pin
ThatsAlok22-Jul-10 0:35
ThatsAlok22-Jul-10 0:35 
QuestionMemory Leak Pin
Fareed Rizkalla21-Jul-10 13:36
Fareed Rizkalla21-Jul-10 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.