Tuesday, February 04, 2020

CPP: Using std::list

Very basic usage of C++ STL std::list
#include<iostream>
#include<list>
int main()
{
std::list<int> int_list {1,2,3,4,5};
for(int i: int_list)
{
std::cout << i << std::endl;
}
return 0;
}
view raw stdlist.cpp hosted with ❤ by GitHub


To build:
$: clang++ stdlist.cpp

Run it:
$: ./a.out

No comments:

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...