I'm practacing my Input streams, and I can't seem to get them to work.
I just installed a clean Dev C++ install, and I get errors about Deprecated Headers being included.
#include <fstream.h>
#include <iostream>
int main(void)
{
fstream FileOne;
char temp[512];
FileOne.open("C:\Documents and Settings\Hello\Desktop\Phrases.txt", ios::in);
if(FileOne.is_open())
{
std::cout << FileOne.get(temp, 512, '\n');
}
FileOne.close();
return 0;
}
Errors:
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\main.cpp" -o "C:\Dev-Cpp\main.exe" -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-Cpp\include\c++\backward" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -L"C:\Program Files\Microsoft Visual Studio\VC98\Lib"
In file included from C:/Dev-Cpp/include/c++/backward/fstream.h:31,
from C:/Dev-Cpp/main.cpp:1:
C:/Dev-Cpp/include/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
C:/Dev-Cpp/main.cpp:8:18: warning: unknown escape sequence '\D'
C:/Dev-Cpp/main.cpp:8:18: warning: unknown escape sequence '\H'
C:/Dev-Cpp/main.cpp:8:18: warning: unknown escape sequence '\D'
C:/Dev-Cpp/main.cpp:8:18: warning: unknown escape sequence '\P'
C:/Dev-Cpp/main.cpp: In function `int main()':
C:/Dev-Cpp/main.cpp:8: error: `ios' undeclared (first use this function)
C:/Dev-Cpp/main.cpp:8: error: (Each undeclared identifier is reported only once
for each function it appears in.)
C:/Dev-Cpp/main.cpp:8: error: syntax error before `::' token
Execution terminated
Any help?
if(this.post == SATISFYING){money.send(1.00,&HemoGloben);return thanks;}