CS 153 Data Structures I
Programming Assignment #1
Due: 8/24/2000 - during your assigned Demonstration Lab
time
you will not receive a recorded grade on this
assignment - it's for practice
you are to create this assignment DURING your lab time
(or course it's OK to practice ahead of time)
This programming assignment is designed to:
-
introduce the use of Edit Boxes
-
introduce the use of Buttons
-
introduce the use of MessageBox(char[], char[], MB_OK)
-
review the conversion of int to char[]
-
review strcat() and strcpy()
In order to meet these goals you must
-
Create a new project
-
Create a dialog window
-
Delete the text and the cancel button
-
Put a 'GO' button on the window which executes a function OnButtonGo()
-
Assign an appropriate ID and caption to the button
-
put an int EditBox on the window
-
Assign an appropriate ID to the edit box
-
DO NOT create a function for the edit box
-
Use the class wizard to add an integer variable for use by the edit box
Program Functionality
-
Enter a number in the EditBox
-
Press the 'GO' button
-
A MessageBox pops up with the message "You Entered nn"
-
The EditBox is automatically reset to 0
-
You will make use of the following functions
-
UpdateData()
-
itoa()
-
MessageBox()
-
strcpy()
-
strcat()