Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- struct Carte
- {
- string titlu;
- };
- int main()
- {
- Carte carte_x[255];
- for (int i=0; i<=5; i++)
- cin>> carte_x[i].titlu;
- cout << "titlurile sunt: "<<endl;
- for (int i=0; i<=5; i++)
- {
- cout << carte_x[i].titlu<<endl;
- }
- /* char semn[2];
- carte stiva[100], v[100];
- int k=0, l=0;
- while(cin>>semn){
- if(semn=="+ ") {
- cin>>stiva[k].titlu;
- k++;
- }
- if(semn=="- "){
- if(k){
- cout<<stiva[k-1].titlu<<" ";
- k--;
- }
- }
- }*/
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement