Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
C++ - Chained Methods
C++ Solar eclipse program(Shoushi integrated) 1644 - 1785 from Ideone( Date: August 14, 2014 )
rstring
Template arguments pack
base and derr con
DBeach Resort 4R8J-8P (State of Rio Grande.do Norte Brazil)
CPP - Arrays - Ex.1
ONP
Coin changes
g++ -Wall *.cpp -o aco; ./aco.
Please log in to post a comment.