随笔分类 -  《21天学通C++》

C++之*与**与&的爱恨情仇
摘要:一、解释*和&&在变量定义区,表示引用 int &x ;&在变量操作区,表示取地址符 int x=10, *p=&x ;*在变量定义区,表示指针 int *x ;*在变量操作区,表示解引用 int *x ;cout<<*x ; 二、解释**和*&**是指 指针的指针*&是指 指针的引用注意:只有对指 阅读全文

posted @ 2023-01-09 15:11 疯狂delphi 阅读(63) 评论(0) 推荐(0)

C++之日期时间使用
摘要:相关资料: https://www.runoob.com/cplusplus/cpp-date-time.html 实例: 1 #include "mainwindow.h" 2 #include "ui_mainwindow.h" 3 4 #include <iostream> 5 #includ 阅读全文

posted @ 2021-09-24 10:29 疯狂delphi 阅读(60) 评论(0) 推荐(0)

通过setwindowlong设置的windows窗口样式总结
摘要:相关资料: https://blog.csdn.net/jigetage/article/details/85207073 对于windows api中创建的窗口,可以通过SetWindowLong函数修改其样式。 函数声明为: LONG SetWindowLongA( HWND hWnd, int 阅读全文

posted @ 2021-09-13 13:50 疯狂delphi 阅读(1107) 评论(0) 推荐(0)

C++之数据、结构体初始化值为0
摘要:1 void MainWindow::on_pushButton_clicked() 2 { 3 int nInt[20]; 4 nInt[0] = 1; 5 nInt[1] = 2;// 数据乱的一塌糊涂 6 7 int nInt2[20]; 8 memset(nInt2, 0, sizeof(n 阅读全文

posted @ 2021-04-02 10:53 疯狂delphi 阅读(1816) 评论(0) 推荐(0)

C++-标准C++中的string类的用法总结
摘要:https://www.cnblogs.com/henryliublog/p/9182641.html 标准C++中的string类的用法总结 相信使用过MFC编程的朋友对CString这个类的印象应该非常深刻吧?的确,MFC中的CString类使用起来真的非常的方便好用。但是如果离开了MFC框架, 阅读全文

posted @ 2021-02-24 17:04 疯狂delphi 阅读(180) 评论(0) 推荐(0)

数据类型表(DELPHI、C++)
摘要:delphi整型数据表 Integer -2147483648..2147483647 signed 32-bit Cardinal 0..4294967295 unsigned 32-bit Shortint -128..127 signed 8-bit Smallint -32768..3276 阅读全文

posted @ 2019-03-11 10:33 疯狂delphi 阅读(435) 评论(0) 推荐(0)

对程序进行注释
摘要:对程序进行注释1.注释的类型:单行注释和多行注释>单行注释使用双斜杠(//)来表示。双斜杠告诉编译器,忽略之后到行尾的所有内容。>多行注释以斜杠和星(/*)打头。这种注释标记告诉编译器,忽略之后到星号斜杠(*/)之间的所有内容。 阅读全文

posted @ 2019-03-11 10:04 疯狂delphi 阅读(668) 评论(0) 推荐(0)

使用标准名称空间
摘要:1.using std::count; 1 int main(int argc, char *argv[]) 2 { 3 using std::count; 4 using std::endl; 5 using std::cin; 6 char response; 7 cin >> response 阅读全文

posted @ 2019-02-28 20:07 疯狂delphi 阅读(312) 评论(0) 推荐(0)

hello.cpp 第一个C++程序(本博客没有特指都是以QT测试)
摘要:操作步骤:1.文件->新建文件或项目(N)->New File or Project->Qt Console Application->Choose->“名称”中输入工程名称->“创建路径”中输入保存位置->下一步->选择“工具包”->下一步->完成。 1.新标准 1 #include <iostr 阅读全文

posted @ 2019-01-15 18:25 疯狂delphi 阅读(722) 评论(0) 推荐(0)

导航