Skip to content

Commit 0df13cf

Browse files
authored
Update 7_9.cpp
1 parent 1a5422d commit 0df13cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch07/7_9.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int getinfo(student * pstu, int n)
5252
cout << "fullname: ";
5353
// detect blank line
5454
cin.getline(pt->fullname, Slen);
55-
if(!pt->fullname)
55+
if(!*pt->fullname)
5656
break;
5757
cout << "hobby: ";
5858
cin.getline(pt->hobby, Slen);

0 commit comments

Comments
 (0)