Hi I wrote some code but it's giving me error and I have no idea how to fix it. Can you guys help me?
when trying to compile it gives off ||=== Build: Debug in menu (compiler: GNU GCC Compiler) ===|
C:\Users\happyboy9505\Desktop\menu\main.cpp|1|fatal error: stdafx.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Use C++11 (or better, C++14) if you want the i/ofstream construction or "open" function to be able to use std::strings (compiler option -std=c++11)
Otherwise, you must change inFile.open (file_nm);
to inFile.open (file_nm.c_str());
and all other places where you open a file.
where should I use int main() ?
replaceint _tmain(int argc, char* argv[])
with int main()