|
-
March 5th, 2002, 11:40 AM
#4
In the function getSingerName, the if statement looks like it is assigning a value to the variable typedInBand, because one '=' assigns a value, two of them ('==') will evaluate it. That just stuck out to me, but there may be more... I'm not too sure...
It should be like this (you can format it differently if you want):
if (typedInBand == "metallica") {
cout<<"james\n";
}
Hope this helps...
-Tim_axe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|