Created
July 18, 2017 19:13
-
-
Save dcchambers/7fc9f1c4184cb9861f793b2d1fc1431f to your computer and use it in GitHub Desktop.
Simple C++ List
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 <list> | |
using namespace std; | |
int main() { | |
list<int> test_list = {1, 2, 3, 4}; | |
for (int n : test_list) { | |
std::cout << n << '\n'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment