prog.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include fstream;
^
prog.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include iostream;
^
prog.cpp: In function 'int main()':
prog.cpp:9:5: error: 'ifstream' was not declared in this scope
ifstream asd("asd.txt");
^
prog.cpp:10:17: error: 'asd' was not declared in this scope
if(false == asd.is_open())
^
prog.cpp:12:9: error: 'cout' was not declared in this scope
cout << "Can not open input file" << std::endl;
^
prog.cpp:12:46: error: 'endl' is not a member of 'std'
cout << "Can not open input file" << std::endl;
^
prog.cpp:18:5: error: 'string' was not declared in this scope
string inputString;
^
prog.cpp:21:13: error: 'asd' was not declared in this scope
getline(asd, inputString);
^
prog.cpp:21:18: error: 'inputString' was not declared in this scope
getline(asd, inputString);
^
prog.cpp:21:29: error: 'getline' was not declared in this scope
getline(asd, inputString);
^
prog.cpp:25:9: error: 'cout' was not declared in this scope
cout << "File is empty" << std::endl;
^
prog.cpp:25:36: error: 'endl' is not a member of 'std'
cout << "File is empty" << std::endl;
^
prog.cpp:32:31: error: 'stof' was not declared in this scope
val = stof(inputString);
^
prog.cpp:34:11: error: 'exception' does not name a type
catch(exception exp)
^
prog.cpp:36:9: error: 'cout' was not declared in this scope
cout << "Input data is not valid." << std::endl;
^
prog.cpp:36:47: error: 'endl' is not a member of 'std'
cout << "Input data is not valid." << std::endl;
^
prog.cpp:41:5: error: 'cout' was not declared in this scope
cout << "Value: " << val << std::endl;
^
prog.cpp:41:33: error: 'endl' is not a member of 'std'
cout << "Value: " << val << std::endl;
^
prog.cpp:43:19: error: 'system' was not declared in this scope
system("Pause");
^