随笔 - 173  文章 - 1  评论 - 26  阅读 - 43万
09 2016 档案
C++学习笔记(9)----关于变量和数组大小的一道容易出错的面试题
摘要:一道容易出错的C++笔试题 求下面代码的输出内容: int main(int argc,char argv[]) { char str1[]="Hello"; char str2="World"; cout 解析: str1指向的是字符串 "Hello" 的首地址,但 str1 同时也是一个字符数组 阅读全文
posted @ 2016-09-21 18:08 HorseShoe2016 阅读(230) 评论(0) 推荐(0) 编辑
MySQL数据库(13)----忘记root用户密码解决方案【转载】
摘要:1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库。 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录和修改MySQL的信息。可以采用将MySQL对 外的端口封闭,并且停止Apache以及所有的用户进程 阅读全文
posted @ 2016-09-14 12:23 HorseShoe2016 阅读(158) 评论(0) 推荐(0) 编辑
C++学习笔记(8)----C++类的大小
摘要:C++类的大小 (i) 如下代码: include using namespace std; class CBase { }; class CDerive :public CBase { }; int main(int argc, char argv[]) { CDerive p[3]; cout 阅读全文
posted @ 2016-09-12 13:16 HorseShoe2016 阅读(191) 评论(0) 推荐(0) 编辑
C++学习笔记(7)----类的数组中构造函数和析构函数的调用顺序
摘要:C++类的数组中构造函数和析构函数的调用顺序(2) 对于如下的代码: include using namespace std; class CBase { private: static int count; public: int id; public: CBase() { id = CBase: 阅读全文
posted @ 2016-09-12 13:02 HorseShoe2016 阅读(2478) 评论(0) 推荐(0) 编辑
C++学习笔记(6)----基类和派生类的构造函数和析构函数的执行顺序
摘要:基类和派生类:构造函数和析构函数的执行顺序 在Visual Studio中,新建控制台工程,构造类如下: include using namespace std; class CBase { public: CBase() { cout Test.exe CBase():Constructor CD 阅读全文
posted @ 2016-09-12 12:00 HorseShoe2016 阅读(4402) 评论(0) 推荐(0) 编辑
Android学习笔记(4)----Rendering Problems(The graphics preview in the layout editor may not be accurate)
摘要:在Android Studio中新建了一个 setting.xml 文件,布局好文件后,从 Text 界面切换到 Design 界面,显示了如下错误: 网上搜寻 The graphics preview in the layout editor may not be accurate ,还是没有解决 阅读全文
posted @ 2016-09-07 11:22 HorseShoe2016 阅读(2777) 评论(0) 推荐(0) 编辑
LeetCode赛题395----Longest Substring with At Least K Repeating Characters
摘要:395. Longest Substring with At least K Repeating Characters Find the length of the longest substring T of a given string (consists of lowercase letter 阅读全文
posted @ 2016-09-05 22:18 HorseShoe2016 阅读(2843) 评论(1) 推荐(0) 编辑
LeetCode赛题394----Decode String
摘要:394. Decode String Given an encoded string, return it's decoded string. The encoding rule is: , where the encoded_string inside the square brackets is 阅读全文
posted @ 2016-09-05 22:07 HorseShoe2016 阅读(950) 评论(0) 推荐(0) 编辑
LeetCode赛题393----UTF-8 Validation
摘要:393. UTF 8 Validation A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: 1. For 1 byte character, the first bit is a 阅读全文
posted @ 2016-09-05 21:52 HorseShoe2016 阅读(663) 评论(0) 推荐(0) 编辑
LeetCode赛题392---- Is Subsequence
摘要:392. Is Subsequence Given a string s and a string t , check if s is subsequence of t . You may assume that there is only lower case English letters in 阅读全文
posted @ 2016-09-05 21:36 HorseShoe2016 阅读(1861) 评论(0) 推荐(0) 编辑
LeetCode算法题5----Longest Palindromic Substring
摘要:5. Longest Palindromic Substring Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, a 阅读全文
posted @ 2016-09-03 20:11 HorseShoe2016 阅读(149) 评论(0) 推荐(0) 编辑
LeetCode赛题391----Perfect Rectangle
摘要:391. Perfect Rectangle Given N axis aligned rectangles where N 0, determine if they all together form an exact cover of a rectangular region. Each rec 阅读全文
posted @ 2016-09-01 19:58 HorseShoe2016 阅读(824) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示