@Rustam
15 / 27 / 3
Регистрация: 05.09.2009
Сообщений: 471
|
02.02.2010, 18:23
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| #include <windows.h>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
{
char variable1[80], variable2[80];
std::cout << "Введите первую переменную: ";
cin.getline (variable1, 80);
std::cout << "Введите вторую переменную: ";
cin.getline (variable2, 80);
std::cout << "\n";
std::cout << "Значение первой переменной " << variable2 << std::endl;
std::cout << "Значение второй переменной " << variable1 << std::endl;
}
system("PAUSE");
return EXIT_SUCCESS;
} |
|
0
|