" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <string>
using namespace std;
int main()
{
string napis1("tomek");
string napis2("pawel");
string napisTMP;
cout << "Jak masz na imie?" << endl;
cin >> napisTMP;
int spr = napis1.compare(napisTMP);
if(spr == 0)
cout << "hahahahha zal" << endl;
else{
spr = napis2.compare(napisTMP);
if(spr == 0)
cout << "masz super imie!!!!" << endl;
else
cout << "Wpisano: " << napisTMP << endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
W załączniku skompilowany powyższy kod - 1.exe w archiwum zip.