当前位置: 首页 > news >正文

做网站如何注意排版问题wamp配置多个网站

做网站如何注意排版问题,wamp配置多个网站,seo诊断优化方案,株洲网站排名编写二次插值样条曲线生成函数#xff0c;然后利用该函数根据自己设计的型值点绘制出相应的曲线图形。 // erView.cpp : implementation of the CErView class //#include stdafx.h #include er.h#include erDoc.h #include erVie…编写二次插值样条曲线生成函数然后利用该函数根据自己设计的型值点绘制出相应的曲线图形。 // erView.cpp : implementation of the CErView class //#include stdafx.h #include er.h#include erDoc.h #include erView.h#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] __FILE__; #endif/ // CErView void er(POINT *p,int n,CDC* pDC) {int x,y,i,j,k10;double t1,t2,t3,t,a,b,c,d;p[0].xp[1].x;p[0].yp[1].y;p[n1].xp[n].x;p[n1].yp[n].y;t0.5/k;pDC-MoveTo(p[1].x,p[1].y);for(i1;in;i){for(j1;jk;j){t1j*t;t2t1*t1;t3t1*t2;a4.0*t2-t1-4.0*t3; b1.0-10.0*t212.0*t3; ct18.0*t2-12.0*t3; d4.0*t3-2.0*t2; x(int)(a*p[i-1].xb*p[i].xc*p[i1].xd*p[i2].x);y(int)(a*p[i-1].yb*p[i].yc*p[i1].yd*p[i2].y);pDC-LineTo(x,y);}pDC-LineTo(p[i1].x,p[i1].y);} }IMPLEMENT_DYNCREATE(CErView, CView)BEGIN_MESSAGE_MAP(CErView, CView)//{{AFX_MSG_MAP(CErView)// NOTE - the ClassWizard will add and remove mapping macros here.// DO NOT EDIT what you see in these blocks of generated code!//}}AFX_MSG_MAP// Standard printing commandsON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP()/ // CErView construction/destructionCErView::CErView() {// TODO: add construction code here}CErView::~CErView() { }BOOL CErView::PreCreateWindow(CREATESTRUCT cs) {// TODO: Modify the Window class or styles here by modifying// the CREATESTRUCT csreturn CView::PreCreateWindow(cs); }/ // CErView drawingvoid CErView::OnDraw(CDC* pDC) {CErDoc* pDoc GetDocument();ASSERT_VALID(pDoc);// TODO: add draw code for native data hereint n4;POINT ps[6];ps[1].x25;ps[1].y400;ps[2].x100;ps[2].y100;ps[3].x175;ps[3].y400;ps[4].x250;ps[4].y100;er(ps,n,pDC);}/ // CErView printingBOOL CErView::OnPreparePrinting(CPrintInfo* pInfo) {// default preparationreturn DoPreparePrinting(pInfo); }void CErView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {// TODO: add extra initialization before printing }void CErView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {// TODO: add cleanup after printing }/ // CErView diagnostics#ifdef _DEBUG void CErView::AssertValid() const {CView::AssertValid(); }void CErView::Dump(CDumpContext dc) const {CView::Dump(dc); }CErDoc* CErView::GetDocument() // non-debug version is inline {ASSERT(m_pDocument-IsKindOf(RUNTIME_CLASS(CErDoc)));return (CErDoc*)m_pDocument; } #endif //_DEBUG/ // CErView message handlers编写任意阶次的Bezier曲线生成函数然后利用该函数根据自己设计的控制点绘制出相应的曲线图形。 // renView.cpp : implementation of the CRenView class //#include stdafx.h #include ren.h#include renDoc.h #include renView.h#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] __FILE__; #endif/ // CRenView double powi(double v,int k){double temp1.0;if(k0||v0)return 1;else {for(int i1;ik;i)temptemp*v;}return temp;}long fac(int m){int i;long temp1;if(m1)return 1;else {for(i2;im;i)temptemp*i;}return temp;}void Bezier(POINT *p,int n,CDC *pDC){int x,y,i,j,k100;double t1.0/k,t1,u,v;double temp,temp1,temp2,bi;pDC-MoveTo(p[0].x,p[0].y);for(j1;jk;j){t1j*t;ut1;v1-u;x0;y0;for(i0;in;i){tempdouble(fac(n)/fac(i)/fac(n-i));temp1powi(u,i);temp2powi(v,n-i);bitemp*temp1*temp2;xxbi*p[i].x;yybi*p[i].y;}pDC-LineTo(x,y);}pDC-LineTo(p[n].x,p[n].y);}IMPLEMENT_DYNCREATE(CRenView, CView)BEGIN_MESSAGE_MAP(CRenView, CView)//{{AFX_MSG_MAP(CRenView)// NOTE - the ClassWizard will add and remove mapping macros here.// DO NOT EDIT what you see in these blocks of generated code!//}}AFX_MSG_MAP// Standard printing commandsON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP()/ // CRenView construction/destructionCRenView::CRenView() {// TODO: add construction code here}CRenView::~CRenView() { }BOOL CRenView::PreCreateWindow(CREATESTRUCT cs) {// TODO: Modify the Window class or styles here by modifying// the CREATESTRUCT csreturn CView::PreCreateWindow(cs); }/ // CRenView drawingvoid CRenView::OnDraw(CDC* pDC) {CRenDoc* pDoc GetDocument();ASSERT_VALID(pDoc);int n5;CPoint ps[6]{CPoint(25,400),CPoint(100,100),CPoint(170,400),CPoint(250,20),CPoint(450,300),CPoint(350,400)};CPen pen1(PS_DASHDOT,1,RGB(28,28,28));pDC-SelectObject(pen1);pDC-Polyline(ps,6);CPen pen2(PS_DASHDOT,2,RGB(255,0,0));pDC-SelectObject(pen2);Bezier(ps,n,pDC); } / // CRenView printingBOOL CRenView::OnPreparePrinting(CPrintInfo* pInfo) {// default preparationreturn DoPreparePrinting(pInfo); }void CRenView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {// TODO: add extra initialization before printing }void CRenView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {// TODO: add cleanup after printing }/ // CRenView diagnostics#ifdef _DEBUG void CRenView::AssertValid() const {CView::AssertValid(); }void CRenView::Dump(CDumpContext dc) const {CView::Dump(dc); }CRenDoc* CRenView::GetDocument() // non-debug version is inline {ASSERT(m_pDocument-IsKindOf(RUNTIME_CLASS(CRenDoc)));return (CRenDoc*)m_pDocument; } #endif //_DEBUG/ // CRenView message handlers编写三次B样条曲线生成函数然后利用该函数根据自己设计的控制点绘制出相应的曲线图形。 // sanView.cpp : implementation of the CSanView class //#include stdafx.h #include san.h#include sanDoc.h #include sanView.h#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] __FILE__; #endif/ // CSanView void BSpLine(POINT *p,int n,CDC* pDC) {int x,y,i,j,k1000;double t,t1,t2,t3,a,b,c,d;t1.0/k;p[0].x2*p[1].x-p[2].x;p[0].y2*p[1].y-p[2].y;p[n].x2*p[n-1].x-p[n-2].x;p[n].y2*p[n-1].y-p[n-2].y;pDC-MoveTo(p[1].x,p[1].y);for(i1;in-1;i)for(j1;jk;j){t1j*t;t2t1*t1;t3t2*t1;a(3*t2-t3-3*t11)/6;b(3*t3-6*t24)/6;c(3*t2-3*t33*t11)/6;dt3/6;xint(a*p[i-1].xb*p[i].xc*p[i1].xd*p[i2].x);yint(a*p[i-1].yb*p[i].yc*p[i1].yd*p[i2].y);pDC-LineTo(x,y);} }IMPLEMENT_DYNCREATE(CSanView, CView)BEGIN_MESSAGE_MAP(CSanView, CView)//{{AFX_MSG_MAP(CSanView)// NOTE - the ClassWizard will add and remove mapping macros here.// DO NOT EDIT what you see in these blocks of generated code!//}}AFX_MSG_MAP// Standard printing commandsON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP()/ // CSanView construction/destructionCSanView::CSanView() {// TODO: add construction code here}CSanView::~CSanView() { }BOOL CSanView::PreCreateWindow(CREATESTRUCT cs) {// TODO: Modify the Window class or styles here by modifying// the CREATESTRUCT csreturn CView::PreCreateWindow(cs); }/ // CSanView drawingvoid CSanView::OnDraw(CDC* pDC) {CSanDoc* pDoc GetDocument();ASSERT_VALID(pDoc);// TODO: add draw code for native data hereint n5;POINT ps[6];ps[1].x350;ps[1].y250;ps[2].x500;ps[2].y20;ps[3].x600;ps[3].y250;ps[4].x750;ps[4].y30;CPen pen1(PS_DASHDOT,2,RGB(0,0,255));pDC-SelectObject(pen1);BSpLine(ps,n,pDC);CPen pen2(PS_DASHDOT,1,RGB(28,28,28));pDC-SelectObject(pen2);pDC-Polyline(ps,6);} / // CSanView printingBOOL CSanView::OnPreparePrinting(CPrintInfo* pInfo) {// default preparationreturn DoPreparePrinting(pInfo); }void CSanView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {// TODO: add extra initialization before printing }void CSanView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {// TODO: add cleanup after printing }/ // CSanView diagnostics#ifdef _DEBUG void CSanView::AssertValid() const {CView::AssertValid(); }void CSanView::Dump(CDumpContext dc) const {CView::Dump(dc); }CSanDoc* CSanView::GetDocument() // non-debug version is inline {ASSERT(m_pDocument-IsKindOf(RUNTIME_CLASS(CSanDoc)));return (CSanDoc*)m_pDocument; } #endif //_DEBUG/ // CSanView message handlers
http://www.zqtcl.cn/news/864779/

