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;
	}

Why do you need Boost?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.