[ create a new paste ] login | about

Link: http://codepad.org/25D7zdJa    [ raw code | fork ]

C++, pasted on Jul 2:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
when passing "e" the if statement does not work properly on my compiler.
*/
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    cout << argv[1] << endl;

    if(argv[1] == "e"){
        cout << "I made it";
    }
    
    cout << "opps missed it";
    

    return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: