Click here to Skip to main content
15,861,125 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: arduino sensor Pin
leon de boer3-Apr-16 6:43
leon de boer3-Apr-16 6:43 
QuestionCOleDateTime Pin
Still learning how to code27-Mar-16 9:48
Still learning how to code27-Mar-16 9:48 
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 
Reviewing some old projects I met a function like this:

C++
bool func()
{
    bool var = false;

    if(...)
        return var = false;
    else
        return var = true;
}


Actually what the function returns? I think true, because assigning can't be false.

VII. 36. When you surround an army, leave an outlet free. Do not press a desperate foe too hard.
SUN-TZU - Art of War

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 
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 

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.