08 2020 档案

摘要:任务:创建一个进程,并在进程内创建一个文本,再创建另一个进程来监控第一个进程内的文本变化 //Process 1 #include <windows.h> #include <iostream> int wmain(int argc, wchar_t* argv[]) { std::string b 阅读全文
posted @ 2020-08-28 15:06 strive-sun 阅读(519) 评论(0) 推荐(0)
摘要:对好几个月之前看的链表进行了复习。 还是创建头结点,然后依次插入结点。 个人感觉最重要的是对指针/地址的掌握。 只有知道地址的概念,链表的问题也就迎刃而解。 #include <iostream> using namespace std; struct List { int data; List* 阅读全文
posted @ 2020-08-25 17:32 strive-sun 阅读(185) 评论(0) 推荐(0)
摘要:可以使用LookupAccountNameA获取sid。 LookupAccountName函数接受系统名称和帐户作为输入。它检索该帐户的安全标识符(SID)以及在其上找到该帐户的域的名称。 使用此api无需在LocalSystem帐户的上下文中运行。 代码示例:(C ++) #include <W 阅读全文
posted @ 2020-08-21 16:03 strive-sun 阅读(1795) 评论(0) 推荐(0)
摘要:/* 桶排序 */ #include <iostream> #include <algorithm> using namespace std; int a, m, n[1000] = { 0 }; int main() { cin >> m; for (int i = 0; i < m; i++) 阅读全文
posted @ 2020-08-19 11:19 strive-sun 阅读(389) 评论(0) 推荐(0)
摘要:#define UNICODE #define _UNICODE #include <tchar.h> #include <windows.h> #include <windowsx.h> #include <commctrl.h> #include <richedit.h> // Code::Bl 阅读全文
posted @ 2020-08-11 09:58 strive-sun 阅读(390) 评论(0) 推荐(0)
摘要:看到网上一些资料的案例不全,所以自己开个来复习。 O(1)<O(log2n)<O(n)<O(nlog2n)<O(n^2)<O(n^3)<…<O(2^n)<O(n!) O(1) int a = 1, b = 3, c = 3; O(log2n) int i = 1; while(i<=n) { i*= 阅读全文
posted @ 2020-08-05 15:55 strive-sun 阅读(990) 评论(0) 推荐(0)
摘要:C:\Users\path>whoami /priv 在cmd中输入whoami /priv后将获得当前令牌(标准用户)的权限。 C:\Users\path>tasklist /v /fo csv | findstr /i "Command Prompt" 输入上面的command命令后获得cmd. 阅读全文
posted @ 2020-08-04 10:14 strive-sun 阅读(458) 评论(0) 推荐(0)