IS A PROBLEM
#include <iostream>
using namespace std;
int main()
{
string line;
int num;
while( getline(cin, line), line != "$" )
{
cin>>num;
}
}
Can anyone tell me how to correct the code. Never exit the loop, why?
Example, Pleas???? CYCLE NO SALE EVER