摘要: XAML: <Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/win 阅读全文
posted @ 2024-07-02 15:52 double64 阅读(1) 评论(0) 推荐(0) 编辑
摘要: XAML: <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <StackPanel Grid.Row="0"> <TextBox x:Name="t 阅读全文
posted @ 2024-07-02 15:30 double64 阅读(2) 评论(0) 推荐(0) 编辑
摘要: XMAL: <Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/win 阅读全文
posted @ 2024-06-28 16:11 double64 阅读(2) 评论(0) 推荐(0) 编辑
摘要: // 反射判断是否位某个类型 public bool IsSubclassOf(this Type type, Type baseType) { // 如果type不是null并且baseType是一个类(非接口) if (type != null && baseType.IsClass) { re 阅读全文
posted @ 2024-02-27 20:17 double64 阅读(51) 评论(0) 推荐(0) 编辑
摘要: SetWindowText(_T("MFC 测试")); // 设置窗体标题 CString str; GetWindowText(str); // 获取窗体标题内容 /********************************************************/ CString 阅读全文
posted @ 2024-02-26 13:34 double64 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 浅拷贝 静态数组的空间体现深拷贝的效果 #include <iostream> #include <string> using namespace std; #define SEX_SIZE 10 class Student { public: Student(string name) { Age 阅读全文
posted @ 2024-02-24 09:54 double64 阅读(8) 评论(0) 推荐(0) 编辑
摘要: C#: static void Main(string[] args) { bool result = true; result &= Func(); result &= Func(); result &= Func(); Console.WriteLine("&= 最后结果:{0}\n", res 阅读全文
posted @ 2024-02-23 08:55 double64 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 成员变量关联: private: CMFCButton m_btnColorTest; CMFCButton* m_pBtnColor; // CMFCAppColorDlg 对话框 #define DELETE(ptr) do{if (ptr) {delete ptr; ptr = nullptr 阅读全文
posted @ 2024-02-19 19:22 double64 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #include "afxwin.h" #include <iostream> using namespace std; int main() { CString cs = _T("西游记"); AfxMessageBox(_T("CString:") + cs); // CString 转 ACS 阅读全文
posted @ 2024-02-19 14:23 double64 阅读(68) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; typedef int INT, * PINT; typedef int* PINT32, INT32; int main() { int* p, a; a = 10; p = &a; cout << *p << en 阅读全文
posted @ 2024-02-19 13:29 double64 阅读(10) 评论(0) 推荐(0) 编辑