t68-70makingaprogram

Download T68-70MakingAProgram

If you can't read please download the document

Upload: tim-acosta

Post on 11-Dec-2015

213 views

Category:

Documents


0 download

DESCRIPTION

asd

TRANSCRIPT

#include#includeusing namespace std;int getwhattheywant();void displayItems(int x);//main functionint main(){ int whattheywant; whattheywant = getwhattheywant(); while(whattheywant!=4){ switch(whattheywant){ case 1: displayItems(1); break; case 2: displayItems(2); break; case 3: displayItems(3); break; } whattheywant = getwhattheywant(); }}//getwhattheywantfunctionint getwhattheywant(){ int choice; cout