用c寫一個拼圖遊戲 - Play

Table of Contents

好像不能用c++寫內容是希望讀入一張圖片可以分割成3*3透過滑鼠或是鍵盤的移動空格完成因為對c根本就沒底子不太清楚能不能用c讀入圖片或者是用12345678也可以萬分感謝...Showmore

All Comments

Freda avatarFreda2010-05-28
程式要自己打...不要只想Copy這樣不會進步我先打給你你在慢慢研究...#include#include#include#include#include#include#defineW3constchar*title="C語言數碼拼圖遊戲";intpattern[W*W];intcorrected=0;intfinished(){inti;for(i=0;i3printf((pattern[i]>0)?"%02d":"",pattern[i]);#elseprintf((pattern[i]>0)?"%d":"",pattern[i]);#endifif((i