三味的小站

QDomDocument读取XML

MyXmlReader::MyXmlReader(QWidget *parent) : QDialog(parent) { ui.setupUi(this); connect(ui.openBtn, SIGNAL(clicked()), this, SLOT(openFile

三味线 Published on 2018-04-18

MFC双缓存技术

屏蔽背景刷新,在View中添加对WM_ERASEBKGND的响应,直接返回TRUE: BOOL CTEMV1View::OnEraseBkgnd(CDC* pDC) { // TODO: 在此添加消息处理程序代码和/或调用默认值 return TRUE; //return C

三味线 Published on 2018-04-18

int与CString互相转化

int num; CString str; //int转CString num=10; str.Format(_T("%d"),num); //CString转int str=L"10"; num=_ttoi(str);

三味线 Published on 2018-04-18

求两圆相交部分面积(C++)

已知两圆圆心坐标和半径,求相交部分面积: #include <iostream> using namespace std; #include<cmath> #include<stdio.h> #define PI 3.141593 struct point//点 { double x,y;

三味线 Published on 2018-04-18
Previous Next