相关文章:

  • 网站设计广州量计价格多少钱网站建设
  • wordpress做外贸网站hexo wordpress 主题
  • 北京哪家做网站没网站怎么做cpa
  • 企业网站建设jz190关键词检测工具
  • 如何搭建第三方网站网站开发费属于无形资产
  • 河源城乡规划建设局网站常州网站seo
  • 房产网站建设方案项目书传到网站根目录
  • 页面设计网站素材制作个人网站
  • 怎么制作免费建网站cnzz wordpress
  • 网站界面技术方案wordpress开启子目录多站点模式
  • 汕头网站建设推广价格筑龙网官网首页
  • 河北省建设执业资格注册中心网站东莞微网站建设多少钱
  • 企业网站建设功能模块discover wordpress
  • 网站建设结课做诱导网站
  • 网站开发与设计难嘛青州网站建设推广
  • 网站开发程序员工资谷歌推广网站建设
  • 江门网页建站模板金富通青岛建设工程有限公司网站
  • 网站后台账户如何做会计分录做传奇开服一条龙网站哪个好
  • 天门市网站建设seo平台建设网站公司
  • php网站怎么做302织梦网站有会员系统怎么做
  • 清远建设局网站安阳吧百度贴吧
  • 做什么软件做网站效率最好网站公司建设都招聘那些职位
  • 缙云建设局网站深圳营销型网站设计
  • 企业网站制作价格成都高端网站建设公司哪家好
  • wordpress+做仿站网站建设费用属于业务宣传费吗
  • 昆明企业网站制作wordpress移动端插件menu
  • 长沙网站设计培训学校南宁建设网站哪里好
  • 提高基层治理效能全国seo搜索排名优化公司
  • 如何建设网站简介WordPress集成tipask
  • 青海网站开发公司建筑公司的愿景怎么写