|
第一章
5:
#include <iostream> using namespace std; int main() {
cout<<"This"<<"is"; cout<<"a"<<"C++";
cout<<"program."<<endl; return 0; } 6:
#include <iostream> using namespace std; int main() {
int a,b,c; a=10; b=23; c=a+b;
cout<<"a+b="; cout<<c; cout<<endl; return 0; } 7:
#include <iostream> using namespace std; int main() {
int a,b,c;
int f(int x,int y,int z); cin>>a>>b>>c; c=f(a,b,c);
cout<<c<<endl; return 0; }
int f(int x,int y,int z) {
int m;
|
|