搜索结果
找到约 37 项符合
scanf 的查询结果
按分类筛选
Linux/uClinux/Unix编程 两个链表的交集
两个链表的交集
#include<stdio.h>
#include<stdlib.h>
typedef struct Node{
&nbsp; int data;
&nbsp; struct &nbsp;Node *next;
}Node;
void initpointer(struct Node *p){
&nbsp; p=NULL;
}
int &nbsp;printlist(struct Node* head){
&nbsp; int flag=1;
&nbsp; head=head->next;
&nbsp; /*
&nbsp; 因为标记1的地 ...
源码 学生成绩guanli
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 100
int iNumOfStu=0;
struct score
&nbsp;&nbsp;{
&nbsp;&nbsp;float math;
&nbsp;&nbsp;float english;
&nbsp;&nbsp;float computer;
&nbsp;&nbsp;};
struct student
&nbsp;&nbsp;{
&nbsp;&nbsp;int number ...
源码 二叉树子系统
#include<stdio.h>
#define TREEMAX 100
typedef struct&nbsp; BT
{
char data;
BT *lchild;
BT *rchild;
}BT;
BT *CreateTree();
void Preorder(BT *T);
void Postorder(BT *T);
void Inorder(BT *T);
void Leafnum(BT *T);
void Nodenum(BT *T);
int TreeDepth(BT *T);
int count=0;
void main()
{
BT *T=NULL;
char ...
源码 运动会源代码
#include&nbsp;<malloc.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#include&nbsp;<stdio.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#include&nbsp;<stdlib.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#include&nbsp;<string.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#define&nbsp;NULL&nbsp;0&nbsp;&nbsp; &nbsp;&nbsp ...
技术资料 c语言——谭浩强
则x1=p+q
在前两个例子中用到了输入和输出函数scanf和 printf,在以后要详细介绍。这里我们先简单介绍一下它们的格式,以便下面使用。
C 语言的注释符是以“/*”开头并以“*/”结尾的串。在“/*”和“*/”之间的即为注释。程序编译时,不对注释作任何处理。注释可出现在程序中的任何位置。注释用来向用户提示或解释程序的意 ...
源码 数据结构实验
#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;// ...
源码 数据结构实验
#include&nbsp;<stdio.h>&nbsp;&nbsp;
#include&nbsp;<stdlib.h>&nbsp;///链式栈&nbsp;&nbsp;
&nbsp;&nbsp;
typedef&nbsp;struct&nbsp;node&nbsp;&nbsp;
{&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;data;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;struc ...