摘要:
#include using namespace std; class Array{ private: int array[10]; int max; public: void set_value(){ for(int i=0;i>array[i]; } } ... 阅读全文
摘要:
用类来实现时间输入输出 实参声明 标准类的方法 阅读全文
摘要:
#include using namespace std; void select_Sort(int *p,int n){ int i,j,k,t; for(i=0;i>a[i]; } cout<<endl; select_Sort(a,10); cout<<"the sorted array:"<<endl; for(i=0;i<10... 阅读全文
摘要:
#include using namespace std; void swap(int *p1,int *p2){ int temp; temp=*p1; *p1=*p2; *p2=temp; } int main(){ int a,b,*point1,*point2; cout>a>>b; point1=&a;b ;po... 阅读全文
摘要:
#include <iostream> using namespace std; int main(){ int a=100,b=10; int *pointer1=&a,*pointer2=&b; cout<<a<<" "<<b<<endl; cout<<*pointer1<<" "<<*poin 阅读全文