Begin Network build
This commit is contained in:
23
test.cc
Normal file
23
test.cc
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char const* argv[])
|
||||
{
|
||||
map<string, int> m;
|
||||
m["a"] = 1;
|
||||
m["b"] = 2;
|
||||
m["c"] = 3;
|
||||
if (m.find("b") != m.end()) {
|
||||
cout << "Found b" << endl;
|
||||
} else {
|
||||
cout << "Not found b" << endl;
|
||||
}
|
||||
// for (auto [key, value] : m) {
|
||||
// cout << key << " " << value << endl;
|
||||
// }
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user