[問題] 顏色程式碼

看板C_and_CPP作者 (ㄚ春)時間15年前 (2009/04/24 20:32), 編輯推噓1(104)
留言5則, 4人參與, 最新討論串1/1
#include<stdio.h> #include<stdlib.h> #include<graph.h> int main() { _settextcolor(0); _setbkcolor(2); _settextposition(10,10); _outtext("QQQQ"); _settextcolor(4+16); _setbkcolor(7); _settextposition(12,10); _outtext("KKKK"); system("pause"); return 0; } 這是我在一本老舊書上看到的程式碼 結果打進去deV c 不能過 請問是哪裡出了問題?? 是因為編譯的程式 不適用在這個程式碼上嗎?? 謝謝解惑 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.172.93.89

04/24 20:34, , 1F
Turbo C 的嗎? 還是換一本好了, 會混淆新手
04/24 20:34, 1F

04/24 20:35, , 2F
書名是...visual c++
04/24 20:35, 2F

04/24 20:42, , 3F
看新的書吧
04/24 20:42, 3F

04/24 20:45, , 4F
嗚 真是可惜....
04/24 20:45, 4F

04/24 22:22, , 5F
vc 你就用windows的嘛
04/24 22:22, 5F
文章代碼(AID): #19yR554u (C_and_CPP)