唐老鸭
|
分享:
▲
▼
一点头绪也没有= =... 那就写贪食蛇好了.... 程式逻辑比较简单.... 程式码也比踩地雷少一倍左右.... 可以用阵列或是链结串列去写.... 用阵列比较好.... 因为比较较好写.... 但缺点是比较浪费记忆体空间.... 如果一下就死掉的话 .... 我想网路上很容易找到这类的程式码吧.... 真的找不到再来求助比较好.... 至少学到的东西是你的....
|
|
唐老鸭
|
分享:
▲
▼
下面是引用superymu于2005-12-16 21:22发表的 : 请问一下... 怎么在12*12的阵列当中 随机放入12个地雷呢? 大概写个程式码.... 留一点给你自己写... 加油啰 ..... 地雷数=0; while(地雷数<12) //要的地雷数 { //随机取X和Y的值 x=rand()%12; y=rand()%12; if(mine[x][y]!=9) //判断该位置是否已放置地雷 { 地雷数++; mine[x][y]=9 //9代表地雷 //下面的两个回圈将该地雷的周围做加1的动作,mine[x][y]预设为0 for(i=x-1;i<=x+1;i++) for(j=y-1;j<=y+1;j++) { if(.....&&....) //用来判断是首超出阵列而且不要包括地雷的位置 mine[x][y]++; } } }
|
|
唐老鸭
|
分享:
▲
▼
首先你先设一个一样大小的阵列... 譬如detect[12][12].... 阵列的定义是.... 0代表还未侦测.... 1代表已侦测... 2代表插旗子... 3代表打问号.... 那要做展开的动作.... 函数写法大概如下.... 复制程式
void clear(int x,int y) //传入的参数就是你点的位置
{
for(i=x-1;i<=x+1;i++) //做八方侦测
{ for(j=y-1;j<=y+1;j++)
{
if(.....) //判断不要超出阵列&&不包含x和y本身&&dectct[i][j]=0(代表还未侦测过)
{
if(mine[i][j]<=8) //不要测试地雷本身
{
if(mine[i][j]=0)
{
detect[i][j]=1;
clear(i,j); //作递回
}
else
detect[i][j]=1; //这里不作递回....碰到数字就停止
}
}
}
}
}
下次要印出图形时.... 先判断是否已侦测过.... 把侦测过的mine[x][y]印出来就好啰.... 缺的地方一样自己补啰 ....
|
|
superymu
|
分享:
▲
▼
我写完了耶 谢谢...^^ 不知道这样行不行呢? 下礼拜助教要验收... 复制程式
#include <iostream.h>
#include <conio.h>
#define MAX 25
int area,bomb_num;
int count = 0;
void Open_chk(int Save_Bomb[][MAX],int chk[][MAX],int x,int y)
{
int r = y-7; // 座标转阵列位置
int c = x/2-2;
gotoxy((c+2)*2-1,r+7);
cout << "□";
chk[r][c] = 1;
count++;
for (int i=r-1; i<=r+1; i++)
{
for (int j=c-1; j<=c+1; j++)
{
if (Save_Bomb[i][j] != 0 && chk[i][j] == 0 && i>=0 && i<area && j>=0 && j<area)
{
gotoxy((j+2)*2,i+7);
cout << Save_Bomb[i][j];
chk[i][j] = 1;
count++;
}
}
}
if (Save_Bomb[r-1][c] == 0 && chk[r-1][c] == 0 && r-1>=0 && r-1<area && c>=0 && c<area) // 递回散开上.下.左.右.左上.右上.左下.右下
Open_chk(Save_Bomb,chk,x,y-1);
if (Save_Bomb[r+1][c] == 0 && chk[r+1][c] == 0 && r+1>=0 && r+1<area && c>=0 && c<area)
Open_chk(Save_Bomb,chk,x,y+1);
if (Save_Bomb[r][c-1] == 0 && chk[r][c-1] == 0 && r>=0 && r<area && c-1>=0 && c-1<area)
Open_chk(Save_Bomb,chk,x-2,y);
if (Save_Bomb[r][c+1] == 0 && chk[r][c+1] == 0 && r>=0 && r<area && c+1>=0 && c+1<area)
Open_chk(Save_Bomb,chk,x+2,y);
if (Save_Bomb[r-1][c-1] == 0 && chk[r-1][c-1] == 0 && r-1>=0 && r-1<area && c-1>=0 && c-1<area)
Open_chk(Save_Bomb,chk,x-2,y-1);
if (Save_Bomb[r-1][c+1] == 0 && chk[r-1][c+1] == 0 && r-1>=0 && r-1<area && c+1>=0 && c+1<area)
Open_chk(Save_Bomb,chk,x+2,y-1);
if (Save_Bomb[r+1][c-1] == 0 && chk[r+1][c-1] == 0 && r+1>=0 && r+1<area && c-1>=0 && c-1<area)
Open_chk(Save_Bomb,chk,x-2,y+1);
if (Save_Bomb[r+1][c+1] == 0 && chk[r+1][c+1] == 0 && r+1>=0 && r+1<area && c+1>=0 && c+1<area)
Open_chk(Save_Bomb,chk,x+2,y+1);
}
void Bomb_View(int Save_Bomb[][MAX],int chk[][MAX],int x,int y)
{
if (Save_Bomb[y-7][x/2-2] == 0)
{
chk[y-7][x/2-2] = 1;
Open_chk(Save_Bomb,chk,x,y);
}
else if (Save_Bomb[y-7][x/2-2] == 9)
{
for (int i=0; i<area; i++)
{
for (int j=0; j<area; j++)
{
if (Save_Bomb[i][j] == 9)
{
gotoxy((j+2)*2-1,i+7);
cout << "⊙";
}
}
}
gotoxy(1,area+12);
cout << "╔═════╗\n";
cout << "║ 你输了 ! ║\n";
cout << "╚═════╝\n";
exit(1);
}
else
{
cout << Save_Bomb[y-7][x/2-2];
chk[y-7][x/2-2] = 1;
count++;
}
if (count == area*area-bomb_num)
{
gotoxy(1,area+12);
cout << "╔═════╗\n";
cout << "║ 你赢了 ! ║\n";
cout << "╚═════╝\n";
exit(1);
}
}
void main(void)
{
int x = 4;
int y = 7;
int n;
int Save_Bomb[MAX][MAX] = {0};
int chk[MAX][MAX] = {0};
cout << "踩地雷方阵大小 : (5 ~ 25)\n";
do
{
gotoxy(1,2);
cout << " ";
gotoxy(1,2);
cin >> area;
}
while (area < 5 || area > 25);
cout << "地雷数 : (1 ~ " << area*area/5 << ")\n";
do
{
gotoxy(1,4);
cout << " ";
gotoxy(1,4);
cin >> bomb_num;
}
while (bomb_num < 1 || bomb_num > area*area/5);
cout << endl;
randomize();
int BN = 0;
while (BN < bomb_num) // 乱数放地雷
{
int a,b;
a = random(area);
b = random(area);
if (Save_Bomb[a][b] != 9)
{
BN++;
Save_Bomb[a][b] = 9; // 9 表示地雷
for (int i=a-1; i<=a+1; i++) // 地雷周围数字累加
{
for (int j=b-1; j<=b+1; j++)
{
if (i>=0 && i<area && j>=0 && j<area && Save_Bomb[i][j] != 9)
Save_Bomb[i][j]++;
}
}
}
}
for (int i=1; i<=area+2; i++)
{
for (int j=1; j<=area+2; j++)
{
if (i==1 || j==1 || i == area+2 || j == area+2)
{
if (i == 1 && j == 1) cout << "◎";
if (i == 1 && j == area+2) cout << "◎";
if (i == area+2 && j == 1) cout << "◎";
if (i == area+2 && j == area+2) cout << "◎";
if ((i == 1 || i == area+2) && j != 1 && j != area+2) cout << "─";
if ((j == 1 || j == area+2) && i != 1 && i != area+2) cout << "│";
}
else cout << "■";
}
cout << endl;
}
cout << "╔═════╗\n";
cout << "║ M 标记║\n";
cout << "║ ESC 离开║\n";
cout << "╚═════╝\n";
gotoxy(1,area+16); // 解答
for (int i=0; i<area; i++)
{
for (int j=0; j<area; j++)
{
cout << Save_Bomb[i][j] << " ";
}
cout <<endl;
}
gotoxy(x,y);
while (1)
{
n = getch();
switch (n)
{
case 72:
if (y == 7) break;
else y=y-1; break;
case 80:
if (y == area+6) break;
else y=y+1; break;
case 75:
if (x == 4) break;
else x=x-2; break;
case 77:
if (x == area*2+2) break;
else x=x+2; break;
case 13:
if (chk[y-7][x/2-2] == 0) Bomb_View(Save_Bomb,chk,x,y); break;
case 27:
gotoxy(1,area+12);
cout << "╔═════╗\n";
cout << "║ 已离开 ! ║\n";
cout << "╚═════╝\n";
exit(1);
case 109:
if (chk[y-7][x/2-2] == 0)
{
gotoxy(x-1,y);
cout << "※";
chk[y-7][x/2-2] = -1;
}
else if (chk[y-7][x/2-2] == -1)
{
gotoxy(x-1,y);
cout << "■";
chk[y-7][x/2-2] = 0;
}
break;
}
gotoxy(x,y);
}
}
|
|
x1
[8 楼]
From:台湾中华电信
| Posted:2005-12-22 18:40 |
|
|
MASH
|
分享:
▲
C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(12) : warning C4013: 'gotoxy' undefined; assuming extern returning int C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(13) : error C2065: 'cout' : undeclared identifier C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(13) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : error C2065: 'i' : undeclared identifier C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : warning C4552: '<=' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(17) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(18) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : error C2065: 'j' : undeclared identifier C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : warning C4552: '<=' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(19) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(20) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(24) : warning C4552: '<<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(65) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(65) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(65) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(65) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(65) : warning C4552: '<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(65) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(66) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(67) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(67) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(67) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(67) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(67) : warning C4552: '<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(67) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(68) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(72) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(77) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(78) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(79) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(80) : warning C4013: 'exit' undefined; assuming extern returning int C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(84) : warning C4552: '<<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(91) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(92) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(93) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(106) : error C2297: '<<' : illegal, right operand has type 'char [27]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(110) : error C2297: '<<' : illegal, right operand has type 'char [11]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(112) : error C2065: 'cin' : undeclared identifier C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(112) : warning C4552: '>>' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(116) : error C2297: '<<' : illegal, right operand has type 'char [15]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(120) : error C2297: '<<' : illegal, right operand has type 'char [11]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(122) : warning C4552: '>>' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(126) : error C2065: 'endl' : undeclared identifier C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(126) : warning C4552: '<<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(128) : warning C4013: 'randomize' undefined; assuming extern returning int C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(129) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(130) : error C2065: 'BN' : undeclared identifier C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(133) : warning C4013: 'random' undefined; assuming extern returning int C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(139) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(139) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(139) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(139) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(139) : warning C4552: '<=' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(139) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(140) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(141) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(141) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(141) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(141) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(141) : warning C4552: '<=' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(141) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(142) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(150) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(150) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(150) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(150) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(150) : warning C4552: '<=' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(150) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(151) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(152) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(152) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(152) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(152) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(152) : warning C4552: '<=' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(152) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(153) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(156) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(157) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(158) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(159) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(160) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(161) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(163) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(165) : warning C4552: '<<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(168) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(169) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(170) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(171) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(174) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(174) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(174) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(174) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(174) : warning C4552: '<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(174) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(175) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(176) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(176) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(176) : error C2143: syntax error : missing ')' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(176) : error C2143: syntax error : missing '' before 'type' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(176) : warning C4552: '<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(176) : error C2059: syntax error : ')' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(177) : error C2143: syntax error : missing '' before '{' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(178) : error C2297: '<<' : illegal, right operand has type 'char [2]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(180) : warning C4552: '<<' : operator has no effect; expected operator with side-effect C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(205) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(206) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(207) : error C2297: '<<' : illegal, right operand has type 'char [16]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(213) : error C2297: '<<' : illegal, right operand has type 'char [3]' C:\Documents and Settings\其鸿\桌面\程式设计\踩地雷.c(219) : error C2297: '<<' : illegal, right operand has type 'char [3]' Error executing cl.exe.
96 error(s), 21 warning(s)
错误全部邦你贴上了 改一改就ok
|
|
x0
[9 楼]
From:台湾中华电信
| Posted:2006-02-28 13:44 |
|
|
|