C语言的问题,注释1和2,3有什么区别啊,怎么2,3就行,而1就不行static CRect m_largewindow(0,0,0,0);static CRect m_smallwindow(0,0,0,0);GetWindowRect(&m_largewindow);m_smallwindow.right=m_largewindow.right-100; //1//m_smallwindow=m_larg

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 05:52:25
C语言的问题,注释1和2,3有什么区别啊,怎么2,3就行,而1就不行static CRect m_largewindow(0,0,0,0);static CRect m_smallwindow(0,0,0,0);GetWindowRect(&m_largewindow);m_smallwindow.right=m_largewindow.right-100; //1//m_smallwindow=m_larg

C语言的问题,注释1和2,3有什么区别啊,怎么2,3就行,而1就不行static CRect m_largewindow(0,0,0,0);static CRect m_smallwindow(0,0,0,0);GetWindowRect(&m_largewindow);m_smallwindow.right=m_largewindow.right-100; //1//m_smallwindow=m_larg
C语言的问题,注释1和2,3有什么区别啊,怎么2,3就行,而1就不行
static CRect m_largewindow(0,0,0,0);
static CRect m_smallwindow(0,0,0,0);
GetWindowRect(&m_largewindow);
m_smallwindow.right=m_largewindow.right-100; //1
//m_smallwindow=m_largewindow;//2
//m_smallwindow.right -=200;//3

C语言的问题,注释1和2,3有什么区别啊,怎么2,3就行,而1就不行static CRect m_largewindow(0,0,0,0);static CRect m_smallwindow(0,0,0,0);GetWindowRect(&m_largewindow);m_smallwindow.right=m_largewindow.right-100; //1//m_smallwindow=m_larg
从道理上说,应当都可以.
前两句是初始化,矩形的四个参数都是0.
然后是计算:
1,两个成员间的right的计算
2,结构给结构赋值
3,成员right的自减.
GetWindowRect 函数调用失败?你可以测定一下
int flag;
flag = GetWindowRect(&m_largewindow);
if (flag == 0) 函数调用失败.
另外,试试 去掉 static 看能否通过.

C语言中//注释和/*注释有什么区别 C语言的问题,注释1和2,3有什么区别啊,怎么2,3就行,而1就不行static CRect m_largewindow(0,0,0,0);static CRect m_smallwindow(0,0,0,0);GetWindowRect(&m_largewindow);m_smallwindow.right=m_largewindow.right-100; //1//m_smallwindow=m_larg C语言的注释有哪些种类? 我想请问一下使用C语言打印空心和实心圆的问题,及其对应注释. VB和C语言有什么区别? 数据结构和C语言有什么区别? C语言的小问题,(*p)[5]和*p[5],有什么区别,p都代表什么? 注释和注解有什么区别? C语言和Basic有什么区别啊? C语言中数字2.0和2有什么区别? c语言中“switch(c-'2')和switch (c-2)有什么区别?有个C语言的问题,switch语句中switch(c-'2')和switch(c-2),c为输入的数,这两个有什么区别?测试的答案不同.#include main(){int c;while((c=getchar())!=' '){switch(c-'2'){ 单片机C语言按键控制LED灯为什么上面的写法和下面被注释掉的写法都能实现按下灯亮,松手灯灭呢?这两种写法有什么区别?哪个比较规范? 注释和参考文献的区别在哪里论文写完后,要写注释和参考文献,它们之间有什么区别 c语言求平方根的和求1~55的平方根的和最好加注释.. 基因注释方面的问题我想问一下:基因注释和基因组注释有什么区别?然后是因为基因功能注释由于这两者有什么区别?需要详细一点不需要网上找答案因为我都翻遍了.知道的交流一下~ C语言和object-C有什么区别没有? C语言问题.*p+i与*(p+i)有什么区别啊? 人类的语言和动物的语言有什么区别?