Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alla dessa med
- ALLA ÄR HACKADE HAHAHHA :DDD
- LIVE => 245@yahoo.com
- LIVE => 6@yahoo.com
- LIVE => a.manzanares@yahoo.com
- LIVE => a_rambo101@yahoo.com
- LIVE => aalittlelandscaping@yahoo.com
- LIVE => aaronappraisal@yahoo.com
- LIVE => aanytimemobilenotary@yahoo.com
- LIVE => abc@yahoo.com
- LIVE => abaappraisal@yahoo.com
- LIVE => abb99bot@yahoo.com
- LIVE => abadiboo@yahoo.com
- LIVE => abdul_fahmy@yahoo.com
- LIVE => abdulatifelcheikh@yahoo.com
- LIVE => abell165@yahoo.com
- LIVE => abinv21@yahoo.com
- LIVE => absnotary@yahoo.com
- LIVE => absolutecleansweep@yahoo.com
- LIVE => ace.pest@yahoo.com
- LIVE => achemyanrouzanna@yahoo.com
- LIVE => adan.aguillon@yahoo.com
- LIVE => adamwrodgers@yahoo.com
- LIVE => adan.perez@yahoo.com
- LIVE => adarmond@yahoo.com
- LIVE => adrianebaidowi@yahoo.com
- LIVE => advantedge4u@yahoo.com
- LIVE => agapeintl@yahoo.com
- LIVE => aggressivere@yahoo.com
- LIVE => agnestbk@yahoo.com
- LIVE => agtimm@yahoo.com
- LIVE => ahzhen03@yahoo.com.sg
- LIVE => aiko1781@yahoo.com.sg
- LIVE => ailed9710@yahoo.com
- LIVE => aigt_2000@yahoo.com
- LIVE => ajeangilles@yahoo.com
- LIVE => ajohn47708@yahoo.com
- LIVE => akarmiloff1@yahoo.com
- LIVE => albc@yahoo.com
- LIVE => albert_millard@yahoo.com
- LIVE => albubear@yahoo.com
- LIVE => alco1994@yahoo.com
- LIVE => alegalpro@yahoo.com
- LIVE => alex_alonzo@yahoo.com
- LIVE => alexazgrts@yahoo.com
- LIVE => alexrealtyusa@yahoo.com
- LIVE => alexutzu_cosmin@yahoo.com
- LIVE => alge0303_tutsy@yahoo.com
- LIVE => ali85mdred@yahoo.com
- LIVE => alina_derminassian@yahoo.com
- LIVE => alissaliz22@yahoo.com
- LIVE => allbay@yahoo.com
- LIVE => allemonjoy@yahoo.com
- LIVE => alle8797@yahoo.com
- LIVE => alleniagodsey@yahoo.com
- LIVE => allentreeservice@yahoo.com
- LIVE => alliance15@yahoo.com
- LIVE => allinvestment2004@yahoo.com
- LIVE => alloutcleaners@yahoo.com
- LIVE => allprotreecare@yahoo.com
- LIVE => allstrungup4you@yahoo.com
- LIVE => alvarez.ana55@yahoo.com
- LIVE => alvidk@yahoo.com
- LIVE => amajorhi@yahoo.com
- LIVE => alynchnewton@yahoo.com
- LIVE => amanda_akg@yahoo.com
- LIVE => amandafield83@yahoo.com
- LIVE => amart_jr@yahoo.com
- LIVE => amos_b4@yahoo.com.sg
- LIVE => amyolier72@yahoo.com
- LIVE => amtrealty@yahoo.com
- LIVE => anderson@yahoo.com
- LIVE => andersonsmobilenotary@yahoo.com
- LIVE => andyhallmails@yahoo.com
- LIVE => anecia_1@yahoo.com
- LIVE => anelo_inc@yahoo.com
- LIVE => angaleejones@yahoo.com
- LIVE => angel140200@yahoo.com
- LIVE => angelamsells@yahoo.com
- LIVE => angelhaven949@yahoo.com
- LIVE => angelica.realtor@yahoo.com
- LIVE => angelhooker@yahoo.com
- LIVE => angelmerino05@yahoo.com
- const int MaxN = 100;
- struct AutoT {
- int amount;
- string date;
- int quantities;
- };
- int main() {
- AutoT avto[MaxN];
- int N;
- bool exist;
- int sum;
- string when;
- int cnt;
- string refueled[MaxN];
- bool errorA = false;
- do {
- cout << "Number of items?: ";
- cin >> N;
- errorA = ((N < 1) || (N > MaxN));
- if (errorA) {
- cout << "ERROR!! Please change value" << endl;
- }
- } while (errorA);
- for (int i = 0; i < N; i++) {
- cout << i + 1 << " item's date? ";
- cin >> avto[i].date;
- bool errorB = false;
- do {
- cout << i + 1 << " item's amount?: ";
- cin >> avto[i].amount;
- errorB = (avto[i].amount < 0);
- if (errorB) {
- cout << "ERROR!! Please change value" << endl;
- }
- } while (errorB);
- bool errorC = false;
- do {
- cout << i + 1 << " item's quantities?: ";
- cin >> avto[i].quantities;
- errorC = (avto[i].quantities < 0);
- if (errorC) {
- cout << "ERROR!! Please change value" << endl;
- }
- } while (errorC);
- }
- int i = 0;
- while ((i <= N) && (avto[i].amount != 20000)) {
- i += 1;
- }
- exist = (i <= N);
- if (exist) {
- when = avto[i].date;
- cout << "The date we payed exactly 20000 HUF: " << when << endl;
- } else {
- when = "never";
- cout << "We " << when << " payed exactly 20000 HUF for fuelin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement