где ошибка?
открываю файл для чтения...
#include
#include
[Error: Irreparable invalid markup ('<iostream.h>') in entry. Owner must fix manually. Raw contents below.]
открываю файл для чтения...
#include <iostream.h>
#include <io.h>
#include <fstream.h>
#include <stdlib.h>
int main()
{
ifstream inFile;//*
char mm[400];
char next;
char string[400]
inFile.open("text.txt");
cout <<"\n text.txt :\n\n";
cin.get();
while(1)
{inFile >> string;
next = inFile.peek();
}
.
.
.
.
return 0;
};
Компиллятор ругается на строчку, помеченную *.
error C2146: syntax error : missing ';' before identifier 'inFile'
#include <iostream.h>
#include <io.h>
#include <fstream.h>
#include <stdlib.h>
int main()
{
ifstream inFile;//*
char mm[400];
char next;
char string[400]
inFile.open("text.txt");
cout <<"\n text.txt :\n\n";
cin.get();
while(1)
{inFile >> string;
next = inFile.peek();
}
.
.
.
.
return 0;
};
Компиллятор ругается на строчку, помеченную *.
error C2146: syntax error : missing ';' before identifier 'inFile'
