...

Case sensitive

WIN.A.Creve
12-08-2002, 07:48 AM
if you want YeS to be accepted use this line of code

#include <ctype.h>
.
.
.
cin >> correct;
correct=toupper(correct)
if (correct == "YES"){

the toupper will change all the character of correct to capital letter so yes, Yes, YeS, YES are all going to be YES

Nightfire
12-08-2002, 10:45 PM
Thanks :) I think you was meant to hit reply instead of new topic :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum