摘要:
书籍 TCP/IP 详解 卷1:协议 计算机网络 自顶向下 计算机网络 第五版 谢希仁 知识点 TCP/IP技术栈一大部分都隐藏于操作系统内核态 TCP/IP协议体系的认知 透明性:下层对上层透明 链路层 以太网帧格式 MTU ARP 网络层 IP首部格式 IP分片 IP选路 ICMP 传输层: U 阅读全文
摘要:
在软件构建过程中,如果某一特定领域的问题比较复杂,类似的结构不断重复出现,如果使用普通的编程方式来实现将面临非常频繁的变化 在这种情况下,将特定领域的问题表达为某种语法规则下的句子,然后构建一个解析器来解释这样的句子,从而解决问题 GoF:给定一个语言,定义它的文法的一种表示,并定义一种解释器,这个 阅读全文
摘要:
Object Based(基于对象) class without pointer menbers class with pointer menbers Object Oriented(面向对象) Classes之间的关系 继承(inheritance) 复合(composition) 委托(dele 阅读全文
摘要:
class with pointer menbers string_test.cpp 1 #include "string.h" 2 #include <iostream> 3 4 using namespace std; 5 6 int main() 7 { 8 String s1("hello" 阅读全文
摘要:
概述 借鉴集装箱运输的思路 解决了同样代码,运行环境变化后无法运行的问题 一个容器包含了完整的运行时环境,除了应用程序本身之外,这个应用所需的全部依赖、类库、其他二进制文件、配置文件等,都统一被打入了一个称为容器镜像的包中 介绍 镜像:镜像是文件,是只读的,提供了运行程序完整的软硬件资源,是应用程序 阅读全文
摘要:
如题 1 #include<stdio.h> 2 int main() { 3 int i,j=0; 4 char a[]="How are you"; 5 for(i=0; a[i]; i++) 6 if(a[i]!=' ') a[j++]=a[i]; 7 a[j]='\0'; 8 printf( 阅读全文
摘要:
1 #include <iostream> 2 3 class My1{ 4 public: 5 My1(); 6 ~My1(); 7 }; 8 9 class My2{ 10 public: 11 My2(); 12 ~My2(); 13 My1 mymm; 14 }; 15 16 class M 阅读全文
摘要:
浙大mooc习题: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define MAXSIZE 10 5 #define NotFound 0 6 typedef int ElementType; 7 8 typedef int Position; 阅读全文
摘要:
例题:编写函数,求一个数的平方 #include <iostream> using namespace std; int power(int a,int b); int main(){ int n; n = power(3,3); printf("%d\n",n); } int power(int 阅读全文
摘要:
正则表达式 字符串可以保存任意的数据信息,并向所有的数据类型转换 正则最早是Linux下发展起来的技术,理论基础源自离散数学 JDK 1.4 修改了String类定义,可通过字符串类进行正则的处理 传统的做法 1 public class Regex_Demo { 2 public static v 阅读全文