Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. struct Carte
  6. {
  7.     string titlu;
  8. };
  9.  
  10. int main()
  11.  
  12. {
  13.     Carte carte_x[255];
  14.    
  15.     for (int i=0; i<=5; i++)
  16.    
  17.         cin>> carte_x[i].titlu;
  18.        
  19.     cout << "titlurile sunt: "<<endl;
  20.    
  21.         for (int i=0; i<=5; i++)
  22.         {  
  23.             cout << carte_x[i].titlu<<endl;
  24.         }
  25.        
  26. /*  char semn[2];
  27.     carte stiva[100], v[100];
  28.     int  k=0, l=0;
  29.     while(cin>>semn){
  30.         if(semn=="+ ") {
  31.             cin>>stiva[k].titlu;
  32.             k++;
  33.         }
  34.         if(semn=="- "){
  35.             if(k){
  36.                 cout<<stiva[k-1].titlu<<" ";
  37.                 k--;
  38.             }  
  39.         }
  40.     }*/
  41.     return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement