计算机与程序设计(C)实验指导书42015秋.docVIP

  • 5
  • 0
  • 约5.78千字
  • 约 10页
  • 2017-10-22 发布于北京
  • 举报

计算机与程序设计(C)实验指导书42015秋.doc

计算机与程序设计(C)实验指导书42015秋

《计算机与程序设计(C++)》实验指导书 2015年12月 实验 指针与结构体 实验目的 学习定义结构体结构体变量数组掌握运算符”.”的应用。 C++语言菜单设计的一般方法初步开发一个小型实用系统的方法学会调试一个较长程序的基本方法实验设备使用 PC机、操作系统Window 、Visual C++ 6.0 实验基本原理 程序设计的基本原理 实验内容 // This program demonstrates the use of dynamic arrays #include iostream #include iomanip using namespace std; int main( ) { float *monthSales; // a pointer used to point to an array holding monthly sales float total = 0; // total of all sales float average; // average of monthly sales int numOfSales; // number of sales to be processed int count; // loop

文档评论(0)

1亿VIP精品文档

相关文档