I would like to have my program as a .exe file that is clickable and will run without closing quickly. I want it to where if I put an input in, it runs, then starts over at the beginning and doesn't close until I press '0'. How do I accomplish this?
--------------------------------------------------------------------------------
double select = -1;
cout << "Valid options 1, 2, 3, 4, 5, or 6." << endl;
while (select !=-1)
? Doesn't look right. Change that double to an int.
I guess you're using VS. You have a project folder, and there is an exe somewhere in there. You would be able to click on that to get your program to run.
The reason why there are double's is because I would like a decimal set to 2 places. When I click on the .exe file and put in a value, it creates an output, then closes quickly, and I don't have time to see it.
Update to last comment: I didn't realize you meant that last double, my bad. I did change that 'double' to 'int,' but it still closes too quickly.
That didn't work either. I ran 'calculate code metrics for solution' under 'analyze' and it stated "Project: ConsoleApplication14
Configuration: Debug
Scope: None
Assembly: C:\Users\bill\Documents\Visual Studio 2012\Projects\ConsoleApplication14\Debug\ConsoleApplication14.exe
Maintainability Index:
Cyclomatic Complexity:
Depth of Inheritance:
Class Coupling:
Lines of Code:
Message: The project target file 'C:\Users\bill\Documents\Visual Studio 2012\Projects\ConsoleApplication14\Debug\ConsoleApplication14.exe' contains no managed code."
What does this mean?