(参考)VirtualC++实验报告.docVIP

  • 39
  • 0
  • 约2.87万字
  • 约 40页
  • 2016-08-11 发布于浙江
  • 举报
《Visual C++语言》实验 班级: 学号: 姓名: 实验一 熟悉Visual C++程序调试方法 一、实验目的 (1) 熟悉Visual C++ 6.0 开发环境; (2) 掌握在Visual C++ 6.0 开发环境调试程序的方法。 二、实验内容 (1) 创建三个项目,项目类型分别为:Win32 Console Application、Win32 Application 和MFC AppWizard(exe),分别编译运行各个程序,观察各种项目类型 程序的特点。 (2) 创建一个Win32 Console Application 类型的项目,输入下面的代码,按 照要求对代码进行调试。 说明:下面的程序求100~1000 以内的水仙花数,所谓水仙花数就是一个三位 的整数,其个位数字、十位数字和百位数字的立方和等于该数本身的值,则这个数 称为水仙花数。 #include iostream.h #include math.h void narcissus(); // 求水仙花数 void main() { narcissus(); } void narcissus() { int x1; // 百位数字 int x20; // 十位数字+个位数字 int x2; // 十位数字 int x3;

文档评论(0)

1亿VIP精品文档

相关文档