With school out and summer in full swing I decided to learn C++ in order to keep myself busy. I've been playing around and learning a lot. So far I've been able to make a program that solves quadratic equations! Alas, I've encountered a problem I can't figure out for the life of me. I don't understand why this WHILE loop is not working. When I compile it everything is fine. But when ever I go to run the program no text shows up. I just stare at a blank command line screen. Here is the code:
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main (int nNumberofArgs, char* pszArgs[])
{
//declare exit or continue variable
int iexit = 1;
//begining loop
while (iexit == 1);
{
cout << "This part is working \n" ;
cout << "Type 1 to continue execution of program: " ;
cin >> iexit;
}
return 0;
}
Whats going on? I'm almost sure the problem is staring me in the face and I just can't see it. Am I using the WHILE loop wrong?
-Kurtis