1.定义一个头文件 myFunctions.h 为防止多次定义 要写保护符 #pragma once 头文件中声明自定义函数 void fuction(int a); 2.新建一个.cpp文件 定义在头文件中声明的函数 void fuction(int a ){ a = 2;} 3.在使用该函数的. Read More
posted @ 2018-04-16 18:18
皓琪
Views(26532)
Comments(0)
Diggs(0)
用割圆法 count个三角形面扇 alpha是圆心角的大小 Read More
posted @ 2018-04-16 16:49
皓琪
Views(1076)
Comments(0)
Diggs(0)
1.stdafx.h stdafx的英文全称为:Standard Application Framework Extensions(标准应用程序框架的扩展)。 所谓头文件预编译,就是把一个工程(Project)中使用的一些MFC标准头文件(如Windows.H、Afxwin.H)预先编译,以后该工程 Read More
posted @ 2018-04-16 16:41
皓琪
Views(251)
Comments(0)
Diggs(0)