First Program Start.

I've been trying to do this program for a few hours now, I've tried googling parts, asking classmates, and trial and error, and I'm just not understanding how to do this assignment. I just need some help getting started. This is my first assignment and nothing really makes any sense to me yet in C++. I appreciate any help.

"Write a C and C++ program that assigns the largest and smallest short, int, and long, both signed and unsigned, from standard headers/libraries to variables of the correct data type.

Print the values in decimal (base 10), hexadecimal (base 16), and octal (base 8) using dec, hex, and oct with cout in C++ and %d, %x, and %o with printf() in C.
Now, print the decimal (base 10) values of adding one to each variable containing the maximum numbers and subtracting one from the variables containing the minimum
values (even zero for unsigned).
Lastly, directly compute the largest and smallest short, int, and long, both signed and unsigned, using pow(), which is in the math.h for C and cmath for C++. You only need to print the decimal values for these numbers."

This is what I have so far, I'm not sure if I'm on the right track or even close.