- 博客(3)
- 资源 (5)
- 收藏
- 关注
原创 Python实现结构体
#!/usr/bin/pythonimport sysclass MyClass(): def __init__(self, name = ""): self.name = name self.data_dic = {} self.index = -1 class Struct(): def __init__(self,
2017-06-29 17:32:36 22445
原创 C++ String 类的实现
#include <stdlib.h>#include <string.h>#include <iostream>class String{public: String(const char *str = NULL); String(const String &other); String & operator = (const String &other);
2017-06-29 17:00:46 311
原创 socket 编程
server #include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#define MAXLINE 4096int main(void){ int l
2017-06-29 16:54:34 243
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人