Hash Fellow robcat2075 Posted July 9, 2023 Hash Fellow Posted July 9, 2023 Lesson 10: Integer Types Integers are whole numbers and the computer can store their exact values... within certain ranges. John Purcell shows how to use the <limits> constants to find the min and max allowed values of different types of ints, and how to use "sizeof" to see much RAM they take. Assignment: There are at least 10 distinct types of integers in C++ Pick at least four types. In your program, declare an instance of each type, assign it a value, output the values. Conclude the program with a display of the minimum value, maximum value, and "size" for each of your four types type. Label your output! Lesson 11: Floating Point Floating point numbers can represent numbers with fractional decimal portions. Assignment: Declare at least two types of floating point variable and prompt the user to input values for them. Use the tools of <iomanip> to display the values in several formats and their "sizeof" values. Label your output! Lesson 12: Chars and Bools? TBD Quote
Admin Rodney Posted July 10, 2023 Admin Posted July 10, 2023 I knew there had to be an option to keep from having to specifically activate what project runs when debugging in a solution, and there is... Right Click on the solution and open Properties. There you should see an option to run the selected project versus the default 'Single Startup project' that gets updated each time we select and set a specific project as the startup project. Change that option (radio button) to 'Current selection' and whatever project is selected in the Solution Explorer at the time of running debug (or release) should run. 1 Quote
Hash Fellow robcat2075 Posted July 11, 2023 Author Hash Fellow Posted July 11, 2023 @Rodney @Shelton @Roger Get started early! I started mine tonight and found the "limits" and formatting stuff is more fiddly than I remembered it being. Quote
Hash Fellow robcat2075 Posted July 12, 2023 Author Hash Fellow Posted July 12, 2023 @Rodney @Roger @Shelton Guys, let's wait on Lesson 12: Chars and Bools. If you've already done it, great, but we'll catch it the next week if you haven't! Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.