I have been learning c++ for about a week now, and I thought I had everything under control, but apparently not. I was mid program, and decided to hit run just to see how things were looking. The program runs, but never ends. I was expecting it to at least print the first cout statement.
#include <iostream>
using namespace std;
int main()
{
int floors, rooms, i = 0;
cout << "floors: "; cin >> floors;
while (floors > i)
{
cout << "rooms: "; cin >> rooms;
++i;
}
}