#include<stdio.h>
#define PI 3.1415926
main()
{
int r;float *s;
float yuan(int,float);
scanf("%d",&r);
s=&yuan(r);
printf("圆的面积为",yuan(r));
return 0;
}
......................
阅读全部
|
多久变大神
贴于 2015年4月6日 21:06
hide
bbsi
#include <iostream>
#include <malloc.h>
using namespace std;
typedef struct
{
float coef;
int expn;
}ElemType;
typedef struct PolyNode
{
ElemType data;
struct PolyNode *next;
......................
阅读全部
|
一天一天谎言
贴于 2015年4月6日 15:48
hide
bbsi
#include <iostream>
#include <malloc.h>
using namespace std;
typedef struct
{
float coef;
int expn;
}ElemType;
typedef struct PolyNode
{
ElemType data;
struct PolyNode *next;
......................
阅读全部
|
一天一天谎言
贴于 2015年4月6日 15:29
hide
bbsi
#include<iostream>
#include<string>
#include<cstring>
using namespace std;
const n=100;
const m=50;
int stringmatch(char ch1[],char ch2[])
{
int i,j;
for(i=0;i<n-m;)
{
......................
阅读全部
|
一条沙丁鱼
贴于 2015年4月5日 20:34
hide
bbsi
#include<stdio.h>
main( )
{
int i=1;
void union(List&La,List Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e);
if(!LocateElem(La,e,equal( ))ListInsert(La,++La_len,e));
}
}
......................
阅读全部
|
刘新手
贴于 2015年4月4日 11:32
hide
bbsi
#include<stdio.h>
main( )
{
int i=1;
void union(List&La,List Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e);
if(!LocateElem(La,e,equal( ))ListInsert(La,++La_len,e));
}
}
......................
阅读全部
|
刘新手
贴于 2015年4月4日 11:28
hide
bbsi
#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c,dis,p,q;
printf("please intput a;b;c:");
scanf("%lf%lf%lf",&a,&b,&c);
dis=b*b-4*a*c;
p=-b/(2*a);
if(a!=0)
{
......................
阅读全部
|
夏日_
贴于 2015年3月31日 19:23
hide
bbsi
#include <iostream>
using namespace std;
class volume
{
private:
int length;
int width;
int heigth;
public:
void set_volume(void);
void show_volume(void);
};
......................
阅读全部
|
hzj199603
贴于 2015年3月29日 22:26
hide
bbsi