搜索
查看: 4911|回复: 18
打印 上一主题 下一主题

啊哈C编译成功但是没有出结果

[复制链接]
跳转到指定楼层
#
发表于 2012-7-27 10:43:04 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
5啊哈币
为什么我的啊哈C软件已经编译成功,但是没有现实结果呢。结果是一闪而过、我的机子是WINDOWS 7的旗舰版,64位机。求解,各位大神。帮帮忙
18#
发表于 2012-11-2 18:46:40 | 只看该作者
在return 0; 前加上getch();
17#
发表于 2012-10-31 14:40:54 | 只看该作者
16#
发表于 2012-9-4 19:03:42 | 只看该作者
sleep("1000");=停一秒(1000=1秒)
15#
发表于 2012-9-2 21:09:54 | 只看该作者
在后加上system("pause");
14#
发表于 2012-9-1 12:43:01 | 只看该作者
我看一点都不成功 咋办啊
13#
发表于 2012-9-1 12:42:30 | 只看该作者
还是编译成功的

12#
发表于 2012-9-1 12:41:29 | 只看该作者
#include <stdio.h>
#include <math.h>
#define clear 1;if(c>=11){c=0;sscanf(_,"%lf%c",&r,&c);while(*++_-c);}\
  else if(argc>=4&&!main(4-(*_++=='('),argv))_++;g:c+=
#define puts(d,e) return 0;}{double a;int b;char c=(argc<4?d)&15;\
  b=(*_%__LINE__+7)%9*(3*e>>c&1);c+=
#define I(d) (r);if(argc<4&&*#d==*_){a=r;r=usage?r*a:r+a;goto g;}c=c
#define return if(argc==2)printf("%f\n",r);return argc>=4+
#define usage main(4-__LINE__/26,argv)
#define calculator *_*(int)
#define l (r);r=--b?r:
#define _ argv[1]
#define x

double r;
int main(int argc,char** argv){
  if(argc<2){
    puts(
      usage: calculator 11/26+222/31
      +~~~~~~~~~~~~~~~~~~~~~~~~calculator-\
      !                          7.584,367 )
      +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
      ! clear ! 0 ||l   -x  l   tan  I (/) |
      +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
      ! 1 | 2 | 3 ||l  1/x  l   cos  I (*) |
      +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
      ! 4 | 5 | 6 ||l  exp  l  sqrt  I (+) |
      +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
      ! 7 | 8 | 9 ||l  sin  l   log  I (-) |
      +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(0
    );
  }
  return 0;
sleep(5000);
}

哪我的这个呢?
11#
发表于 2012-8-31 14:38:44 | 只看该作者
飘过......................
10#
发表于 2012-8-6 08:17:32 | 只看该作者
hjx1120 发表于 2012-7-31 18:36
楼主在return 0;加上一句,如下:[mw_shl_code=c,true]#include
int main(void)
{

这个需要conio.h
9#
发表于 2012-7-31 18:36:53 | 只看该作者
楼主在return 0;加上一句,如下:[mw_shl_code=c,true]#include<stdio.h>
int main(void)
{
    ...................
    ...................
    getch();
    return 0;
}[/mw_shl_code]
8#
发表于 2012-7-31 14:59:57 | 只看该作者
Teddy 发表于 2012-7-28 21:37
结尾加上system("pause");

需要stdlib.h系统标准工具库
7#
发表于 2012-7-30 17:11:22 | 只看该作者
可能就是少了sleep(时间)
6#
发表于 2012-7-30 00:02:35 | 只看该作者
楼主你好,请在return 0;前加上两行代码
[mw_shl_code=c,true]#include <stdio.h>
int main()
{
..............
getchar();getchar();
return 0;
}[/mw_shl_code]
5#
发表于 2012-7-28 21:37:58 | 只看该作者
结尾加上system("pause");{:soso_e121:}
地板
发表于 2012-7-28 21:11:54 | 只看该作者
在后面加上sleep(); 就暂停了

点评

是的  发表于 2012-7-29 21:57
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表