随笔分类 -  c++语言

上一页 1 ··· 17 18 19 20 21 22 23 24 25 26 下一页

c++语言
摘要:#ifndef _AUTOREFER_H #define _AUTOREFER_H template <class T> class CAutoRefer { public: CAutoRefer() { m_oper = new T; } CAutoRefer(T * p) { m_oper = 阅读全文

posted @ 2022-01-20 23:33 lydstory 阅读(29) 评论(0) 推荐(0)

摘要:isdigit是计算机C(C++)语言中的一个函数,主要用于检查其参数是否为十进制数字字符。 判断ip地址有效 int IsValidIPAddrStr(char *ipAddr) { unsigned int i, j, k; char tmpBuf[4]; if (strlen(ipAddr) 阅读全文

posted @ 2022-01-19 21:41 lydstory 阅读(366) 评论(0) 推荐(0)

摘要:connect(pDel, SIGNAL(triggered()), this, SLOT(Delete())); // 槽函数 阅读全文

posted @ 2022-01-06 16:14 lydstory 阅读(139) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; typedef unsigned int CPU_INT32U; typedef volatile CPU_INT32U CPU_REG32; typedef CPU_INT32U CPU_ADDR; typedef 阅读全文

posted @ 2022-01-05 13:03 lydstory 阅读(37) 评论(0) 推荐(0)

摘要:// 你必须定义一个 `main()` 函数入口。 #include <iostream> using namespace std; #include <string.h> typedef const char* FX_LPCSTR; typedef char FX_CHAR; typedef in 阅读全文

posted @ 2021-12-30 07:49 lydstory 阅读(63) 评论(0) 推荐(0)

摘要:// 你必须定义一个 `main()` 函数入口。 #include <iostream> using namespace std; #include <string.h> typedef const char* FX_LPCSTR; typedef char FX_CHAR; typedef in 阅读全文

posted @ 2021-12-30 06:41 lydstory 阅读(42) 评论(0) 推荐(0)

摘要:int main() { void *p; cout<<sizeof(p)<<endl; return 0; } 8 指针 返回指针 阅读全文

posted @ 2021-12-30 06:15 lydstory 阅读(32) 评论(0) 推荐(0)

摘要:// 你必须定义一个 `main()` 函数入口。 #include <iostream> using namespace std; #include <string.h> typedef const char* FX_LPCSTR; typedef char FX_CHAR; typedef in 阅读全文

posted @ 2021-12-30 06:06 lydstory 阅读(39) 评论(0) 推荐(0)

摘要:#include <limits> #include <iostream> // /* reference: http://www.cplusplus.com/reference/limits/numeric_limits/ https://msdn.microsoft.com/en-us/libr 阅读全文

posted @ 2021-12-30 04:54 lydstory 阅读(499) 评论(0) 推荐(0)

摘要:enum RangeConstraint { RANGE_VALID = 0x0, // Value can be represented by the destination type. RANGE_UNDERFLOW = 0x1, // Value would overflow. RANGE_O 阅读全文

posted @ 2021-12-30 04:01 lydstory 阅读(40) 评论(0) 推荐(0)

摘要:// 你必须定义一个 `main()` 函数入口。 #include <iostream> using namespace std; typedef const char* FX_LPCSTR; typedef char FX_CHAR; typedef int FX_STRSIZE; class 阅读全文

posted @ 2021-12-30 03:13 lydstory 阅读(46) 评论(0) 推荐(0)

摘要:struct bb{ int a; char bb;}; 8class aa{ private: long dd; char b;}; 16 阅读全文

posted @ 2021-12-30 03:12 lydstory 阅读(36) 评论(0) 推荐(0)

摘要:struct CFX_StringData { long m_nRefs; int m_nDataLength; int m_nAllocLength; char m_String[1]; }; sizeof 24 struct CFX_StringData { long m_nRefs; int 阅读全文

posted @ 2021-12-30 03:08 lydstory 阅读(24) 评论(0) 推荐(0)

摘要:void *malloc(size_t size); void free(void *ptr); void *calloc(size_t nmemb, size_t size); void *realloc(void *ptr, size_t size); 函数 返回值 参数 阅读全文

posted @ 2021-12-30 02:42 lydstory 阅读(32) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; typedef const char* FX_LPCSTR; class CFX_Object { public: void* operator new(size_t size, FX_LPCSTR file, int 阅读全文

posted @ 2021-12-30 02:36 lydstory 阅读(35) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; int main() { // int VAL; int sum = 0; int cnt = 0; int i; for( i =0; i<6 ;i++) { cnt+=sum; sum+= 2 * (i %2) - 阅读全文

posted @ 2021-12-06 20:38 lydstory 阅读(26) 评论(0) 推荐(0)

摘要:#include <stdio.h> #include <string.h> #define MAXLEN 500 int acsciinum(const char* str) { int len = strlen(str); if(len > MAXLEN) return -1; int ret[ 阅读全文

posted @ 2021-12-02 15:57 lydstory 阅读(91) 评论(0) 推荐(0)

摘要:#include <iostream> #include <stdio.h> using namespace std; bool ValidIpAddr(char const * str) { int n, ip1, ip2, ip3, ip4; char dummy; bool valid = t 阅读全文

posted @ 2021-12-01 11:49 lydstory 阅读(112) 评论(0) 推荐(0)

摘要:牛客网c++如何处理输入输出 牛客网c++如何处理输入输出 牛客网c++如何处理输入输出 阅读全文

posted @ 2021-12-01 11:27 lydstory 阅读(92) 评论(0) 推荐(0)

摘要:streambuf是标准c++的一个类,每个输入输出流对象包含一个指向streambuf的指针.并且streambuf有一些可供调用的函数.例如:为了访问streambuf,每个输入输出流对象包含一个成员函数rdbuf(),它返回的是一个指向对象streambuf的指针.通过这个指针可以对strea 阅读全文

posted @ 2021-11-27 05:53 lydstory 阅读(168) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 26 下一页

导航