Показать сообщение отдельно

  #8  
Старый 27.12.2008, 00:34
ToniKapuchon
Участник форума
Регистрация: 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;
}
 
Ответить с цитированием