自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Acheld的博客

the A is silent

  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

转载 静态成员变量

类的静态成员详细讲解在C++中,静态成员是属于整个类的而不是某个对象,静态成员变量只存储一份供所有对象共用。所以在所有对象中都可以共享它。使用静态成员变量实现多个对象之间的数据共享不会破坏隐藏的原则,保证了安全性还可以节省内存。静态成员的定义或声明要加个关键static。静态成员可以通过双冒号来使用即类名>::静态成员名>。 在C++中类的静态成员变量和静态成员函数是个

2015-12-24 22:54:12 734

转载 递归地删除目录

写程序时用到一个删除目录的功能,但C库函数提供的_rmdir() 只能删除空目录,在网上搜索了一下也没得到满意的答案,于是就自己写了个小程序,递归地删除目录下的内容,最后删除目录本身。主要用到了以下函数:_access(); /*判断目录是否存在*/_chdir(); /*改变当前工作目录*/_findfirst(); /*在目录下查找第一个文件或文件夹*/_findnex

2015-12-24 22:51:06 1017

转载 C/C++判断文件是否存在

C/C++判断文件是否存在The following is the most common method for checking if file exist:#include bool FileExist(const char* FileName){ struct stat my_stat; return (stat(FileName, &m

2015-12-24 22:48:07 1108

转载 DEM data

       之前在学习《实战Opengl》的时候,系统使用的三维地形dem数据是美国莱卡公司Helava全数字摄影测量系统来获取的DEM文件。文件头为:        781395 1869975 50 50 333 127 -9999      分别表示的是:DEM左下角X坐标,DEM左下角Y坐标,DEM数据点在X方向的间距,DEM数据点在Y方向的间距,DEM总列数,DEM总行

2015-12-24 22:44:12 1887

转载 SHGetSpecialFolderLocation

void CDlgTestDlg::OnBnClickedOk(){ LPITEMIDLIST pidl; TCHAR szPath [MAX_PATH]; if(SUCCEEDED( SHGetSpecialFolderLocation ( NULL, CSIDL_FAVORITES, &pidl ))) { if ( SHGetPathFromI

2015-12-24 22:35:09 581

转载 SHGetSpecialFolderPath and SHGetSpecialFolderLocation

SHGetSpecialFolderPath function[SHGetSpecialFolderPath is not supported. Instead, useShGetFolderPath.]Retrieves the path of a special folder, identified by its CSIDL.SyntaxC++

2015-12-24 22:31:49 655

转载 Creating and Using a Temporary File

Creating and Using a Temporary FileApplications can obtain unique file and path names for temporary files by using theGetTempFileName and GetTempPath functions. The GetTempFileName fun

2015-12-24 22:21:10 429

转载 SHFileOperation DeleteFolder

分类: C/C++BOOL DeleteFolder(LPCTSTR lpszPath){   SHFILEOPSTRUCT FileOp;   ZeroMemory((void*)&FileOp,sizeof(SHFILEOPSTRUCT));  FileOp.fFlags = FOF_NOCONFIRMATION;   FileO

2015-12-24 22:12:23 1083

转载 Audio Player

Audio PlayerIntroductionI had some trials to create audio player using "Microsoft.DirectX.AudioVideoPlayback", but I found themciSendString function (from Windows API) is better. So, I

2015-12-20 16:15:56 1022

翻译 something happen



2015-12-20 16:13:51 618

转载 C# Movie Player

C# Movie PlayerManaged DirectX movie playerDownload source - 150.11 KBIntroductionAfter I found that my previous movie player was broken by all the changes done to Vista, I sta

2015-12-20 16:11:10 958

转载 FFMPEG All in One Video & Audio Converter Interface

FFMPEG All in One Video & Audio Converter InterfaceIntroductionThis is a simple tool to manipulate the command line options of FFMPEG converter. BackgroundWhile I was searching for t

2015-12-20 16:07:52 670

翻译 codeproject

http://www.codeproject.com/

2015-12-20 15:50:49 531

FtpLib upload class

char usrpasswd[256]; sprintf(usrpasswd, "%s:%s", user, password); FILE *file = fopen(localpath, "rb"); if (file == NULL) { perror(NULL); return FTP_LOCALFILE_NOTACCESS; } CURLcode resCode = FtpUpload(remotepath, usrpasswd,file); if (resCode == CURLE_OK){ return FTP_OK; } else { char errorMsg[1023]; sprintf(errorMsg, "%s/n", curl_easy_strerror(resCode)); if (resCode == CURLE_LOGIN_DENIED){ return FTP_LOGIN_DENIED; } else if (resCode == CURLE_COULDNT_CONNECT){ return FTP_COULDNT_CONNECT; } return FTP_FAIL; }

2016-08-22

inttypes.h

inttypes.h

2016-03-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除