#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-23 22:47:28
阅读次数:
82
C语言Socket编程,实现两个程序间的通信 server和client通信流程图 在mooc上找到的,使用Socket客户端client和服务端server通信的流程图?? 服务端server 服务端需要 "两个"套接字 : 1.服务端套接字serverSocket 2.客户端connect连接请 ...
分类:
编程语言 时间:
2019-12-23 19:14:02
阅读次数:
109
一、剧情回顾 在上一篇链接器的秘密里面我们讲到我们用一些特殊的宏让链接器帮我们把一些初始化好的结构体列好队并安排在程序的某一个段里面,这里我例举出了三个和我们主题相关段的分布情况,它们大概如下图所示:(我们可以通过搜索宏ll_entry_declare来找到它们) 那么问题来了,那它们三个是什么关系 ...
分类:
其他好文 时间:
2019-12-23 18:42:38
阅读次数:
128
#include<iostream> using namespace std; constexpr auto MAX = 1000; //联系人结构体 struct Person { string m_name; int m_sex; int m_age; string m_phone; strin ...
分类:
编程语言 时间:
2019-12-23 15:11:59
阅读次数:
150
自定义错误结构体 package utils type MyError struct { Code int Message string } func NewMyError(code int, msg string) error { return &MyError{Code: code, Messa... ...
分类:
其他好文 时间:
2019-12-23 14:55:04
阅读次数:
106
#include<iostream> using namespace std; constexpr auto MAX = 1000; //联系人结构体 struct Person { string m_name; int m_sex; int m_age; string m_phone; strin ...
分类:
编程语言 时间:
2019-12-23 14:52:17
阅读次数:
145
ex1_2 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int s ...
分类:
其他好文 时间:
2019-12-23 13:29:53
阅读次数:
44
#include <stdio.h>#include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; } ...
分类:
其他好文 时间:
2019-12-23 13:16:07
阅读次数:
65
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-23 11:45:33
阅读次数:
81
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-23 00:25:09
阅读次数:
83