I have a working program on eclipse but my professor plans on running it through linux. Does that mean i have to do all the argc argv stuff? If so, Im ok with that. But if it can run on linux without doing so thats even better because the argc argv stuff is kinda confusing at times.
Anyone know if my program will run?
these are my header files:
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <cstring>
#include <iomanip>
#include <cstdlib>
#include <limits>
#include <algorithm>
#include <vector>
#include <ostream>
There’s no guarantee that it will run. If you are not doing anything esoteric it should be fine. Depends on the complexity of the program as well as what compiler on linux is being used as well as what APIs are being used (for e.g. if you are using WINSOCK APIs they won’t be available on Linux).
The best way is to try to run it on Linux.
Also, do you know what the “argc/argv stuff” is? Omitting those in the main() method usually should be fine.