我使用C++和XCode中創建一個CMD行應用程序保存文件的權限,但我不能獲得精子()方法來識別,錯誤是的XCode C++缺失精子()
精子‘
我包括與片的代碼有問題「未聲明的標識符的使用’是下面...
// My includes ...
#include <iostream>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#include <vector>
#include <sys/stat.h>
#include <dirent.h>
#include <pwd.h>
#include <grp.h>
#include <time.h>
#include <locale.h>
#include <langinfo.h>
#include <stdint.h>
// Code fragment ...
dp = opendir ("/var/someplace");
if (dp != NULL)
{
while ((ep = readdir (dp)))
{
oFile = new FileObject;
oFile->setName(ep->d_name);
oFile->setIsDirectory(ep->d_type == isFolder);
oFiles.push_back (*oFile);
// If it's a folder then we can get it's innards
if (stat(ep->d_name, &statbuf) == -1)
continue;
cout << "%10.10s", sperm(statbuf.st_mode);
iFile++;
}
closedir (dp);
}
else
perror ("Couldn't open the directory");
我會Google爲「男性精子」... – 2012-03-09 17:57:24
請定義不起作用。回答一個函數名稱哇! – Iznogood 2012-03-09 17:59:53
@OliCharlesworth:我想我會害怕點擊任何比賽,特別是在工作中! – 2012-03-09 18:00:03