易截截图软件、单文件、免安装、纯绿色、仅160KB

一个简单计算器c代码

大家帮我看看这个代码,有很多问题,不知道怎么改,小弟在此谢谢了。
#include <stdio.h>
#include <conio.h>
#include <ctype.h>

float date1,date2;
char op;

void main()
{
void ZhuJieMian();                      //对ZhuJieMian函数进行声明
float SiZeYunSuan(float x,float y);    //对SiZeYunSuan函数进行声明
float al;
char ch='Y';
while(toupper(ch)=='Y')
{
  clrscr();                            //刷屏起始位置
  ZhuJieMian();                        //调用ZhuJieMian函数
  al=SiZeYunSuan(date1,date2);          //调用SiZeYunSuan函数
  gotoxy(16,8);
  clreol();                            //刷屏终止位置
  printf("%.2f%2c %.2f=%.2f\n",date1,op,date2,al);
  gotoxy(50,8);
  putchar(0xb3);
  gotoxy(15,4);
  printf("continue(y/n)?");
  ch=getch();
}
}


void ZhuJieMian()
{
int i;
gotoxy(15,5);
putchar(0XDA);            &nb


相关问答:

c基础

#include <string.h>
#include <stdio.h>

void main()
{
int i;
char buf[]="abcde";
strncpy(buf,"abc",3);
for(i=0;i <5;i++)
printf(&q ......

C程序问题

有这样两个问题,希望高手指点:
第一:
struct struct_A{
int a;
char b;
int c;
short d;
}
  struct struct_B{
  int a;
  char b;
  short c;
  ......

extern "C"问题

/*-----------c.h--------------*/
#ifndef _C_H_
#define _C_H_
extern "C" int add(int x, int y);
#endif

/*-----------c.c--------------*/
int add(int x, int y){
return ......

关于字符串的C面试题

给一个字符串、例如 “ababc”要求返回“ab”. 因为“ab”连续重复出现且最长。  用C/C++语言写一函数完成该算法,给出复杂度
这个题我不会

C/C++ code:

#include <iostream>
#include <s ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号