08 2017 档案
摘要:“\t\v\\0”长度=4;\0:字符串结束符;\\0:\将\0进行了转义,所以\0是两个字符 类的友元函数的访问权限跟类内部的方法相同,但是友元函数不属于本类的对象,一般它是另一个类的成员函数,不能通过本类的this指针进行访问。 node是一个指针,它指向的是const char类型,node可
阅读全文
摘要:2017/8/18 程序运行结束时才释放;静态变量在内存的静态存储区,静态数据一直占有着该存储单元直到程序结束;一般局部变量在函数调用结束后释放变量占用的存储单元,而静态局部变量不释放。 静态全局变量的作用域只是定义它的文件,不能被其他文件使用; 静态局部变量只声明一次,一旦申请内存成功,不再接受重
阅读全文
摘要:lettcode21. Merge Two Sorted Lists Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nod
阅读全文
摘要:20.Valid Parentheses Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The bracke
阅读全文
摘要:1.codeblocks编译时,下面这行报错。错误为: Error: Range-based loops are not allowed in C++98 解决方法: "setting->compiler->Global compiler settings->Compiler Flags"中勾选"H
阅读全文
浙公网安备 33010602011771号