大约有 11,000 项符合查询结果(耗时:0.0112秒) [XML]
C++指针及引用的使用总结 - C/C++ - 清泛IT论坛,有思想、有深度
引用:一般不允许指向空对象,它的本质也是一种指针。
待总结。。。
关于C/C++的强类型、弱类型的总结 - C/C++ - 清泛IT论坛,有思想、有深度
int a = 1; (强类型)
int a; (弱类型)
两个强类型是否能编译通过?
待研究。。。
C++构造函数中可不可以调用虚函数? - c++1y / stl - 清泛IT社区,为创新赋能!
不可调用,没定义好,不知分配多少空间。
sizeof、strlen简单总结 - C/C++ - 清泛IT论坛,有思想、有深度
sizeof strlen const char* p 4 字符串长度 std::string 4 字符串长度 "......" 字符串长度+1 ('\0') 字符串长度
error: ‘uint16_t’ does not name a type - c++1y / stl - 清泛IT社区,为创新赋能!
#include <stdint.h> 解决。/**
* @file stdint.h
* Copyright 2012, 2013 MinGW.org project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Softw...
XXX.cc:100: error: ‘::strerror’ has not been declared - c++1y / stl - 清泛IT社区,为创新赋能!
#include <string.h> 解决。
error: ISO C++ forbids declaration of 'XXXX' with no type - C/C++ - 清泛IT论坛,有思想、有深度
出现这个错误,一般是由于两个CPP相互都相互包含了对方的头文件造成的,比如:
当mainwindow.cpp、configdialog.cpp两个文件,分别包含了对方的头文件,并且分别又在自己的类中声明了对象,即:
mainwindow.cpp
#include "configdialog....
CreateWindow()动态创建一个EditBox - C/C++ - 清泛IT论坛,有思想、有深度
本帖最后由 zqp2013 于 2015-1-4 16:21 编辑
在Win32代码或MFC代码中动态创建一个EditBox:
在OnInitDialog()函数中:
// 创建EditBox
HWND m_wndEdit = CreateWindow(_T("EDIT"), 0, WS_C...