早教吧作业答案频道 -->其他-->
toomanycharactersinconstant这个问题好麻烦!BOOLCDlg041Dlg::OnInitDialog(){\x05CDialog::OnInitDialog();\x05//Add"About..."menuitemtosystemmenu.\x05//IDMABOUTBOXmustbeinthesystemcommandrange.\x05ASSERT((IDMABOUTBOX&0xFFF0
题目详情
too many characters in constant 这个问题好麻烦!
BOOL CDlg041Dlg::OnInitDialog()
{
\x05CDialog::OnInitDialog();
\x05// Add "About..." menu item to system menu.
\x05// IDM_ABOUTBOX must be in the system command range.
\x05ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
\x05ASSERT(IDM_ABOUTBOX < 0xF000);
\x05CMenu* pSysMenu = GetSystemMenu(FALSE);
\x05if (pSysMenu = NULL)
\x05{
\x05\x05CString strAboutMenu;
\x05\x05strAboutMenu.LoadString(IDS_ABOUTBOX);
\x05\x05if strAboutMenu.IsEmpty())
\x05\x05{
\x05\x05\x05pSysMenu->AppendMenu(MF_SEPARATOR);
\x05\x05\x05pSysMenu->AppendMenu(MF_STRING,IDM_ABOUTBOX,strAboutMenu);
\x05\x05}
\x05}
\x05// Set the icon for this dialog.The framework does this automatically
\x05// when the application's main window is not a dialog
\x05SetIcon(m_hIcon,TRUE);\x05\x05\x05// Set big icon
\x05SetIcon(m_hIcon,FALSE);\x05\x05// Set small icon
\x05
\x05// TODO:Add extra initialization here
\x05GetDlgItem('IDC_LABEL')->SetWindowText("更新控件内容");
\x05return TRUE; // return TRUE unless you set the focus to a control
}
我该怎么改呢?
BOOL CDlg041Dlg::OnInitDialog()
{
\x05CDialog::OnInitDialog();
\x05// Add "About..." menu item to system menu.
\x05// IDM_ABOUTBOX must be in the system command range.
\x05ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
\x05ASSERT(IDM_ABOUTBOX < 0xF000);
\x05CMenu* pSysMenu = GetSystemMenu(FALSE);
\x05if (pSysMenu = NULL)
\x05{
\x05\x05CString strAboutMenu;
\x05\x05strAboutMenu.LoadString(IDS_ABOUTBOX);
\x05\x05if strAboutMenu.IsEmpty())
\x05\x05{
\x05\x05\x05pSysMenu->AppendMenu(MF_SEPARATOR);
\x05\x05\x05pSysMenu->AppendMenu(MF_STRING,IDM_ABOUTBOX,strAboutMenu);
\x05\x05}
\x05}
\x05// Set the icon for this dialog.The framework does this automatically
\x05// when the application's main window is not a dialog
\x05SetIcon(m_hIcon,TRUE);\x05\x05\x05// Set big icon
\x05SetIcon(m_hIcon,FALSE);\x05\x05// Set small icon
\x05
\x05// TODO:Add extra initialization here
\x05GetDlgItem('IDC_LABEL')->SetWindowText("更新控件内容");
\x05return TRUE; // return TRUE unless you set the focus to a control
}
我该怎么改呢?
▼优质解答
答案和解析
比如计算机智能识别20位以内的正整数,你给了个21位内的,就不是简单的数据溢出问题,是根本存不下.你是不是定义了一个整形值,初始化的时候给了过大的
看了 toomanycharact...的网友还看了以下:
已知数列{an}满足a1=t,an+1-an+2=0(t∈N*,n∈N*),记数列{an}的前n项 2020-05-20 …
高数微分方程问题:设x(t)表示某国家在时刻t的人口数,x(t)满足初值问题:dx(t)/dt=r 2020-05-21 …
考研题,求时间复杂度,请说明下理由,假定问题规模为N时,某递归算法的时间复杂度记为T(N),已知T 2020-06-15 …
二项式展开式系数最大的问题如题老师说的方法是用T(n)>T(n+1)T(n)>T(n-1)来求得n 2020-07-31 …
解微分方程:a∫∫s(t)=n+s(t)∫∫是双重积分号,a和n是常数,s(t)是待求解的函数这是 2020-08-02 …
已知(1+1/x)^x=e,e^x-1=x,limx→1(x+x^2+...+x^n-n)/(x-1 2020-10-31 …
递归方程求解:已知T(1)=0,n=1时,t(n)=t(⌊n/2⌋)+t(⌈n/2⌉)+n-1,n> 2020-12-15 …
lingo求救急MODEL:SETS:ID/1..4/;NO(ID):a,b,n;endsetsma 2020-12-19 …
一个排列组合问题病人有N片药.每天他可以吃一片或者两片直到所有药片吃光.T(N)为他有多少种不同方法 2020-12-22 …
有一种商品在最近30天内的价格f(t)与天数t的函数关系f(t)=t+20,(0<t<25,t∈N) 2021-01-11 …