C/C++の宿題を片付けます 112代目
■ このスレッドは過去ログ倉庫に格納されています
0469デフォルトの名無しさん
2008/07/10(木) 21:24:09{
int x, y, pos;
printf("Input x : ");
scanf("%d", &x);
printf("Input y : ");
scanf("%d", &y);
pos=(y * wid + x) * bnd;
if(bnd==3) printf("(R,G,B)=(%d,%d,%d)\n", img[pos], img[pos+1], img[pos+2]);
if(bnd==1) printf("(R,G,B)=(%d,%d,%d)\n", img[pos], img[pos], img[pos]);
}
■ このスレッドは過去ログ倉庫に格納されています