<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<TITLE>家政服务行业市场营销分析-论文代写,代写毕业论文,代写硕士论文,代写博士论文,代写研究生论文,代写M
阅读全部
|
孙珊珊
贴于 2013年4月7日 15:18
hide
bbsi
#include <stdio.h>
int main()
{
int a,b,c,d;
float e; /*定义成float型*/
e=(a+b+c+d)/4;
scanf("%d %d %d %d\n",&a,&b,&c,&d);
printf("%f\n",e); /*你输的数据类型是float型*/
return 0;
}
数据开始时你定义的数据是整数,结果输出时却是单精度数据。
阅读全部
|
屠神
贴于 2013年4月6日 23:55
hide
bbsi
# include<stdio.h>
# include<math.h>
main (void)
float x,y;
{scanf("%f%f",&x,&y);
if (x<=1)
y=exp()+1;
else if (x>1&&5<=x)
y=-4*x+5;
else if (x>5&&10<=x)
y=2*x-1;
......................
阅读全部
|
刘仁绿
贴于 2013年4月6日 18:42
hide
bbsi
#include"stdio.h"
void main()
{
int i,ch,a[8];
for(i=0;i<8;i++)
a[i]=0;
while((ch=getchar())!='\n')
if(ch>='0' && ch<='7')
a[ch-'0']++;
for(i=0;i<8;i+=2)
printf("a[%d]=%d\n",i,a[i]);
}
......................
阅读全部
|
独占天下
贴于 2013年4月5日 20:57
hide
bbsi
#include <stdio.h>
int main()
{
int a,b,c,d,e;
e=(a+b+c+d)/4;
scanf("%d%d%d%d\n",&a,&b,&c,&d);
printf("%f\n",e);
return 0;
}
......................
阅读全部
|
guoq416
贴于 2013年4月5日 18:12
hide
bbsi
/*我编写了个程序,源代码如下:*/
#include <stdio.h>
#define SIZE 2
struct Student_type
{
char name[10];
int num;
int age;
char addr[15]; } stud[SIZE];
void save()
{
FILE *fp;
......................
阅读全部
|
guoq416
贴于 2013年4月5日 18:02
hide
bbsi
#include <stdio.h>
main()
{
int i=2,j=3,k;
k=i+j;
{
int k=8;
if(i=3)
printf(“%d”,k);
else
printf(“%d”,j);
}
......................
阅读全部
|
guoq416
贴于 2013年4月5日 17:53
hide
bbsi
#include<iostream>
using namespace std;
int f(int x,int y);
int main()
{
cout<<f(2,3);
system("pause");
return 0;
}
int f(int x,int y)
{
if(x==1 && y==1) return 1;
......................
阅读全部
|
qunxingw
贴于 2013年4月5日 12:01
hide
bbsi
#include<stdio.h>
void main()
{
const char * p="ssss";
char * q=0;
q=p;
ptintf(" %s",q);
}
阅读全部
|
haoyasen
贴于 2013年4月4日 08:39
hide
bbsi