Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <list>
- #include <string>
- #include <map>
- using namespace std;
- int main()
- {
- //declararea unei liste de siruri de caractere
- list <string> nume;
- //adaugarea de informatii in lista
- nume.push_front("Ionescu IOn");
- nume.push_front("Petrescu Dan");
- nume.push_back("Eminescu Mihai");
- nume.push_front("Petrescu Ion");
- cout<<"\n--------Punctul a)--------"<<endl;
- cout << "Afisare lista: "<<endl;
- for(list<string>::iterator it = nume.begin(); it != nume.end(); it++){
- cout << *it <<", ";
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement