#include<iostream> using namespace std; #define N 8 //N代表皇后数 void queen() { int Count0; //计算总共的解的数量 int column[N1]; //column[m]n表示第m行,第n行放置了皇后,这里下表并从0开始 int row[N1]; //row[m]1表示第m行没有皇后,0表…
查了下O_RDWR, O_CREAT等定义,终于找到了。
我的系统是Fedora12, 其定义在文件:/usr/include/asm-generic/fcntl.h,部分定义如下:
#include <linux/types.h>/* open/fcntl - O_SYNC is only implemented on blocks device…