- Follow instructions for installing software for C++ class
- If you are on windows, make sure you can get into a bash shell (msys2) and type g++ -version. Make sure the version is at least 9.0
- Set up git
- Clone the repository for the course materials and homework
bash git clone github.com/stevensdeptece/CPE553-CPP
bash git clone github.com/stevensdeptece/CPE-553hw
- Read notes sections on integer types (int, long, short, char)
- Read notes sections on floating point types (float, double, long double)
- Read notes sections on standardized types (uint8_t, uint16_t, uint32_t, uint64_t,...)
- Read notes on statements if(), while(), for(), do..while()
- Review what we discussed about overflow
- Predict what you should see for the following code, compile and be ready to discuss
uint8_t a = 254;
a = a + 1;
cout << a << '\n';
a = a + 1;
cout << a << '\n';
uint16_t b = 65534;
cout << (b + 1) << (b + 2) << '\n';
b = b + 1;
cout << b << '\n';
b = b + 1;
cout << b << '\n';
- What is the largest number for: 1.1 uint8_t 1.1 uint16_t 1.1 uint32_t 1.1 uint64_t 1.1 int8_t 1.1 int16_t 1.1 int32_t 1.1 int64_t
- Implement the problems assigned in Canvas
- Find the bug 10summation.cc
- Find the bug 14summation2.cc
- Read notes sections on floating point library functions
- Read notes sections on inf and nan
- Predict what you should see for the following code:
- Implement the problems assigned in Canvas
- Find the bug 12fpcount.cc