Create a program to perform a rotation and translation of a coordinate system. There are two
modes. When I press ‘1’, it should switch to mode 1, if I press ‘2’ it should switch to mode 2. Text on the
screen would be beneficial to tell the user which mode they are currently i
1
Expert's answer
2013-03-13T09:39:05-0400
# include <iostream> # include<iomanip>
using namespace std;
int main(){ setlocale( LC_ALL,"English" ); int a; cout<<"Enter choice:"; cin>>a; switch (a){ case 1: cout<<"choice 1 "; break; case 2: cout<<"choice 2 "; break; } system("PAUSE"); return 0; }
Comments
Leave a comment