1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| vector<int16_t*> LISTSAUV ;
while(runpap)
{
cin >> reponse;
if (reponse == "A" || reponse == "a")
{
int16_t SAV[TAILSAUV] = {IP,REG[0],REG[1],REG[2],REG[3],MEM[17],MEM[18],MEM[19],MEM[20],MEM[21]};
cout << SAV;
cout << LISTSAUV.size();
if(LISTSAUV.size() < 10)
{
LISTSAUV.push_back(SAV);
cout << " ajout 1 ";
}
else
{
LISTSAUV.erase(LISTSAUV.begin());
LISTSAUV.push_back(SAV);
cout << " ajout 2 ";
}
cout << LISTSAUV.front() << LISTSAUV.back()<<endl;
runpap = false;
IP++;
} |
Partager