Advertisement

comparing 2 char's

Started by September 13, 2000 12:46 AM
1 comment, last by Nazrix 24 years, 3 months ago
In C++, I know you need to use strcmp() to compare 2 strings, but is it the same for comparing to single char''s?
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
You can compare two single char by ''==''

forex:
char a, b;
...
if(a==b) ...

////

I will work....

=============================
Denis "Mr.Snow" Kozhukhov
CEO & Lead programmer
Choco Snow Creation
dkcscPortal
=============================
=============================Denis "Mr.Snow" KozhukhovCEO & Lead programmerChoco Snow CreationdkcscPortal=============================
Advertisement
Okay, I thought so...thanks
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi

This topic is closed to new replies.

Advertisement