上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
使用vscode编写python还是挺舒服的,但是如果给vscode安装了语法校验插件,例如flake8,会常常提示一些非常苛刻的语法问题,其中最让人不能忍受的就是line to long. 一行仅能容纳79个字符?显然不够用!强迫症患者对于代码中的语法错误提示是无法容忍的,所以必须要消灭它. 在命 Read More
posted @ 2016-11-15 11:30 你好阿汤哥 Views(27220) Comments(3) Diggs(5) Edit
#include typedef union{ unsigned short value; unsigned char byte[2]; }CodeOrderUnion; void test_endian() { CodeOrderUnion order; order.value = 0x0102; if(order.byte[0] == 0x01 ... Read More
posted @ 2016-11-13 19:01 你好阿汤哥 Views(629) Comments(0) Diggs(0) Edit
效果图: Read More
posted @ 2016-11-09 11:33 你好阿汤哥 Views(2061) Comments(1) Diggs(0) Edit
void GetFilesFromDirectory(std::vector &files, const char *directoryPath) { struct _finddata_t fileinfo; long hFile = 0; char tmpPath[MAX_PATH] = { 0 }; sprintf_s(tmpPath, "%s\\*", di... Read More
posted @ 2016-11-09 10:07 你好阿汤哥 Views(3370) Comments(0) Diggs(0) Edit
void SafeStrAppend(char buf[], const uint32_t maxBufSize, uint32_t &offset, const char *format, ...) { if (offset < maxBufSize) { va_list ap; va_start(ap, format); off... Read More
posted @ 2016-11-03 21:33 你好阿汤哥 Views(1189) Comments(0) Diggs(0) Edit
1.获取客户区矩形区域 2.获取窗口上下文句柄 3.LPWSTR 与 char * 互转 4.获取带颜色的画刷 COLORREF colorObs = 0x9D9D9D; HBRUSH hbObs = CreateSolidBrush(colorObs); //.... DeleteObject(h Read More
posted @ 2016-10-25 10:19 你好阿汤哥 Views(3948) Comments(0) Diggs(0) Edit
#include void rdump(int arr[],int len) { int i = 0; for(i=len-1;i >= 0; --i) { printf("%d",arr[i]); } printf("\n"); } void trailingZeroes(int n) { int arr[10000] = ... Read More
posted @ 2016-09-22 22:48 你好阿汤哥 Views(437) Comments(0) Diggs(0) Edit
//Definition for singly-linked list. #include #include #include struct ListNode { int val; struct ListNode *next; }; void addNode(struct ListNode **head, struct ListNode **p, int val) { ... Read More
posted @ 2016-08-28 13:43 你好阿汤哥 Views(176) Comments(0) Diggs(0) Edit
参考:http://blog.csdn.net/mobius_strip/article/details/12731459 Read More
posted @ 2016-08-27 22:00 你好阿汤哥 Views(298) Comments(0) Diggs(0) Edit
#include #include #include class Item { public: Item(std::string str):name(str){} ~Item(){std::coutdump(); delete pi; std::auto_ptr ap1(Item::CreateItem("auto ptr")); ap1.get(... Read More
posted @ 2016-08-26 21:15 你好阿汤哥 Views(1447) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页