代码搜索结果
找到约 10,000 项符合
C++ 的代码
c++粒子群.txt
Math_Function.h
#ifndef Math_Function_H
#define Math_Function_H
#include iostream
#include vector
using namespace std;
#include cmath
class Multidimension
{
public
Multidimens
c++头文件.txt
C/C++头文件一览
Posted on Saturday, September 25, 2004 9:11 PM
C/C++头文件一览
C、传统 C++
#include //设定插入点
#include //字符处理
#include //定义错误码
#include
c++ 对象计数.txt
<mark>C++</mark> 对象计数 实例计数
本文目的是实现一个实用的对<mark>C++</mark>类计数的类,同时在实现过程中指出一些容易为人忽视的<mark>C++</mark>知识。
要实现一个类的对象(实例)计数,即程序运行中此类有多少个对象存在,最容易的实现方法是使用静态数据成员。如下:
class Widget {
public:
Widget() { ++count; }
Widget(const W ...
[c++] createdirectory.txt
//---------------------------------------------------------------
// [方法一]
#include
BOOL CreateDirectory(CString strDir)
{
if (strDir.Right(1) != "\\")
strDir += "\\";
CStrin
[c++] browseforfolder.txt
#include "shfolder.h"
CString BrowseForFolder(HWND hWnd, LPCSTR lpszTitle, UINT nFlags)
{
// We're going to use the shell to display a
// "Choose Directory" dialog box for the user.