We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5422d commit 0df13cfCopy full SHA for 0df13cf
ch07/7_9.cpp
@@ -52,7 +52,7 @@ int getinfo(student * pstu, int n)
52
cout << "fullname: ";
53
// detect blank line
54
cin.getline(pt->fullname, Slen);
55
- if(!pt->fullname)
+ if(!*pt->fullname)
56
break;
57
cout << "hobby: ";
58
cin.getline(pt->hobby, Slen);
0 commit comments