Description: 1 Fundamentals
(1) Test the basic data types char, int and short conversion between.
(2) Test cin and cout basic input and output usage.
(3) Write a program, find the circumference of a circle, area of a circle, sphere volume, cylinder volume. Const settings require PI constants, variables define the appropriate data type, and set circle, sphere radius and height of the cylinder, respectively 2.5,4 initial value, followed by calculation of the above results and output, requires a corresponding text prompts two digits after the decimal point.
(4) Materials 2.1 materials 2.3 materials 2.5
(2) Advanced section
(1) using the sizeof operator to write a test program to test the unit all the basic data types or string number of bytes, and fill out the following table, and then analyze the results.
Basic Data Type Number of Bytes basic data types or string of Bytes
char float
short double
int long double
long "\ nCh \ t \ v \ 0ina"
(2) kn
To Search:
File list (Check if you may need any files):
实验1\实验1(3).cpp
.....\2.1.cpp
.....\cin cout.cpp
.....\int char short.cpp
.....\2.5.cpp
.....\进阶部分(1).cpp
.....\进阶部分(2).cpp
.....\2.3.cpp
.....\2.8上机实验.cpp
实验1