this post was submitted on 25 Jul 2023
1 points (100.0% liked)
C++
1783 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can quickly get the args into a vector like this:
Checking equality etc directly instead of using strcmp stuff is better. There are libraries available for handling command line args too.