Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ForwardListString
//g++ 7.4.0 //forward list string //original credit Geeks for Geeks #include <iostream> #include <forward_list> #include <string> using namespace std; int main () { forward_list<string> fs = {"Z","K","N"}; fs.push_front("Y"); cout <<" Forward list after push front:\n"; for(string& s : fs) cout <<s<<" "; cout <<endl; fs.emplace_front("X"); cout <<" Forward list after emplace front:\n"; for(string& s : fs) cout <<s<<" "; cout <<endl; fs.pop_front(); cout <<" Forward list after push front:\n"; for(string& s : fs) cout <<s<<" "; cout <<endl; return 0; }
run
|
edit
|
history
|
help
0
Undefined behaviour
MenuStream
Hello
Test 12(2021)
copy_if c++98
numberOftweets
pattern
volatile thread-safe object
Round prices
insertion_sort