#include <iostream>
#include <cstring>
using namespace std;
 
int main()
{
setlocale(LC_ALL, "rus");
 
char someText1[] = "Сaйт primat.org!";
char someText2[] = "Сaйт primat.org/";
 
cout << "Строка someText1 - \"" << someText1 << "\" \n";
cout << "Строка someText2 - \"" << someText2 << "\" \n\n";
 
cout << strcmp(someText1, someText2) << endl << endl;
 
return 0;
}


2015-11-08 • Просмотров [ 141 ]