上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 39 下一页
摘要: 分别是使用了二级指针和一级指针的两种方法,最后会按插入的顺序依次打印1,2,3,4 主要区别在于,使用二级指针,可以在main函数里直接用一个空的Node指针,而一级指针是在main函数里面先添加了一个空的头结点 因为二级指针是传的指针的指针,所以main函数里直接用Node *head = NUL 阅读全文
posted @ 2020-04-10 14:07 strive-sun 阅读(691) 评论(0) 推荐(0)
摘要: 创建三个空结点,通过next的指针,将三个结点的地址串联在一起,变成一个单链表 #include <iostream> using namespace std; struct Node { int data; Node* next; }; void printList(Node* n) { whil 阅读全文
posted @ 2020-04-09 10:46 strive-sun 阅读(124) 评论(0) 推荐(0)
摘要: #include <Windows.h> #include <iostream> #include <string> static BOOL CALLBACK enumchildWindowCallback(HWND hWnd, LPARAM lparam) { int length = GetWi 阅读全文
posted @ 2020-04-07 15:47 strive-sun 阅读(3656) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <tchar.h> int main(void) { WIN32_FIND_DATA File; HANDLE hSearch; TCHAR SourcePath 阅读全文
posted @ 2020-04-07 15:40 strive-sun 阅读(983) 评论(3) 推荐(0)
摘要: #include <Windows.h> #include <iostream> using namespace std; HHOOK keyboardHook; LRESULT __stdcall KEYHookCallback(int nCode, WPARAM wParam, LPARAM l 阅读全文
posted @ 2020-04-03 16:05 strive-sun 阅读(260) 评论(0) 推荐(0)
摘要: std::vector<LPCWSTR> cpaText; cpaText = {L"Hello World!",L"Your Boy Made His First Window!",L"YEAH"}; int iY = 5; for (int iLoopCounter = 0; iLoopCoun 阅读全文
posted @ 2020-03-30 17:47 strive-sun 阅读(161) 评论(0) 推荐(0)
摘要: 截取一段有用的信息: c++的char[]和char*的区别 char str1[] = "abc": 这里的"abc"是一个常量,首先会在常量存储区里存储"abc"这个常量,然后会因为"abc"被赋值给str1[],所以在栈中开辟一段内存,内存大小为4个节点(char数组后会自动加一个'\0'), 阅读全文
posted @ 2020-03-30 17:42 strive-sun 阅读(283) 评论(0) 推荐(0)
摘要: /* 创建第一个线程。主进程结束,则撤销线程。 */ #include<Windows.h> #include<stdio.h> DWORD WINAPI ThreadFunc(LPVOID); void main() { HANDLE hThread; DWORD threadId; hThrea 阅读全文
posted @ 2020-03-27 10:42 strive-sun 阅读(461) 评论(0) 推荐(0)
摘要: void WINAPI CaptureScreenIntoFile() { BITMAPFILEHEADER bfHeader; BITMAPINFOHEADER biHeader; HGDIOBJ hTempBitmap; HBITMAP hBitmap; BITMAP bAllDesktops; 阅读全文
posted @ 2020-03-26 17:44 strive-sun 阅读(225) 评论(0) 推荐(0)
摘要: #include <iostream> #include <stdio.h> using namespace std; char* Capital_to_Small(char* str) { char* temp = str; int len = strlen(temp); for (int i = 阅读全文
posted @ 2020-03-26 14:36 strive-sun 阅读(1945) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 39 下一页