Commit d29b793f authored by Charles Gerard's avatar Charles Gerard
Browse files

did something with argc

parent 49ba4ea1
......@@ -14,6 +14,12 @@ using namespace std;
int main(int argc, const char* argv[]) {
vector<char> holder; // holder stores the 6 possible characters: (, ), {, }, [, ]
bool isBalanced = true;
if (argc != 2) {
cout << "wrong length for argc, exiting" << endl;
return -1;
}
string filename = argv[0];
cout << "filename: " << filename << endl;
ifstream ifs(filename);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment