B
BigDAlcala
Ok. First I create a new text file. Then I input the following:
Then I hit build. It asks to start a new workspace and I click yes. Then goes to the save as txt window. I name the txt file, and then in a split second it says 0 errors and 0 warnings. When I go to execute, it says the exe file doesn't exist and asks if I want to build it. I click yes, and then it says "Cannot execute program."
What gives? Please help me! thx!
Code:// BranchDemo - input two numbers. Go down one path of the program if the first argument is // greater than the second or the other path if not #include <stdio.h> #include <iostream.h> int main(int nArg, char* pszArgs[]) { // input the first argument... int nArg1; cout << "Enter arg1: "; cin > nArg1; // ...and the second int nArg2; cout << "Enter arg2: "; cin > nArg2; // now decide what to do: if (nArg1 > nArg2) { cout << "argument 1 is greater than argument 2\n"; } else { cout << "argument 1 is not greater than argument 2\n"; } return 0; }
Then I hit build. It asks to start a new workspace and I click yes. Then goes to the save as txt window. I name the txt file, and then in a split second it says 0 errors and 0 warnings. When I go to execute, it says the exe file doesn't exist and asks if I want to build it. I click yes, and then it says "Cannot execute program."
What gives? Please help me! thx!