1 / 4

An Example of Control Structures

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.

tim
Download Presentation

An Example of Control Structures

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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.

  3. Math Functions • There is a class called System::Math • double radian=Math::PI/180.0; • double y=Math::Sin(x);

  4. First Assignment • Control structures (selection and repetition) • Graphics

More Related