Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1493888
  • 博文数量: 329
  • 博客积分: 2773
  • 博客等级: 少校
  • 技术积分: 4219
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 14:17
个人简介

淡定从容,宁静致远

文章分类

全部博文(329)

文章存档

2016年(4)

2015年(50)

2014年(68)

2013年(45)

2012年(162)

发布时间:2012-12-18 22:09:22

#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中......【阅读全文】

阅读(1509) | 评论(0) | 转发(1)

发布时间:2012-12-18 22:07:52

#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......【阅读全文】

阅读(1522) | 评论(0) | 转发(1)

发布时间:2012-12-18 22:06:29

#include <iostream>using namespace std;template <class T>T add(T x,T y){ T z; z=x+y; return z; }int main(){ cout<<add(10,20)<<endl; cout<<add(12.3,45.6)<<endl; cout<<add("abc","def")<<endl; return 0;}......【阅读全文】

阅读(1202) | 评论(0) | 转发(1)

发布时间:2012-12-18 22:02:45

#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......【阅读全文】

阅读(1350) | 评论(0) | 转发(1)

发布时间:2012-12-18 22:01:40

#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......【阅读全文】

阅读(1253) | 评论(0) | 转发(1)
给主人留下些什么吧!~~

onlyword2017-06-23 11:39

回复  |  举报

勤劳致富linux2012-06-15 09:41

回复  |  举报

勤劳致富linux2012-06-01 11:43

老大,好饿呀,吃饭吧!

回复  |  举报

勤劳致富linux2012-05-31 17:50

老大,我来过!

回复  |  举报

llweiyang2012-03-30 11:04

回复  |  举报
留言热议
请登录后留言。

登录 注册