Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "eile.h"
- EilSar Sarasas; //sukuriamas dekas
- Data x;
- //void LR();
- //void AVL();
- // void AK();
- // void Meniu();
- void LR(){
- //--------------------------------------------------------------------------------------
- cout << "iveskite prognozuotoja... nu ta levaka" << endl;
- cin >> x.vardas;
- //--------------------------------------------------------------------------------------
- Sarasas.insertLast(x);
- }
- void AK(){
- removeFirst();
- }
- void AVL(){
- Sarasas.displayList();
- getch();
- }
- int main(){
- while(1)
- {
- int c;
- system("cls");
- cout << " Oru Prognozes" << endl;
- cout << "---------------------------------------------" <<endl;
- cout << "[1] Lopo Registravimas" << endl;
- cout << "[2] Aptarnauti klijenta" << endl;
- cout << "[3] Atvaiduoti visus Lopus" << endl;
- cout << "---------------------------------------------" <<endl;
- scanf("%d",&c);
- system("cls");
- if(c<1 || c>3){
- printf("Invalid Choise\n");
- }
- else if(c==1)
- LR();
- else if(c==2)
- AK();
- else if(c==3)
- AVL();
- }
- Sarasas.displayList();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement