Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jasiukiewicztymon authored Mar 12, 2022
1 parent ce66dd9 commit 0eb01ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ Cpp library for inputs with a place holder that may help the user do the cin
#include <string>
#include <vector>

#include "cin.h"
#include "main.h"

int main() {
std::vector<std::vector<std::string>> templates = {{"cd", "root", "test"}, {"other", "choice"}, {"option", "/s"}};
std::vector<std::vector<std::string>> templates = { {"cd", "root", "test"}, {"other", "choice"}, {"option", "/s"} };
std::vector<std::string> template1 = {"cd", "root", "test", "other", "choice", "option", "/s"};
std::string output;
bcin(output, " >", templates);
std::cout << output << std::endl;
bcin(output, " >", template1);
std::cout << output;
}
```
Expand Down

0 comments on commit 0eb01ba

Please sign in to comment.