Welcome![Sign In][Sign Up]
Location:
Search - stdlib.c

Search list

[Data structsflight

Description: 1. 学习和掌握结构体和链表相关知识,掌握程序设计基本过程; 2. 简单的系统与功能分析,了解航班信息管理系统的需求,用C语言开发航班信息管理系统; 3. 建立数据结构链表,数据内容包括航班号、航线、起飞时间、到达时间、机型、所属公司、价格; 4. 编写实现程序功能的各个函数; 5. 建立一个测试数据表,包含十多条航班信息,进行数据测试; 6. 使用数据链表实现数据的:录入、查询、显示、删除、修改、排序、文件保存、系统退出等功能; 调试系统,处理少数系统出错,优化系统界面。 -#include <stdio.h> #include <string.h> #include <stdlib.h> #include <conio.h> #define LEN sizeof(struct AIR) struct AIR//定义结构体 { char Number[10] char Airline[15] char start_time[6] char arrived_time[6] char Plane[6] char Company[15] float Price struct AIR*next }
Platform: | Size: 4096 | Author: Joe | Hits:

[Disk ToolsNStepSCAN

Description: NStepSCAN N步磁盘扫描调度算法C++程序-#include "stdafx.h" #include "stdlib.h" int L,P int a[20] int flag //访问位 typedef struct TASK { int requrie int io } TASK TASK T[50][50] TASK N[50] int diskway //当前磁道 void iodowith() void init() { int i,j for(i=0 i<20 i++) { for(j=0 j<20 j++) { T[i][j].requrie=-1 } } for(i=0 i<L i++) { for(j=0 j<P j++) { T[i][j].requrie=rand() 200 T[i][j].io=rand() 2 } } } void output() { printf("磁盘访问的初始顺序是:\n") for(int i=0 i<L i++) { printf("第 d组是:\n",i+1) for(int j=0 j<P j++) { printf(" d d\t",T[i][j].requrie,T[i][j].io) } printf("\n") } } void sort_btos(TASK x[],int n) { int i,j,k TASK t for(i=0 i<n-1 i++) { k=i for(j=i+1 j<n j++) if(x[j].requrie>x[k].requrie) k=j if(k!=i) { t=x[i] x[i]=x[k] x[k]=t } } } void sort_stob(TASK x[],int n) { int i,j,k TASK t fo
Platform: | Size: 1024 | Author: 吴英杰 | Hits:

[Data structsjuzhen

Description: 矩阵操作 c++实现 课程设计 #include <iostream.h> #include <stdlib.h> #include<iomanip.h> void fanzhuan1(int b[5][5]) void fanzhuan2(int b[5][5]) void juandong1(int b[5][5]) void juandong2(int b[5][5]) void print(int b[5][5]) int a[5][5] void start(int b[5][5]) //初始化数组 { int i,j for(i=0 i<5 i++) for(j=0 j<5 j++) b[i][j]=a[i][j] } void print(int b[5][5]) //输出函数 -Matrix operation
Platform: | Size: 2048 | Author: 黄苏敏 | Hits:

[Data structsWinRAR-ZIP

Description: 在C++用递归实现链表逆序 使得倒序输出。-#include <stdio.h> #include <stdlib.h> #include <time.h> const int M=10 typedef int Type typedef struct Node{ Type data struct Node* next }Node void add_elem(Node**head,Type data){ Node* tmp = (Node*)malloc(sizeof(Node)) tmp->data = data tmp->next = (*head) *head = tmp } void print_list(Node*head){ while(head){ printf(“ d “, head->data) head = head->next } printf(“\n”) } void reverse_list(Node**head){ if(!*head)//如果(*head)==NULL return Node*p1,*p2 p1 =*head p2 = (*head)->next if(!p2)//如果没有下一个节点 return reverse_list(&p2) //同时存在两个节点就要进行翻转 p1->next->next = p1 p1->next = NULL //主要是保证,第一个节点指向NULL (*head) = p2 } int main(){ Node*head = NULL for(int i=0 i<M i++) add_elem(&head, rand() 100) print_list(head) reverse_list(&head) print_list(head) }
Platform: | Size: 3072 | Author: ye zi | Hits:

[Internet-NetworkCharsetConverter

Description: c++头文件用来加载c++动态库时候的头文件,stdlib.h的头文件-c++ code
Platform: | Size: 1024 | Author: 刘浪 | Hits:

[mpeg mp3ffplay

Description: 最新版本的ffplay,已经调试成功的代码。-/* * Various utilities for command line tools * Copyright (c) 2000-2003 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include <string.h> #include <stdlib.h> #include <errno.h> #include <math.h> /* Include only the enabled headers s
Platform: | Size: 90112 | Author: 金丰 | Hits:

[Data structsjieshiqi

Description: 用C语言编写实现解释器,希望对你们有所帮助。 #include<stdio.h> #include<stdlib.h> #include<string.h> main()-C language interpreter, you want to be helpful.# Include <stdio.h># Include <stdlib.h># Include <string.h> main ()
Platform: | Size: 1024 | Author: 杨晨 | Hits:

[Other Gamesnamefight

Description: 以前自己编的一个小游戏,输入姓名然后可以对战,可以自娱自乐一下-#include <stdlib.h> #include <time.h> #include <windows.h> #define S Sleep(1000) #define P printf char name1[20],name2[20] int k1,k2,i,t1,t2,sxq int x1=100,x2=100,pow1,pow2,spe1,spe2 void main() { void xz(int pow1,int pow2,int spe1,int spe2) void zs(int c) int xh,error char js START: while(1) { P(" \n · 名字对战游戏v2.2 · \n\n") P(" ====================\n | 1.开始游戏 |\n") P(" \n | 2.游戏介绍 |\n") P(" \n | 3.关 于 |\n") P(" \n | 4.退 出 |\n
Platform: | Size: 2048 | Author: 安若 | Hits:

[Otherfile5

Description: C语言实验5,学生信息管理系统#include "stdio.h" #include "stdlib.h" #include "string.h" #include "malloc.h" -student infomation management system
Platform: | Size: 12288 | Author: 月心月士 | Hits:

[Windows DevelopCRT

Description: C运行库函数介绍(stdio.h stdlib.h)-C runtime library functions (stdio.h stdlib.h)
Platform: | Size: 3072 | Author: spp | Hits:

[OS programC1

Description: #include "stdlib.h" #include"graphics.h" main() { int gd=DETECT,gr,a[8],b[8],x,y,i,j,c initgraph(&gd,&gr,"") randomize() for( !kbhit() ) { x=rand() 500+100 /*随机中心坐标*/ y=rand() 300+100 a[0]=x /*各点坐标的计算,我的烟花图形没能是圆的*/-# Include " stdlib.h" # include " graphics.h" main () {int gd = DETECT, gr, a [8], b [8], x, y, i, j, c initgraph (& gd, & gr , " " ) randomize () for ( ! kbhit () ) {x = rand () 500+100 /* Random center coordinates*/y = rand () 300+100 a [0] = x /* calculate the coordinates of each point, I was not able to fireworks graphics is round* /
Platform: | Size: 1024 | Author: 阿鑫 | Hits:

[Windows Develop868123

Description: #include <stdio.h>   #include <stdlib.h>   //输入十进制数N和转化的进制数M   void trans(int n,int m)   { char str[100] int i    for(i=0 n>0 i++) {if (n m<10) {str[i]=n m+ 0 } else {str[i]=n m-10+ A } n=n/m } for(n=i n>0 n--){printf(" c",str[n-1]) }   }   void main()  { int m,n,x char ch  printf("给定进制 M---")  scanf(" d",&m)  loop:  printf("给定一个 d 进制的数 X---",m)  fflush(stdin) //一个M进制的数X转10进制  for(x=0 )  { ch=getchar()  if(ch>= 0 && ch<= 9 ) { n=ch- 0 }  else if(ch>= a && ch<= z ) { n=ch- a +10 }  else if(ch>= A && ch<= Z ) { n=ch- A +10 }  else { break }  if(n>=m){goto loop }  x=x*m+n  }  printf("转换成 10 进制的数为 --- d\n",x)  printf("给定要转换成的进制 N---")  scanf(" d",&m)  printf("转换成 d 进制后的结果 ---",m)  trans(x,m)  printf("\n") }-#include <stdio.h>   #include <stdlib.h>   //输入十进制数N和转化的进制数M   void trans(int n,int m)   { char str[100] int i    for(i=0 n>0 i++) {if (n m<10) {str[i]=n m+ 0 } else {str[i]=n m-10+ A } n=n/m } for(n=i n>0 n--){printf(" c",str[n-1]) }   }   void main()  { int m,n,x char ch  printf("给定进制 M---")  scanf(" d",&m)  loop:  printf("给定一个 d 进制的数 X---",m)  fflush(stdin) //一个M进制的数X转10进制  for(x=0 )  { ch=getchar()  if(ch>= 0 && ch<= 9 ) { n=ch- 0 }  else if(ch>= a && ch<= z ) { n=ch- a +10 }  else if(ch>= A && ch<= Z ) { n=ch- A +10 }  else { break }  if(n>=m){goto loop }  x=x*m+n  }  printf("转换成 10 进制的数为--- d\n",x)  printf("给定要转换成的进制 N---")  scanf(" d",&m)  printf("转换成 d 进制后的结果---",m)  trans(x,m)  printf("\n") }
Platform: | Size: 9216 | Author: 868123 | Hits:

[Other Riddle gameseluosifangkuai

Description: 俄罗斯方块 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 #include <iostream> #include <stdlib.h> #include <windows.h> #include <time.h> #include <conio.h> using namespace std #define A1 0//A代表长条型,B为方块,C为L型,D为闪电型(实在无法描述那个形状) #define A2 1 #define B 2 #define C11 3 #define C12 4 #define C13 5 #define C14 6 #define C21 7 #define C22 8 #define C23 9 #define C24 10 #define D11 11 #define D12 12 #define D21 13 #define D22 14 /*typedef struct COORD { // coord. SHORT X // horizontal coordinate SHORT Y // vertical coordinate } COORD */ void SetPos(int i,int j)//设定光标位置 { COORD pos={i,j} HANDLE Out=GetStdHandle(STD_OUTPUT_HANDLE) SetConsoleCursorPosition(Out, pos) }-Tetris. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .# Include <iostream># Include <stdlib.h># Include <windows.h># Include <time.h># Include <conio.h> using namespace std # define A1 0// A representative of the long bar, B is a block, C is L-shaped, D is the Lightning (really can not describe the shape)# define A2 1# define B 2# define C11 3# define C12 4# define C13 5# define C14 6# define C21 7# define C22 8# define C23 9# define C24 10# define D11 11# define D12 12# define D21 13# define D22 14 /* typedef struct COORD {//coord SHORT X .// horizontal coordinate SHORT Y // vertical coordinate} COORD */void SetPos (int i, int j)// set the cursor position {COORD pos = {i, j} HANDLE Out = GetStdHandle (STD_OUTPUT_HANDLE) SetConsoleCursorPosition (Out, pos) }. . . .
Platform: | Size: 275456 | Author: 天河 | Hits:

[CSharpabout-indias-temple

Description: 用于计算印度神庙的柱子问题,怎样子才能以最快速的方式算出其最优顺序。-#include stdio.h #include stdlib.h void move(char getone,char putone) { printf( c-> c\n ,getone,putone) } void hanoi(int n,char one,char two,char three) { if(n==1) move(one,three) else { hanoi(n-1,one,three,two) move(one,three) hanoi(n-1,two,one,three) } } void main() { int m printf( input the number of disks: ) scanf( d ,&m) printf( the steps of moving 3d disks:\n ,m) hanoi(m, A , B , C ) return 0 }
Platform: | Size: 29696 | Author: 林莫 | Hits:

[File OperateFilemon-

Description: 系统监控,文件操作等,源代码 例子 模拟器等-file monitor,c++ #include stdlib.h #include string.h #include fstream.h #include time.h #include dos.h
Platform: | Size: 546816 | Author: haha | Hits:

[OtherGET-MT4-DATA

Description: 本指标能实时导出MT的行情数据,供Advanced GET8使用,以下是注意事项: 1、只测试了GET8 2、本指标附加到行情图表后,能导出当前周期的数据保存到MTexpertsfiles目录里面,从M1,M15,,,一直到MN周期均可 3、将GET的数据目录指定到MTexpertsfiles,并且将日期格式设定为YYYY,MM,DD 4、至于股票数据,那更简单,启动通达信(或者以通达信为核心的股票软件,如中信证券的股票软件),选定股票,尽量缩小K线图,然后34回车,将数据导出到GET数据文件目录后,可直接用于GET,不用修改. 5、本指标纯粹用于学习交流,无商业目的. 以下为指标源代码 -#include <stdlib.mqh> #property indicator_chart_window extern string GET_PATH = C:\Program Files\GET8\TEXT\ int last_write_period=0 extern int MAX_ROWS = 300 extern string START_DATE = 2008-1-1 int init() { writelog() return (0) } int writelog() { int i, cnt, hlog, tm string s = Symbol() s = StringSubstr(s, 0, 1)+StringSubstr(s, 3, 1) string fname = s+ _ cnt = Period() if (cnt==PERIOD_M1) fname = fname+ M1.txt if (cnt==PERIOD_M5) fname = fname+ M5.txt if (cnt==PERIOD_M15) fname = fname+ M15.txt if (cnt==PERIOD_M30) fname = fname+ M30.txt if (cnt==PERIOD_H1) fname = fname+ H1.txt if (cnt==PERIOD_H4) fname = fname+ H4.txt if (cnt==PERIOD_D1) fname = fname+ D1.txt if (cnt==PERIOD_W1) fname = fname+ W1.txt if (cnt==PERIOD_MN1) fname = fname+ MN.txt cnt = CurTime()/(cnt*60) if (cnt!=last_write_period) { hlog = FileOpen(fname, FILE_CSV | FILE_WRITE, ) if (hlog<=0) { Pr
Platform: | Size: 1024 | Author: Huang wei | Hits:

[Linux-Unixstring

Description: The C++ standard says that <stdlib.h> declares both ::foo and std::foo But this isn t done in QNX version 6.3.2 200709062316.
Platform: | Size: 7168 | Author: beimkxue | Hits:

[Linux-Unixassert

Description: Replace bionic libc stdlib assert.c which logs to stderr with our version which does LOGF. To be effective, add CFLAGS += -UNDEBUG and explicitly link in assert.c in all build modules.
Platform: | Size: 2048 | Author: tangxingth | Hits:

[Software Engineeringstandard-library

Description: c++ 标准程序库介绍和使用指南,详细说明使用方法,内有代码-c++ stdlib
Platform: | Size: 3710976 | Author: zhangyuxiao | Hits:

[source in ebookstdio_stdlib_string-

Description: C库stdio,stdlib,string重新实现。-Header file stdio,stdlib,string in C.
Platform: | Size: 714752 | Author: 王宇涵 | Hits:
« 1 2 34 »

CodeBus www.codebus.net