Chinaunix首页 | 论坛 | 博客
  • 博客访问: 232679
  • 博文数量: 127
  • 博客积分: 34
  • 博客等级: 民兵
  • 技术积分: 655
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-03 10:53
文章分类

全部博文(127)

文章存档

2013年(19)

2012年(108)

发布时间:2012-12-19 23:15:58

#include <iostream>using namespace std;class A{ protected:  int x;  int y; public:  static int z; public:  void setA(int x1,int y1)  {  // cout<<"sizeof(*this)="<<sizeof(*this)<<endl; // &nb......【阅读全文】

阅读(643) | 评论(0) | 转发(0)

发布时间:2012-12-19 23:15:46

#include <iostream>using namespace std;typedef struct stu{ int id; string name; int math;}student;int main(){  student stu1; stu1.id=1; stu1.name="张三"; stu1.math=-20; cout<<"姓名:"<<stu1.name<<endl;  cout<<"成绩:"<<stu1.m......【阅读全文】

阅读(588) | 评论(0) | 转发(0)

发布时间:2012-12-19 23:15:38

#include <iostream>using namespace std;class A{ public:  int x;  int y; public:  void set(int x1,int y1)  {   x=x1;   y=y1;  }  virtual void print()  {     cou......【阅读全文】

阅读(553) | 评论(0) | 转发(0)

发布时间:2012-12-19 23:15:28

#include <iostream>using namespace std;void add(int x,int y){  cout<<"add中x="<<x<<endl;  cout<<"add中y="<<y<<endl; cout<<"x+y="<<x+y<<endl;}int main(){ int x=800; int y=900; add(x,y);/* cout<<"main中......【阅读全文】

阅读(529) | 评论(0) | 转发(0)

发布时间:2012-12-19 23:14:56

#include <iostream> #ifdef WIN32 #include <windows.h> #else #include <sys/time.h> #endif using std::cout; using std::endl; long GetMillisecond() {     long    lMillisecond = 0L; #ifdef WIN32     SYSTEMTIME   ......【阅读全文】

阅读(806) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册