
Сообщение от
Genn55
Попробуйте
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| //#include<conio.h>
#include <iostream>
using namespace std;
int main()
{
cout << "Enter the number: " << endl;
double d;
while (!(cin >> d) || cin.peek() != '\n')
{
cin.clear();
while (cin.get() != '\n');
cout << "Error! Retry input\n";
cout << "Enter the number: " << endl;
}
cout << d << endl;
return 0;
} |
|
double не воспринимает борланд 3.1