祭奠我那逝去的青春之C++篇
山东科技大学吧
全部回复
仅看楼主
level 11
491370577 楼主
[惆怅~]这学期开学以来第一次来机房,闲的厉害,编了个两个程序,特开贴表明一下我认真学习的态度。。。
我真的好无聊。。。。
话说,好久没用机房的电脑了,发现没有想象中的那么难用了
不知不觉,已经第六周了,下周过的肯定更快。第十周结课,如果不想继续挂科的话,真应该好好学了呢。。。
哎,时间如东流水啊。。
—————————数字于苦逼的11号机房
2012年06月06日 17点06分 1
level 11
491370577 楼主
#include<iostream>
using namespace std;
int main()
{
cout<<"在不在?"<<endl;
char name[50];
char age[50];
cin>>name;
cin>>age;
cout<<"你才是"<<name<<endl;
cout<<"点名了,你说"<<age<<endl;
return 0;
}
——————————————————————————
#include<iostream>
using namespace std;
class Time
{public:
Time(int,int,int);
int hour;
int minute;
int sec;
};
Time::Time(int h,int m,int s)
{
hour=h;
minute=m;
sec=s;
}
void fun(Time&t)
{t.hour=18;} int main()
{
Time t1(10,13,56);
fun(t1);
cout<<t1.hour<<endl;
return 0;
}

2012年06月06日 17点06分 2
level 14
为了我的机器
2012年06月06日 17点06分 3
level 11
491370577 楼主
忽然发现还是挺有意思的
2012年06月06日 17点06分 4
level 11
491370577 楼主
第一个程序的运行效果。。。
2012年06月06日 17点06分 5
level 13
你这算觉悟了吗
2012年06月06日 17点06分 6
level 6
我们学了一学期,五十八果断跪了
2012年06月06日 17点06分 7
level 12
哎呦…不错哦
2012年06月06日 17点06分 8
level 11
491370577 楼主
[瞌睡]无聊闲的。。不过真应该开始学了。
2012年06月06日 17点06分 9
level 13
别说,你还算有才,这傻货是你吧
2012年06月06日 17点06分 10
level 11
491370577 楼主
[抱枕]考试难不难呢?
2012年06月06日 17点06分 11
level 13
你觉悟应该谢谢我,我不叫你你还不来呢
2012年06月06日 17点06分 12
level 11
491370577 楼主
[泪奔]前后左右全是空机器,好口怕。。。朱老师盯我半天,不得不编点东西呀。。
2012年06月06日 17点06分 13
level 10
挽……
2012年06月06日 17点06分 14
level 11
491370577 楼主
[气愤]郭##打电话叫的我们好吧。。。。
2012年06月06日 17点06分 15
level 11
491370577 楼主
[惆怅~]快下课了。。
2012年06月06日 17点06分 16
level 10
大一大二的小弟弟们桑不起哇,
2012年06月06日 17点06分 17
level 13
大一时学的 果断90+ 哈哈 话说当年上课的时候俺早就拿到二级证了 哈哈哈哈
2012年06月06日 17点06分 18
level 15
[握手]学长耶。。。
2012年06月06日 17点06分 19
level 15
[我错了]膜拜。。。
2012年06月06日 17点06分 20
1 2 3 尾页