- 博客(4)
- 收藏
- 关注
原创 指针 与 引用 还有const
-- 指针先定义一个int类型的a,然后定义一个指针p 指向 a 的地址 ,再定义一个指向a的二重指针q,指向p的地址。 int a = 10; int *p =&a; // int *p; p =&a; so *p == 10; p ==&a; cout<<" &a is "<<&a<<endl; //&a is 0x22fe3c a 在内存 中的地址
2016-11-27 21:39:24 255
原创 剑指Offer第三题:从尾到头打印链表
public List<int> printListFromTailToHead(ListNode listNode) { // write code here List<int> list_test = new List<int>(); List<int> list_test1 = new List<int>(); ...
2020-05-17 22:40:25 89
原创 C++Primer第五版第一章
.1 /* run this program using the console pauser or add your own getch, system(“pause”) or input loop */int main(int argc, char** argv) {return 0;}1.2 int main(int argc, char** argv) {return -1;
2016-11-21 20:41:26 249
原创 The first day
今天是学习linux 系统的第一天,学到了以下指令。 cd /hehe进入hehe目录 cd . .返回上一级目录 pwd显示工作路径 ls 查看目录中的文件 ls -a显示隐藏文件 mkdir haha创建haha目录 rm -f haha 删除haha这个文件 rm -rf haha删除haha目录
2015-07-16 22:01:30 174
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人