Why when running my code does not make any changes on the screen?

1

codeblocks edition

Good, my problem continues with the compiler of the codeblocks or the way in which compiled, in several Youtube courses I have seen that they do not have this problem and none I could give reason. What happens is that when running a program the compiler continues executing the previous instructions, I explain myself with a code,

 bool logico;
    int a=4, b=6;
    logico = a <= b;

    cout << logico;

with this when compiling I boot through screen 1 good up there right now, if I make one modification,

bool logico;
    int a=4, b=6;
    logico = a >= b;

cout << logico;

with this I should appear on screen 0, but I still do not appear 1.

bool logico;

    logico = false;

    cout << logico;

And if I put it that way in false it keeps bouncing 1 is as if it did not compile or not overwrite the executable, of course I'm saving the code every time I modify it. If you could help me, they would save my life. I'm really tired with this. It's stressful.

    
asked by Diego David 02.03.2017 в 04:42
source

1 answer

1

You must definitely get a value of 0

bool logico;
logico = false;
cout << logico;

Rebuild your project ( Rebuild ) by clicking on the blue icon

Or through the menu, Build > Rebuild .

    
answered by 02.03.2017 / 05:28
source