-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First commit #5
base: master
Are you sure you want to change the base?
First commit #5
Conversation
… the file input worked out. It doesn't store the right values when reading the file
|
||
void init() { | ||
const int SIZE = 5; | ||
const string HEADERS[SIZE] = {"[Name]","[E-mail]","[Password]", "[Timezone Offset]", "[File Path]"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wha?
…to config file. Removed extra tab characters and users are now given another chance to enter arguments instead of simply terminating the program.
<< "\"password\", \"timezone\", \"filepath\""; | ||
cin >> arg2; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol! I know, it looked fine in CLion, I'm not sure what happened from there to here
cin >> arg1; | ||
}while(arg1 != "init" && arg1 != "edit"); | ||
if(arg1 == "init"){ | ||
init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this extra coverage for the user 👍
First commit with just the "init" function. "Edit" to come soon. Output file included