討論串[問題] 有關於C偵測按鍵
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者fabdawn (晃阿晃阿)時間16年前 (2009/09/18 12:42), 編輯資訊
0
0
0
內容預覽:
#include<stdio.h>. #include<stdlib.h>. #include<windows.h> //要include. using namespace std;. int main(){. int key;. do{. key = (rand()%100)+1;. printf
(還有88個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者SuperEel (SuperEel)時間16年前 (2009/09/18 11:21), 編輯資訊
0
0
0
內容預覽:
各位大大好. 我現在想寫一個隨機的籤詩. 我一部分的程式碼大概是這樣. int key;. do{. key = (rand()%100)+1;. }while(). 我while裡面想寫一個偵測到鍵盤或是滑鼠按鍵的值. 利用偵測到有點到滑鼠或是鍵盤按鍵就讓隨機變數定下. 我不用srand(time
首頁
上一頁
1
下一頁
尾頁