Re: [問題] dev c++使用windows application
推
08/11 11:26,
08/11 11:26
→
08/11 11:26,
08/11 11:26
單就這個問題回一下
GUI application 若 AllocConsole() 之後
要接上 stdin/stdout 可以這樣做:
AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
int x;
scanf("%d", &x);
printf("x = %d\n", x);
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.53.23
→
08/11 22:32, , 1F
08/11 22:32, 1F
推
08/11 23:04, , 2F
08/11 23:04, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):