
27.12.2008, 00:34
|
|
Участник форума
Регистрация: 26.02.2006
Сообщений: 209
С нами:
10633766
Репутация:
93
|
|
гггг я не в теме)))
#include "stdafx.h"
#include <string>
#include <stdio.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int i =556;
string str1("555");
char buff[10];
itoa(i,buff,10);
string str2(buff);
if(str1==str2){cout<<"Yes!";} else {cout<<"NO!";}
return 0;
}
|
|
|