0

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.

#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;
	}
2
Contributors
2
Replies
4
Views
8 Years
Discussion Span
Last Post by Argo54325
0

using the Boost file system, is required for our project. If you download the attachment it tells you everything in there.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.