Click here to Skip to main content
15,890,043 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: COleDateTime Pin
Serkan Onat27-Mar-16 12:44
professionalSerkan Onat27-Mar-16 12:44 
GeneralRe: COleDateTime Pin
Still learning how to code27-Mar-16 22:11
Still learning how to code27-Mar-16 22:11 
GeneralRe: COleDateTime Pin
Jochen Arndt28-Mar-16 1:50
professionalJochen Arndt28-Mar-16 1:50 
GeneralRe: COleDateTime Pin
Still learning how to code28-Mar-16 22:58
Still learning how to code28-Mar-16 22:58 
GeneralRe: COleDateTime Pin
Jochen Arndt28-Mar-16 23:08
professionalJochen Arndt28-Mar-16 23:08 
QuestionOld code Pin
RomTibi27-Mar-16 9:18
RomTibi27-Mar-16 9:18 
AnswerRe: Old code Pin
Patrice T27-Mar-16 10:46
mvePatrice T27-Mar-16 10:46 
AnswerRe: Old code Pin
Sascha Lefèvre27-Mar-16 12:38
professionalSascha Lefèvre27-Mar-16 12:38 
Any assignment is also an expression which has the value of the assigned value.
C++
if(...)
    return var = false;  // returns false
else
    return var = true;  // returns true


Some programmers make use of this fact like this:
C++
int x;
while ((x = SomeFunction()) > 0)
{
   // use x for something..
}


Whether or not this is good style is up to personal preference..
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

AnswerRe: Old code Pin
David Crow28-Mar-16 3:55
David Crow28-Mar-16 3:55 
SuggestionRe: Old code Pin
Richard MacCutchan28-Mar-16 6:08
mveRichard MacCutchan28-Mar-16 6:08 
AnswerRe: Old code Pin
Richard MacCutchan28-Mar-16 6:03
mveRichard MacCutchan28-Mar-16 6:03 
QuestionAlgorithm on secrete key generation Pin
Durga Prasad Chauhan25-Mar-16 23:32
Durga Prasad Chauhan25-Mar-16 23:32 
AnswerRe: Algorithm on secrete key generation Pin
Richard MacCutchan26-Mar-16 1:32
mveRichard MacCutchan26-Mar-16 1:32 
AnswerRe: Algorithm on secrete key generation Pin
Patrice T27-Mar-16 10:31
mvePatrice T27-Mar-16 10:31 
Questionvector in turbo c Pin
Ravinder Singh25-Mar-16 20:50
Ravinder Singh25-Mar-16 20:50 
AnswerRe: vector in turbo c Pin
Richard MacCutchan25-Mar-16 22:46
mveRichard MacCutchan25-Mar-16 22:46 
AnswerRe: vector in turbo c Pin
Patrice T27-Mar-16 10:18
mvePatrice T27-Mar-16 10:18 
Questiongraphics.DrawImage return generic error Pin
Le@rner22-Mar-16 19:12
Le@rner22-Mar-16 19:12 
QuestionRe: graphics.DrawImage return generic error Pin
Richard MacCutchan22-Mar-16 23:10
mveRichard MacCutchan22-Mar-16 23:10 
AnswerRe: graphics.DrawImage return generic error Pin
Le@rner24-Mar-16 18:18
Le@rner24-Mar-16 18:18 
GeneralRe: graphics.DrawImage return generic error Pin
Richard MacCutchan24-Mar-16 21:57
mveRichard MacCutchan24-Mar-16 21:57 
GeneralRe: graphics.DrawImage return generic error Pin
Le@rner25-Mar-16 20:44
Le@rner25-Mar-16 20:44 
GeneralRe: graphics.DrawImage return generic error Pin
Richard MacCutchan25-Mar-16 22:44
mveRichard MacCutchan25-Mar-16 22:44 
GeneralRe: graphics.DrawImage return generic error Pin
Brisingr Aerowing24-Mar-16 19:51
professionalBrisingr Aerowing24-Mar-16 19:51 
QuestionWaitForInputIdle parent process gets access exception Pin
ForNow20-Mar-16 16:58
ForNow20-Mar-16 16:58 

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.