搜索结果

找到约 40 项符合 stdlib 的查询结果

C/C++语言编程 C语言用户注册及登录

#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> main(void) {   char new_name[4], name[4];     int new_sn ,sn;     printf("        【注册】\n\n");     printf("请输入用户名(四位英文字母):");     scanf("%s", ...
https://www.eeworm.com/dl/509083.html
下载: 1
查看: 168

源码 利用栈的基本操作实现将任意一个十进制整数N转化为R进制整数。

#include <stdlib.h> #include<stdio.h> #include <malloc.h> #define stack_init_size 100 #define stackincrement 10 typedef struct sqstack { int *base; int *top; int stacksize; } sqstack; int StackInit(sqstack *s) { s->base=(int *)malloc(stack_init_size *sizeof(int)); if(!s->base) return 0; s->top=s->ba ...
https://www.eeworm.com/dl/513582.html
查看: 40

源码 运动会源代码

#include <malloc.h>       #include <stdio.h>       #include <stdlib.h>       #include <string.h>       #define NULL 0    &nbsp ...
https://www.eeworm.com/dl/513814.html
下载: 2
查看: 9

源码 c语言算法排序

1.Describe a Θ(n lg n)-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x. (Implement exercise 2.3-7.) #include<stdio.h> #include<stdlib.h> void merge(int arr[],int low,int mid,int high){   ...
https://www.eeworm.com/dl/514507.html
下载: 1
查看: 15

笔记 编写一个程序,要求用户输入一年12个月每月的降雨总量,并采用一个float数组存储。

程序显示: 一年内总降雨量、平均每月的降雨量、降雨量最大的月份和最小的月份。 #include<iostream> using namespace std; #include<stdlib.h> int main() .. .. .. cout<<"降雨量最小的月份是:"<<minyue<<"月   "<<"降雨量为:"<<min<<endl; } ...
https://www.eeworm.com/dl/517028.html
下载: 3
查看: 1049

源码 数据结构实验

#include <stdio.h>   #include <stdlib.h> ///链式栈      typedef struct node   {       int data;       struc ...
https://www.eeworm.com/dl/517413.html
下载: 2
查看: 48

源码 数据结构实验

#include <iostream> #include <stdio.head> #include <stdlib.head> #include <string.head> #define ElemType int #define max 100 using namespace std; typedef struct node1 { ElemType data; struct node1 *next; }Node1,*LinkList;//链栈 typedef struct { ElemType *base; int top; }SqStack;// ...
https://www.eeworm.com/dl/517414.html
下载: 2
查看: 50

源码 成绩查询系统

#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 100 int iNumOfStu=0; struct score   {   float math;   float english;   float computer;   }; struct student   {   int number ...
https://www.eeworm.com/dl/520134.html
查看: 56

源码 学生成绩guanli

#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 100 int iNumOfStu=0; struct score   {   float math;   float english;   float computer;   }; struct student   {   int number ...
https://www.eeworm.com/dl/520138.html
查看: 52

源码 数组子系统

#include <stdio.h> #include <stdlib.h> #define SMAX 100 typedef struct SPNode { int i,j,v; }SPNode; struct sparmatrix { int rows,cols,terms; SPNode data [SMAX]; }; sparmatrix CreateSparmatrix() { sparmatrix A; printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):"); scanf("%d, ...
https://www.eeworm.com/dl/522521.html
下载: 1
查看: 81