2021年1月26日
摘要: struct BinaryTreeNode { int nValue; BinaryTreeNode* pLeft; BinaryTreeNode* pRight; }; BinaryTreeNode* ConstructCore(int* startPreorder, int* endPreord 阅读全文
posted @ 2021-01-26 15:53 Noora&w 阅读(59) 评论(0) 推荐(0) 编辑
  2021年1月21日
摘要: //栈 void printList(ListNode* pHead) { std::stack<ListNode*> printStack; ListNode* pTemp = pHead; while (pTemp != nullptr) { printStack.push(pTemp); pT 阅读全文
posted @ 2021-01-21 19:59 Noora&w 阅读(49) 评论(0) 推荐(0) 编辑
摘要: void replace(char* data, int length) { if (data == nullptr || length <= 0) return; int nEmptyNumber = 0; int nOrignialLength = 0; int i = 0; while(dat 阅读全文
posted @ 2021-01-21 17:31 Noora&w 阅读(139) 评论(0) 推荐(0) 编辑
摘要: bool find(int* data, int rows, int columns, int number) { if (data == nullptr || rows <= 0 || columns <= 0) return false; bool bfind = false; int row 阅读全文
posted @ 2021-01-21 15:04 Noora&w 阅读(59) 评论(0) 推荐(0) 编辑
摘要: //饿汉模式:即类产生的时候就创建好实例对象,这是一种空间换时间的方式 class CSingleton { public: ~CSingleton() {}; CSingleton(const CSingleton&); CSingleton& operator=(const CSingleton 阅读全文
posted @ 2021-01-21 11:45 Noora&w 阅读(51) 评论(0) 推荐(0) 编辑
  2021年1月20日
摘要: 已知类: class CMyString { public: CMyString(char* pData = NULL); CMyString(const CMyString& str); ~CMyString(void); private: char* m_pData; }; 初级实现: CMyS 阅读全文
posted @ 2021-01-20 15:24 Noora&w 阅读(128) 评论(0) 推荐(0) 编辑
  2020年2月1日
摘要: 1、创建界面的基类: 阅读全文
posted @ 2020-02-01 15:55 Noora&w 阅读(108) 评论(0) 推荐(0) 编辑
  2020年1月19日
摘要: 一、设置断点 在代码标号前单击设置断点,F5构建并进入调试模式,F10单步跳出,F11单步进入,Shift+F11单步跳出 二、使用qDebug()函数 程序中使用qDebug函数,可以将调试信息输出至应用程序输出栏。 使用方法: 1、将字符串当作参数传给qDebug()函数: qDebug("x: 阅读全文
posted @ 2020-01-19 18:02 Noora&w 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 第一步: 创建.ico文件,将ico图标文件复制到工程文件夹的helloworld目录中,重命名为“myico.ico”。然后在该目录中右击,新建文本文档,并输入一行代码: IDI_ICON1 ICON DISCARDABLE “myico.ico” 然后选择“文件 另存为”菜单项,将该文件命名为m 阅读全文
posted @ 2020-01-19 15:40 Noora&w 阅读(225) 评论(0) 推荐(0) 编辑
  2019年12月3日
摘要: 1 typedef struct CRYPT_BLOCK { 2 DWORD dwSize; // Data的 3 DWORD dwKey; // 密钥 循环使用DWORD的每个字节来进行加密 详情见XorEncrypt 4 char chData[1]; // 加密后的数据 5 } CRYPT_B 阅读全文
posted @ 2019-12-03 10:32 Noora&w 阅读(835) 评论(0) 推荐(0) 编辑