
c语言回顾
栗染
世界万物不过一场梦
展开
-
c语言函数练习
一、单项选择题1.能正确表示逻辑关系:“a≥=10或a≤0”的C语言表达式是( d )。A. a〉=10 or a<=0 B. a〉=0|a<=10 C. a〉=10 &&a<=0 D. a>=10‖a<=0 2. 若有以下定义: char a; int b;float c; double d; 则表达式a*b+d-c值的类型为( d )。A.float原创 2016-12-02 16:59:37 · 5997 阅读 · 0 评论 -
链表增删查
#include #include typedef struct node{ int nDate; struct node *pstnext;}Node;//链表输出void output(Node *head){ Node *p = head->pstnext; while(NULL != p) { printf("%d ", p->nDate); p = p->pstnext; } print原创 2016-11-09 16:47:53 · 465 阅读 · 0 评论 -
c语言链表基本操作
对于c语言链表的增删改查#include #include #include#define true 1#define false 0typedef int bool;typedef struct Node{ int val; struct Node * next;}NODE,*PNODE;//函数声明void traverse_list(PNODE转载 2017-04-27 21:34:40 · 916 阅读 · 0 评论 -
c语言链表的基本操作2
c语言链表的基本操作2#include #include typedef int Datatype; //如果存其他类型的数据可以在此处直接修改typedef struct node { Datatype data; struct node *next;}Node;//创建结点Node* creatNode(Datatype data) { Nod转载 2017-04-27 21:39:52 · 741 阅读 · 0 评论 -
<C语言>简单表白代码小❤❤
#include //win头文件#include#include #include #include #define r 10 #define R 172int main(){ int i; printf("我"); fflush(stdout); //强制刷新缓存,输出显示 Sleep(1000);pr转载 2016-11-16 10:00:59 · 14586 阅读 · 6 评论