init: basic KV storage
This commit is contained in:
commit
b2e898eeed
3 changed files with 22 additions and 0 deletions
17
main.cpp
Normal file
17
main.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::vector<std::vector<std::string>> database;
|
||||
|
||||
database = {
|
||||
{ "name", "username" },
|
||||
{ "john", "unwanted_guest"},
|
||||
{ "laith", "ducc" }
|
||||
};
|
||||
|
||||
for (std::vector entry: database) {
|
||||
std::cout << entry[0] << " | " << entry[1] << std::endl;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue