C/C++ ·¾¶ÎªÄ¿Â¼ÅжÏ
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
/****************************************************
* º¯Êý¹¦ÄÜ: ÅжϲÎÊý·¾¶ÊÇ·ñΪ(ÕýÈ·µÄ)Ŀ¼
* º¯Êý·µ»Ø: 0Ϊ±íʾ·¾¶ÎªÎļþ,1Ϊ·ÇĿ¼.ÆäËûΪ´íÎó
* ²ÎÊý: pathÎļþÐèÒªÅжϵÄĿ¼µÄ·¾¶.
* ¿ÉÒÔΪÏà¶Ô·¾¶.
*
*****************************************************/
int isDir(const char *path)
{
struct stat info;
if ( 0 != stat(path,&info) )
{
return -2;
}
if( info.st_mode & S_IFDIR )
{
return 0;
}
else
{
return 1;
}
}
Ïà¹ØÎĵµ£º
Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸е쬻î»î»î£¡
&n ......
Ò»¡¢XMLÖ»ÓÐÒ»¸öTableµÄÇé¿ö
£¨1£©userInfo.xml
<?xml version="1.0" encoding="utf-8" ?>
<UserInfo ......
C/C++ÄÚ´æÓëÔËÐÐʱÉîÈëÑо¿ [×÷ÕßJean.Love]
-----------------------------------------------------------------------------------
(Ò»)ÕûÊý·ûºÅµÄÏÝÚå
(¶þ)¸¡µãÊýµÄ±¾ÖÊ
(Èý)¶ÑÕ»µÄÄÚ´æ¹ÜÀí½á¹¹
(ËÄ)·ûºÅ½âÎö
(Îå)¶ÔÆëºÍ×ÜÏß´íÎó
(Áù)º¯ÊýÖ¸Õë
(Æß)Ð麯ÊýµÄÊ ......
¸ßÖÊÁ¿C++/C±à³ÌÖ¸ÄÏ
Îļþ״̬
[ ] ²Ý¸åÎļþ
[√] ÕýʽÎļþ
[ ] ¸ü¸ÄÕýʽÎļþ Îļþ±êʶ£º
µ±Ç°°æ±¾£º 1.0
×÷ Õߣº ÁÖÈñ ²©Ê¿
Íê³ÉÈÕÆÚ£º 2001Äê7ÔÂ24ÈÕ
°æ ±¾ Àú Ê·
°æ±¾/״̬ ×÷Õß ²ÎÓëÕß ÆðÖ¹ÈÕÆÚ ±¸×¢
V ......
ÔÚWindows 2000/XPÖУ¬"Documents and Settings"ÊÇÒ»¸öÌØÊâÎļþ¼Ð¡£Óû§ÅäÖÃÎļþ¡¢×ÀÃæ¡£ÉõÖÁÁ¬ÃÜÔ¿ÐÅÏ¢¶¼±£´æÔÚÕâÀïÃæ¡£Èç¹ûÓ²Å̿ռ䲻¹»£¬Ïë°ÑËüÃÇ»»¸öµØ·½¡£µ«ÕâЩ¶«Î÷È´ºÜÄÑÒÆ¶¯¡£ÎÒÃǵÄÎÊÌâÊÇ£ºÈçºÎÔÚ±£Ö¤ÏµÍ³Õý³£ÔËÐеÄÇé¿öÏ£¬½«"Documents and Settings"Îļþ¼ÐÒÆ¶¯µ½ÁíÍâÒ»¸ö·ÖÇø?
......