i am new to c++ so please help me. i tried this out on a mingw compiler , the executable file opens and the "has stopped working" error message comes up , what kind of error is this
PS: process returns some other value and not 1
please answer...Im writing the following code on a mingw compiler:
1 #include<iostream>
2
3 using namespace std;
4
5 int main()
6 {
7 char a;
8 int val;
9
10 cin>>a;
11 cin.ignore();
12 cin>>val;
13 cin.ignore();
14 while ((a!="t") && (val<500)){
.....code.....
15 }
16 return 0;
17 }
the problem is in the 14th line,maybe cause the 'a' is 'char'.how can i fix this???