mercredi 10 février 2021

How to Parse C++ Command Line Options Without Library

C++ does not have a standard library for parsing arguments. What are some simple ways of parsing C++ command line arguments without needing 3rd party libraries?

There are several solutions documented in this thread:

How to Parse Command Line Arguments in C++?

However, that question is closed so I cannot contribute an answer there, so I am opening a new question so I can answer it with my solution. If the above question ever reopens I will post my answer there and delete this question.

Aucun commentaire:

Enregistrer un commentaire