二、简答题
1、在C++中引用头文件时,采用#include <*.h>方式和采用#include “*.h”方式有什么区别?
三、请判断下面的程序是否正确,若正确请写出程序运行结果,若有错误请之处错误的地方,改正错误后写出程序运行结果。
1、 #include<iostream.h>
void main()
{ int a=6,b=6;
if (a>5)
a-=1;
b+=1;}
else
a+=1;
b-=1;
cout<<”a=”<<a<<endl;
cout<<”b=”<<b<<endl;
}
2、 #include<iostream.h>
void main()
{ int x=6,y=8;
if x++<6
cout<<”y=”<<++y<<endl;
if x>6
cout<<”y=”<<- -y<<endl;
else
cout<<”y=”<<y++<<endl;
}
3、 #include<iostream >
using namespace std;
void main()
{int i,j,k;
for (i=0,j=10;i<=j;i++,j- -)
k=i+j;
cout<<k;}
Chapter 4 exercise 5页 2财富值 exercise for chapter 1-2 26页 免费 Chapter 3-exercise 7页 2财富值 chapter 5 exercise 2页 免费 chapter 1-Exercise(...
Programming15_chapter8_31/2 相关文档推荐 exercise2 10页 2财富值 Exercise2 2页 2财富值 Exercise2 1页 免费 Exercise2-1 暂无评价 10页 5财富值 ...
暂无评价 7页 1财富值 Chapter 4 exercise 5页 2财富值 exercise for chapter 1-2 26页 免费 chapter 5 exercise 2页 免费...
暂无评价 7页 1财富值 Chapter 4 exercise 5页 2财富值 exercise for chapter 1-2 26页 免费 chapter 5 exercise 2页 免费...
Programming16_exercise21/2 相关文档推荐 Programming02_chapter2 暂无评价 26页 免费 Chapter3 65页 免费 chapter3 79页 2财富值 Chapter3 85页 2财富值 ...
exercise chapter 1&2_英语学习_外语学习_教育专区。物流英语作业 上海海事大学Exercise Chapter 1 Introduction 1. Key Terms 1). absolute advantage An economic...
chapter 2 exercise 2页 1财富值 exercise chapter 1&2 7页 1财富值 exercise of Chapter 2 9页 免费 Chapter One Exercise ... 暂无评价 4页 免费 语言...
Chapter4 American Econ... 26页 1下载券 About American Eco... 4页 2... The government can still exercise some control over the market economy ...
exercise chapter 3 暂无评价 16页 免费 chapter 3 exercise 暂无评价 9页 5财富值 EXERCISE (B) OF CHAPTER ... 7页 10财富值 EXERCISE (A) OF CHAPTER...
8B Chapter 5 Exercise 2页 1下载券 Exercise for Chapter 5... 暂无评价 2页 2下载券 Chapter 4 exercise 5页 1下载券 exercise for chapter 1... 26...
热门文档