Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SCELTA_H_INCLUDED
- #define SCELTA_H_INCLUDED
- #include "Nodo.h"
- #include <vector>
- class scheduling
- {
- std::vector <nodo*> lista;
- public:
- scheduling(){;}
- void inserimento();
- void sjf();
- ~scheduling(){;}
- };
- void scheduling::inserimento()
- {
- int n,in,f;
- std::cout<<"Quante attivita' vuoi mettere: ";
- std::cin>>n;
- for(int i=0;i<n;i++)
- {
- system("CLS");
- std::cout<<"Inserire la "<<i+1<<" attivita'"<<std::endl;
- std::cout<<"Inizio :";
- std::cin>>in;
- std::cout<<"Fine :";
- std::cin>>f;
- nodo *niu=new nodo(i,f);
- this->lista.push_back(niu);
- }
- }
- #endif // SCELTA_H_INCLUDED
Add Comment
Please, Sign In to add comment