- 【初心者歓迎】C/C++室 Ver.95【環境依存OK】 [転載禁止]©2ch.net
535 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 01:03:51.28 ID:sQiZAhF+ - 今日の3値マンはどんな味を出してくれるかな…w”
|
- 【初心者歓迎】C/C++室 Ver.94【環境依存OK】©2ch.net
561 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 01:05:11.28 ID:sQiZAhF+ - サンプルをコピー&ペーストするだけじゃプログラム作れないよw
|
- C言語なら俺に聞け(入門編)Part 127©2ch.net
481 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 01:07:41.08 ID:sQiZAhF+ - それ先頭だけだろw
|
- Win32API質問箱 Build120©2ch.net
76 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 01:15:58.27 ID:sQiZAhF+ - >>70
んじゃついでにマルチスレッドの書き方についても論じてくれw
|
- Win32API質問箱 Build120©2ch.net
80 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 06:30:00.49 ID:sQiZAhF+ - >>79
while( hMyWnd == GetForegroundWindow())でいいんじゃないの?w while(1)がムダw
|
- 【初心者歓迎】C/C++室 Ver.95【環境依存OK】 [転載禁止]©2ch.net
537 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 06:31:46.29 ID:sQiZAhF+ - while(1)ってのがムダに感じるw
|
- Win32API質問箱 Build120©2ch.net
82 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 06:53:11.05 ID:sQiZAhF+ - こういう感じか…w”
#include "stdafx.h" #include <windows.h> int main(int argc, char * argv[]) { bool bLeft=0; HWND hMyWnd =GetForegroundWindow(); while( (hMyWnd == GetForegroundWindow()) && !GetAsyncKeyState(VK_RBUTTON)) { if(GetAsyncKeyState(VK_LBUTTON)) bLeft=1; else if(bLeft) { bLeft=0; printf("左クリックを離さないでください\n"); } Sleep(30); } return 0; }
|
- Win32API質問箱 Build120©2ch.net
83 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 06:59:10.65 ID:sQiZAhF+ - while() {} sleep();でもいいかw
プログラムが汚いとダメw プログラムが汚いとダメw プログラムが汚いとダメw プログラムが汚いとダメw プログラムが汚いとダメw
|
- Win32API質問箱 Build120©2ch.net
85 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 07:01:19.02 ID:sQiZAhF+ - while(1)がムダw
|
- Win32API質問箱 Build120©2ch.net
88 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 08:23:26.48 ID:sQiZAhF+ - >>87
それなら loop: goto loop; の方が見やすいだろw
|
- Win32API質問箱 Build120©2ch.net
90 :Office & Gamers ◆G144Hzgh2.0e [アハ♪” uh huh]:2015/04/16(木) 08:43:08.53 ID:sQiZAhF+ - while(1)なんてのはプログラミング作法として逝ってる証拠w
|