doesn't work well
#include<iostream>
using namespace std;
int main()
{
bool check =true;
string moon;
moon="Blue";
string ::size_type pos;
pos=moon.find('B');
if(true==pos)
cout<<"found";
else
cout<<"not found";
system("pause");
return 0;
}
*** MOD EDIT: Fixed code tags. ***
This post has been edited by JackOfAllTrades: 06 March 2009 - 02:43 PM

New Topic/Question
Reply




MultiQuote





|