摘要: http://bbs.csdn.net/topics/390449332?page=1#post-394744871#include #include using namespace std; const int ROW = 27;const int VOL = 30; int main(){ double d[ROW][VOL]; ifstream in("D:\\data.txt");//打开文件 //读数据。。 for(int i = 0; i > d[i][j]; } } in.close();//关闭文件 //输出结果 ... 阅读全文
posted @ 2013-12-17 18:18 fulivia 阅读(4003) 评论(0) 推荐(0) 编辑
摘要: mfc中获取当前窗口大小的方法:代码如下:CRect rect; GetWindowRect(&rect);//得到所处窗口的绝对坐标; GetClientRect(&rect);//得到相对坐标其中rect.right为x坐标的最大值,rect.bottom为y坐标的最大值(0,0)为窗口左上角的点坐标。在当前窗体中显示鼠标当前坐标的方法:代码如下:CString str;str.Format("x=%d,y=%d",point.x,point.y); ((CMainFrame*)GetParent())->m_wndStatusBar.SetWin 阅读全文
posted @ 2013-12-17 15:28 fulivia 阅读(1064) 评论(0) 推荐(0) 编辑