40 likes | 143 Views
An Example of Control Structures. Control structures (selection and repetition) Read integers from a file Graphics Classes Window-based app. vs. console app. Event handling Others. Create a form application using Visual C++. Create a Windows Forms application.
E N D
An Example of Control Structures • Control structures (selection and repetition) • Read integers from a file • Graphics • Classes • Window-based app. vs. console app. • Event handling • Others
Create a form application using Visual C++ • Create a Windows Forms application. • Change Form1’s Text to “CS351” • Add int choice; to the Form1 class. • Add the code to read an integer from the control.txt file in the Form1’s constructor. Do not forget to use the System::IO name space. • Add the Form1_Paint event handler to the Form1 class.
Math Functions • There is a class called System::Math • double radian=Math::PI/180.0; • double y=Math::Sin(x);
First Assignment • Control structures (selection and repetition) • Graphics