2017年4月17日

hpp文件与h文件

摘要: 提起hpp文件,或许很多菜鸟会比较陌生,大家只知道.h文件,但是没听过hpp。实际上,hpp文件是将cpp文件混入h头文件中,在hpp文件内,实现与定义都包含在了同一个文件中,所以,该类的调用者只需要include这个hpp文件即可,无需再将cpp文件加到project中进行编译。... 阅读全文

posted @ 2017-04-17 23:30 gechen 阅读(544) 评论(0) 推荐(0) 编辑

LeetCode : Palindrome Linked List

摘要: Given a singly linked list, determine if it is a palindrome./** * Definition for singly-linked list. * struct ListNode { * int val; * ... 阅读全文

posted @ 2017-04-17 19:48 gechen 阅读(94) 评论(0) 推荐(0) 编辑

LeetCode : Word Pattern

摘要: Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between... 阅读全文

posted @ 2017-04-17 15:16 gechen 阅读(149) 评论(0) 推荐(0) 编辑

导航