#include <stdio.h>//函数:求两个数的最大者
void main()
{
int min(int , int );
int (*p)();//这是 指针指向函数的指针
int a, b, c;
p = min;
scanf("%d%d",&a,&b);
......................
阅读全部
|
时间太短
贴于 2016年10月28日 14:44
hide
bbsi
#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
#define OK 1
#define ERROR -1
#define OVERFLOW -1
#define ENDFLAG 0
typedef int Status;
typedef int SElemType;
#define STACK_INIT_SIZE 100
......................
阅读全部
|
小宇哈哈哈
贴于 2016年10月27日 12:44
hide
bbsi
#include<stdio.h>
int main()
{
int a,b;
scanf("%d",&a);
while(a!=0){
int c,n=0;
double r;
for(b=0;b<a;b++){
scanf("%d",&c);
n=n+c;
} r=n/a;
......................
阅读全部
|
枫之一叶
贴于 2016年10月26日 20:15
hide
bbsi
#include<stdio.h>
#include<string.h>
struct student
{
char name[60];
int a1,a2,a3,num;
float pow;
}zl[100];
int count=0;
void jiemian1(); //主界面
int jiemian2(); //选择界面
void luru(); //录入函数
......................
阅读全部
|
李先生嘎嘎嘎
贴于 2016年10月26日 19:43
hide
bbsi
#include<stdio.h>
bool isqual(int s)
{
for(int i=0;i<=s;i++) if(i*i==s) return true;
return false;
}
int main(void)
{
for(int i=1;i<=1000;i++) if(isqual(i)) printf("%4d\n",i);
return 0;
......................
阅读全部
|
wp231957
贴于 2016年10月25日 15:42
hide
bbsi
#include<stdio.h>
#define N 8
int main()
{
float score[N+1]={10,20,30,40,50,60,70,80};
float grade;
int loca,i;
printf("请输入代插入的成绩:");
scanf("%f",&grade);
if(grade>score[N-1])
score[N]=grade;
for(i=0;i<N;i++)
......................
阅读全部
|
tb1442206430
贴于 2016年10月25日 11:21
hide
bbsi
#include"stdio.h"
#include "math.h"
int main( )
{ float a, b, c, d, x1, x2, q,m,n;
printf("Please input a, b, c\n");
scanf("%f,%f,%f", &a, &b, &c);
d=b*b-4*a*c;
if(d>=0)
{ q=sqrt (d); /*求实根*/
x1=(-b+q)/(2*a);
x2=(-b-q)/(2*a);
printf("d=%.2f,x1=%.2f, x2=%.2f \n ",d, x1, x2);
......................
阅读全部
|
哈哈丨无名
贴于 2016年10月24日 20:06
hide
bbsi
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>广州搬家_广州搬家公司电话_广州大众搬家公司第一品牌</title>
<metaname="keywords"content="广州搬家,广州大众搬家公司,广州搬家公司电话,广州搬家公司"/>
......................
阅读全部
|
sbzhuce
贴于 2016年10月24日 14:10
hide
bbsi
#include"stdio.h"
#include"malloc.h"
#define maxsize 256
typedef struct
{
char ch[maxsize+1];
int length;
}string;
int concat(string&t,string&s1,string&s2)
{
......................
阅读全部
|
春风吹又吹
贴于 2016年10月22日 16:37
hide
bbsi