include<iostream>
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
using namespace std;
int main(){
   system("mkdir 123");
   if ( !access("/home/mllabs/walwj/jiahewanggang/test/123",0) )
         printf("/home/mllabs/walwj/jiahewanggang/test EXISIT!");
  return 0;
}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     1,1           All

access函数在windows系统中在头文件<io.h>中,在Ubuntu系统中则是在<unistd.h>之中

01-10 00:16