08 2019 档案
摘要:术语表 第 3 章 字符串, 向量和数组 begin: 是 string 和 vector 的成员,返回指向第一个元素的迭代器。也是一个标准库函数,输入一个数字,返回指向该数字首元素的指针。 缓冲区溢出(buffer overflow): 一种严重的程序故障,主要的原因是试
阅读全文
摘要:术语表 第 2 章 变量和基本类型 地址(address): 是一个数字,根据它可以找到内存中的一个字节 别名生命(alias declaration): 为另一种类型定义一个同义词:使用 ”名字 = 类型“ 的格式将名字作为该类型的同义词。 算术
阅读全文
摘要:术语表 第 1 章 开始 参数(实参, argument): 向函数传递值 赋值(assignment): 抹去一个对象当前值一个新值取代之 缓冲区(buffer): 一个存储区域, 用于保存数据。IO 设施通常将输入(或输出)数据保存在一个缓冲区
阅读全文
摘要:AC代码 注意创造函数条件中使用引用 输出语句注意单复数
阅读全文
摘要:术语表 目录 "第 1 章 开始" 第 I 部分 C++基础 "第 2 章 变量和基本类型" "第 3 章 字符串, 向量和数组" "第 4 章 表达式" "第 5 章 语句" "第 6 章 函数" "第 7 章 类" 第 II 部分 C++标准库 "第 8 章 IO库" "第 9 章 顺序容器"
阅读全文
摘要:AC代码 include include include include using namespace std; const int max_n = 110; int main() { ifdef ONLINE_JUDGE else freopen("1.txt", "r", stdin); en
阅读全文
摘要:书中AC代码 include include include include const int max_n = 10100; using namespace std; void Print(bool a) { if(!a) printf(" "); } int main() { ifdef ONL
阅读全文
摘要:书中AC代码 include include include using namespace std; int main() { ifdef ONLINE_JUDGE else freopen("1.txt", "r", stdin); //char DD; //日期 endif // ONLINE
阅读全文
摘要:AC代码 include include using namespace std; const int max_n = 110; //权重 int W[17] = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2}; //验证码 char M[
阅读全文
摘要:AC代码 include include include using namespace std; const int max_n = 1010; char ans[max_n]; int count[10][2] = {0}; int main() { ifdef ONLINE_JUDGE els
阅读全文
摘要:AC代码 include const int max_n = 1000; int ans[max_n]; char result[max_n]; char radix[13] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B',
阅读全文
摘要:AC代码
阅读全文
摘要:课本AC代码 自己写的, 一个错误,找了几个小时找不到
阅读全文
摘要:AC代码 include include using namespace std; char flag = 0; //判断付钱数是否大于价格 struct Money { int Galleon, Sickle, Knut; } price, pay, temp, sub; void init()
阅读全文
摘要:课本AC代码 include include const int nowyear = 2014; const int nowmonth = 9; const int nowday = 6; const int oldyear = 2014 200; struct People { char name
阅读全文
摘要:AC代码 include include include using namespace std; struct Sign { char SignInNumber[20]; int h, m, s; }earlist, least, temp; / struct Time { int h, m, s
阅读全文
摘要:思路: 读取数组 计算边长 输出 AC代码 include include int const max_n = 85; using namespace std; int main() { ifdef ONLINE_JUDGE else freopen("1.txt", "r", stdin); en
阅读全文
摘要:思路: 1. 使用数组保存每一行沙漏的最大符号数 2. 输入一个正整数和一个符号 3. 遍历数组,找到大于正整数的数组下标 j。 4. 三角形底边的字符数为 (j 1) 2 1 5. 打印沙漏 6. 打印剩余字符:x n[j 1] AC代码 include const int max_n = 200
阅读全文