Created
January 20, 2014 10:30
-
-
Save alexpearce/8517971 to your computer and use it in GitHub Desktop.
This is an example C++ class using C++11 features and ROOT.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "iostream" | |
#include "map" | |
#include "TString.h" | |
int main(int argc, char const *argv[]) | |
{ | |
std::map<int, TString>myMap { | |
{2, "Hello"}, | |
{4, "There"}, | |
{8, "Stranger"}, | |
}; | |
for (auto& kv: myMap) { | |
std::cout << kv.first << ": " << kv.second << std::endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To compile, do