七巧板问题及 fatal error LNK1168: cannot open Debug/5.exe for writing报错
来源:互联网 发布:仓鼠用品淘宝 编辑:程序博客网 时间:2024/06/05 18:05
#include <stdio.h>
const int N = 7; //定义七个区域
int main()
{
char board[N] = {'A','B','C','D','E','F','G'};
int arc [N][N] = {{0,1,0,0,1,1,0},{1,0,1,1,0,0,0},{0,1,0,1,0,0,0},
{0,1,1,0,1,0,1},{1,0,0,1,0,1,1},{1,0,0,0,1,0,0},{0,0,0,1,1,0,0}};
int color[N] = {0}; //所有顶点均未涂色
for(int i=0;i<N;) //为i点涂色
{
color[i]++;
if(color[i] > 4) //i点试探所有颜色
{
color[i] = 0; //取消顶点i的涂色
i = i-1;
continue; //回溯到前一个顶点
}
for(int j=0;j<N;j++)
{
if((arc[i][j] == 1)&&(color[i] == color[j]))
break;
}
if(j == N)
i = i+1;
}
for(i=0;i<N;i++)
printf("%c涂色%d\n",board[i],color[i]);
return 0;
const int N = 7; //定义七个区域
int main()
{
char board[N] = {'A','B','C','D','E','F','G'};
int arc [N][N] = {{0,1,0,0,1,1,0},{1,0,1,1,0,0,0},{0,1,0,1,0,0,0},
{0,1,1,0,1,0,1},{1,0,0,1,0,1,1},{1,0,0,0,1,0,0},{0,0,0,1,1,0,0}};
int color[N] = {0}; //所有顶点均未涂色
for(int i=0;i<N;) //为i点涂色
{
color[i]++;
if(color[i] > 4) //i点试探所有颜色
{
color[i] = 0; //取消顶点i的涂色
i = i-1;
continue; //回溯到前一个顶点
}
for(int j=0;j<N;j++)
{
if((arc[i][j] == 1)&&(color[i] == color[j]))
break;
}
if(j == N)
i = i+1;
}
for(i=0;i<N;i++)
printf("%c涂色%d\n",board[i],color[i]);
return 0;
}
报错: fatal error LNK1168: cannot open Debug/5.exe for writing
说明你的程序正在运行或 前一次运行关闭不正常,窗口虽然消失了但是进程还在,用任务管理器结束它即可
阅读全文
1 0
- 七巧板问题及 fatal error LNK1168: cannot open Debug/5.exe for writing报错
- LINK : fatal error LNK1168: cannot open Debug/***.exe for writing
- fatal error LNK1168:cannot open Debug/.exe for writing:
- fatal error LNK1168: cannot open Debug/opreat.exe for writing
- fatal error LNK1168: cannot open Debug/opreat.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/algorithm.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/P1.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing
- LINK : fatal error LNK1168: cannot open ../XTEDVR/Debug/test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/1.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/ling.exe for writing
- fatal error LNK1168: cannot open Debug/WinMain.exe for writing 的解决
- C++错误 LINK : fatal error LNK1168: cannot open Debug/ling.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/xxx.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/CCounter.exe for writing 的解决办法
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing的解决方法
- LeetCode | 56. Merge Intervals——合并区间
- 关于HTTP协议,一篇就够了
- 快速幂
- AVFrame 与 yuv420那些事
- 关于thinkphp3.2上传七牛存储的例子
- 七巧板问题及 fatal error LNK1168: cannot open Debug/5.exe for writing报错
- android布局文件的命名规则
- codeforces 78C. Beaver Game
- css3动态前半部分
- 从AtCoder RC 077D: 11 中学习逆元的线性求法
- Where is the Marble? UVA
- Java关键字——final详谈
- kmp(基本操作)
- php echo 和 print的区别