Assignment #6Your max grade for this assignment is 20, and you get points from the following parts:
In addition to these, I would like to give you some other ways to do conversions. This type of conversion is called type casting. For example,
// Similarly
Notice that type casting does not convert an integer 48 to a string of 4 and 8, "48". It rather converts it to its ASCII code, char '0'. For this assignment, another way would be the following: int ASCII_value, integer_value;
integer_value = ASCII_value - 48;
This way you get the same thing you do by doing the following: if(ASCII_value == 48)
|
Ozgur Balsoy
balsoy@npac.syr.edu |