Created
August 12, 2012 17:25
-
-
Save r2p2/3333166 to your computer and use it in GitHub Desktop.
c++11
This file contains hidden or 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
| // so viel code brauchte man bisher | |
| std::vector<std::vector<int> > list; | |
| std::vector<int> sublist1; | |
| sublist1.push_back(1); | |
| sublist1.push_back(2); | |
| sublist1.push_back(3); | |
| std::vector<int> sublist2; | |
| sublist1.push_back(4); | |
| sublist1.push_back(5); | |
| sublist1.push_back(6); | |
| list.push_back(sublist1); | |
| list.push_back(sublist2); | |
| // so viel jetzt: | |
| std::vector<std::vector<int>> list({{1,2,3},{4,5,6}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment