Hello, I'm working on a school project, and I'm so lost i can't even figure out how to start it.
What I'm trying to start off with is just a simple console application that gets these settings: program.exe [switch] [path] [filespec].
how can i accomplish this?
This is what i have at the moment, it was intended for files so that's why i believe this doesn't work.
Also check out the attachment for the project description.
What I'm trying to start off with is just a simple console application that gets these settings: program.exe [switch] [path] [filespec].
how can i accomplish this?
This is what i have at the moment, it was intended for files so that's why i believe this doesn't work.
Also check out the attachment for the project description.
Code:
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
namespace fs = boost::filesystem;
#include <boost/regex.hpp>
int main(int argc, char *argv[])
{
if (argc != 4)
{
cout << "Usage: program.exe [switchs] [path] [filespec]" << endl;
}
else
{
istream switchs(argv[1]);
istream path(argv[2]);
istream filespec(argv[3]);
string testSwitch = switchs;
}