2015年C++程序设计上机实践题.docVIP

  • 9
  • 0
  • 约8.55千字
  • 约 9页
  • 2018-06-18 发布于湖北
  • 举报
2015 C++程序设计上机实践题 Chapter 1 熟悉VC的开发环境 熟悉编译、运行C++程序的基本过程。 Example: #include iostream using namespace std; int main() { int a,b; a = 627; b = 365; couta+b; return 0; } Chapter 2 继续熟悉VC开发环境,能独立开发,编译,运行程序。 熟悉C++程序结构 编写程序理解declaration, variable, expression,, +的语法规则。 Arithmetic expression Book p64-65 2,3,5,6,8 编程:定义两个Char型变量,分别赋值’a’,’b’。实现大小写字母转换,并输出,即变量输出值应为’A’,’B’。 Chapter 3 Type coercion and type casting Function call Output function String function P104-105 2,6,7,10,12 上机验证以下表达式的运算结果: char a; int b; a = ‘2’; b = 3; int c; c = a +b; // please print the value of a, b and c float d; d = float

文档评论(0)

1亿VIP精品文档

相关文档