#include<stdio.h>
#include<stdlib.h>
int main()
{
printf("hello,world\n");
system("pause");
return 0;
}
阅读全部
|
intall
贴于 2015年3月14日 16:04
hide
bbsi
#include <stdio.h>
main()
{
printf("Hello wrold");
}
阅读全部
|
若相惜
贴于 2015年3月6日 19:53
hide
bbsi
#include <stdio.h>
main()
{
printf("Hello wrold");
}
阅读全部
|
若相惜
贴于 2015年3月6日 19:53
hide
bbsi
/*代码包含的函数库申明*/
#include<stdio.h>
#include <dos.h>
/*定义影片信息结构体*/
typedef struct //影片info
{
char No[10];
char name[10];
int state;
}DI;
......................
阅读全部
|
易庄周
贴于 2015年3月4日 16:45
hide
bbsi
//链表节点
typedef struct Node*{
char elem;
struct Node* next;
};
//创建单链表
Node* CreateList(Node* head){
if(NULL == head){
head = (Node*)malloc(sizeof(Node));
head->next = NULL;
}
Node* current = head,*temp;
......................
阅读全部
|
aiyifan
贴于 2015年2月24日 21:56
hide
bbsi
#include<stdio.h>
#include<iostream.h>
double fun(double a,double b,double c)
{
double t;
if(a<b)
{t=a;a=b;b=t;}
if(a<c)
{ t=a;a=c;c=t;}
if(b<c)
{ t=b;b=c;c=t;}
return 1.0;
......................
阅读全部
|
雪中立松
贴于 2015年2月17日 20:39
hide
bbsi
#include <stdio.h>
#define MAXLINE 40
#define LEN 61
void gettext(char (*t)[LEN],int *m)
{ int n;
printf("Enter textline,ended to empty line:\n");
n=0;
gets(t[n]);
while(*t[n])
{ n++;gets(t[n]);
*m=n;
}
......................
阅读全部
|
邵蜜柚
贴于 2015年2月12日 20:03
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#define FILE_PATH "D:\\demo.txt" // 文件路径
int main(){
char name[20]; // 姓名
int age; // 年龄
int studNo; // 学号
float score; // 平均分
FILE *fp; // 文件指针
// 判断文件是否能够正确创建/打开
......................
阅读全部
|
yangzhen1001
贴于 2015年2月6日 14:43
hide
bbsi
#include"stdio.h"
#define N 20
void ModEuler(float(*f)(float,float),float x0,float y0,float xn,int n)
{ int i;
float yp,yc ,x=x0,y=y0,h=(xn-x0)/n;
printf("x[0]=%f\ty[0]=%f\n",x,y);
for(i=1;i<=n;i++)
{
yp=y+h*(*f)(x,y);
x=x0+i*h;
yc=y+h*(*f)(x,yp);
y=(yp+yc)/2;
......................
阅读全部
|
yang_guang_v
贴于 2015年1月22日 15:45
hide
bbsi
#include"stdio.h"
#define N 20
void ModEuler(float(*f)(float,float),float x0,float y0,float xn,int n)
{ int i;
float yp,yc ,x=x0,y=y0,h=(xn-x0)/n;
printf("x[0]=%f\ty[0]=%f\n",x,y);
for(i=1;i<=n;i++)
{
yp=y+h*(*f)(x,y);
x=x0+i*h;
yc=y+h*(*f)(x,yp);
y=(yp+yc)/2;
......................
阅读全部
|
yang_guang_v
贴于 2015年1月22日 15:44
hide
bbsi