Спасибо, и опять вопрос
не компилирует, типа последняя скобка не нужна, мистика просто, я поражаюсь :o
Код:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
char name[15];
cout << " Welcome\n Please enter Your name:\n";
cin >> name;
cout << "Hello " << name;
cout << "\n Decode the number: 442777777999\n And then enter the decoded word \n";
char pass[6];
cout << " The word is: ";
cin >> pass;
if (strcmp(pass, "harry") == 0)
{
cout << " \n Nice job, You have made it!\n Greetings for you, " << name << " from Me \n :) ";
}
else{
cout << "\n Sorry, wrong word.\n Do You need a clue?";
int answer;
cout << " \n Yes [1], No [0] \n";
cin >> answer;
if (answer == 0)
{
cout << " \n Perhaps the next time You will manage to give the right answer\n Bye!";
}
if (answer == 1)
{
cout << "\n Try to type that number on Mobile phone";
}
getch();
}
не компилирует, типа последняя скобка не нужна, мистика просто, я поражаюсь :o