2021年1月12日

进制转换

摘要: #include <iostream> #include <vector> #include <string> using namespace std; //进制转换 class Solution { public: string changeValue(int M, int N) { string 阅读全文

posted @ 2021-01-12 14:09 wlqsmiling 阅读(55) 评论(0) 推荐(0) 编辑

2021年1月8日

二分搜索

摘要: 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 5 using namespace std; 6 7 //二分搜索 8 9 int binarySearch(int a[],int length,int data) { 阅读全文

posted @ 2021-01-08 16:53 wlqsmiling 阅读(50) 评论(0) 推荐(0) 编辑

单链表反转

摘要: #include <iostream> #include <vector> #include <string> using namespace std; struct Node { int data; Node * next; }; Node * reverseList(Node * head) { 阅读全文

posted @ 2021-01-08 16:27 wlqsmiling 阅读(65) 评论(0) 推荐(0) 编辑

堆排序算法

摘要: 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 5 using namespace std; 6 7 class Solution 8 { 9 private: 10 public: 11 void adjustHeap 阅读全文

posted @ 2021-01-08 15:51 wlqsmiling 阅读(64) 评论(0) 推荐(0) 编辑

快速排序算法

摘要: #include <iostream> #include <vector> #include <string> using namespace std; class Solution { private: public: int partition(int a[], int left, int ri 阅读全文

posted @ 2021-01-08 14:46 wlqsmiling 阅读(65) 评论(0) 推荐(0) 编辑

2017年3月14日

IOS 状态栏显示和隐藏

摘要: - (BOOL)prefersStatusBarHidden { return YES; } [self setNeedsStatusBarAppearanceUpdate]; 阅读全文

posted @ 2017-03-14 15:05 wlqsmiling 阅读(106) 评论(0) 推荐(0) 编辑

2017年3月9日

IOS 手机震动

摘要: #import #import - (void)vibrate { AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); } 阅读全文

posted @ 2017-03-09 16:08 wlqsmiling 阅读(76) 评论(0) 推荐(0) 编辑

2016年6月30日

scrolltab

摘要: scrolltab 阅读全文

posted @ 2016-06-30 09:52 wlqsmiling 阅读(102) 评论(0) 推荐(0) 编辑

2016年6月7日

apt-get

摘要: advanced package tool 阅读全文

posted @ 2016-06-07 22:50 wlqsmiling 阅读(94) 评论(0) 推荐(0) 编辑

2016年5月4日

os x 显示隐藏文件

摘要: 打开终端,输入:defaults write com.apple.finder AppleShowAllFiles -bool true 此命令显示隐藏文件defaults write com.apple.finder AppleShowAllFiles -bool false 此命令关闭显示隐藏文 阅读全文

posted @ 2016-05-04 16:58 wlqsmiling 阅读(162) 评论(0) 推荐(0) 编辑

导航