[ create a new paste ] login | about

Link: http://codepad.org/Y2eqD98g    [ raw code | output | fork ]

C++, pasted on Aug 2:
#include <iostream>
using namespace std;
 
 
int main(int argc, char* argv[])
{
    int g = 1;
    int key = 87;
    bool run = false;
    bool up;
    switch (g)
    {
    case 1:
    
        if ((key == 87) && (!run)){//условие не проверяется сразу переходит ниже.
            up = true;
            cout<<"Ya RABOTAU!!!"<<endl;
        }
        up = true;
 
        break;
    
    }
    return 0;
}


Output:
1
Ya RABOTAU!!!


Create a new paste based on this one


Comments: