UML 类图
UML 类图
类示例
1 | class Circle |
1 | class Circle |
Fatal assertion | Nonfatal assertion | Verifies |
---|---|---|
ASSERT_TRUE(condition); | EXPECT_TRUE(condition); | condition is true |
ASSERT_FALSE(condition); | EXPECT_FALSE(condition); | condition is false |
Fatal assertion | Nonfatal assertion | Verifies |
---|---|---|
ASSERT_EQ(val1, val2); | EXPECT_EQ(val1, val2); | val1 == val2 |
ASSERT_NE(val1, val2); | EXPECT_NE(val1, val2); | val1 != val2 |
ASSERT_LT(val1, val2); | EXPECT_LT(val1, val2); | val1 < val2 |
ASSERT_LE(val1, val2); | EXPECT_LE(val1, val2); | val1 <= val2 |
ASSERT_GT(val1, val2); | EXPECT_GT(val1, val2); | val1 > val2 |
ASSERT_GE(val1, val2); | EXPECT_GE(val1, val2); | val1 >= val2 |
Fatal assertion | Nonfatal assertion | Verifies |
---|---|---|
ASSERT_STREQ(str1,str2); | EXPECT_STREQ(str1,str2); | the two C strings have the same content |
ASSERT_STRNE(str1,str2); | EXPECT_STRNE(str1,str2); | the two C strings have different contents |
ASSERT_STRCASEEQ(str1,str2); | EXPECT_STRCASEEQ(str1,str2); | the two C strings have the same content, ignoring case |
ASSERT_STRCASENE(str1,str2); | EXPECT_STRCASENE(str1,str2); | the two C strings have different contents, ignoring case |
注意:“CASE”表明忽略大小写,一个 NULL 指针和空字符串不一样
需要安装 visual studio c++ 2010 redistributable
Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update
需要将 sdk 尽量放到根目录下,路径名不要太长不然会出现编译出错的问题。
普通查表法会从头开始遍历数组,这样就绪态最高优先级的 task 会比就绪态优先级低的 task 先被查找到,造成不同优先级 task 在调度上花费时间不一致的情况,这违背了实时性的原则。
1 | git clone -b master https://github.com/flyzy2005/ss-fly |
1 | 启动:/etc/init.d/shadowsocks start |
1 | ./shadowsocksR.sh uninstall |