新人发个贴
codeblocks吧
全部回复
仅看楼主
level 12
Miss灬挚爱 楼主
求大神帮帮忙
2015年02月03日 11点02分 1
level 8
2015年02月03日 12点02分 2
那个90多M的CB的链接有吗
2015年02月03日 12点02分
回复
Miss��ֿ��
:https://tieba.baidu.com/p/3555954172
2015年02月03日 12点02分
回复 Smilencetion :是那第一个链接的吗?安装后还是出现这个问题
2015年02月03日 12点02分
level 8
你有按照这层贴的第一个链接那个动画去做吗?
如果按那个动画没效就点下面图中的箭头,然后指定你codeblocks安装的目录下的mingw文件夹
2015年02月03日 12点02分 3
写错了,应该是“上层贴的动画”
2015年02月03日 12点02分
现在可以运行了。不过又出现了其它问题
2015年02月03日 12点02分
没事了,是我自己有个地方打错。太谢谢了[吐舌]
2015年02月03日 12点02分
层主,你好,我这里压根就没有mingw文件夹怎么破~
2015年02月07日 03点02分
level 12
Miss灬挚爱 楼主
#include<iostream>
#include<unistd.h>
#include<conio.h>
#include<time.h>
using namespace std;
class Time{
private:
int hour;
int min;
int sec;
public:
void tick();
void show();
void run();
void get_time();
};
void Time::tick()
{
sleep(1);
if((++sec)>=60){
sec=0;
if((++min)>=60){
min=0;++hour;}}
}
void Time::show()
{
if(hour<10)
cout<<0;
cout<<hour<<":";
if(min<10)
cout<<0;
cout<<min<<":";
if(sec<10)
cout<<0;
cout<<sec;
cout<<endl;
clrscr();
}
void Time::get_time()
{
time_t ti=time(0);
char *p=ctime(&ti);
hour=(*(p+11)-48)*10+*(p+12)-48;
min=(*(p+14)-48)*10+*(p+15)-48;
sec=(*(p+17)-48)*10+*(p+18)-48;
}
void Time::run()
{
Time::get_time();
while(1)
{
Time::tick();
Time::show();
}
}
int main()
{
Time t;
t.run();
return 0;
}
请问这个用电脑的CB,怎么运行不了,手机可以
2015年02月03日 14点02分 5
level 1
我也是这个问题,还是没用
2015年02月07日 02点02分 6
1