外掛聯合國討論區

 找回密碼
 註冊

熱門外掛

  • 大家都在用
  • 即將登場
  • 免費試用
  • 優惠活動
查看: 7236|回覆: 168
打印 上一主題 下一主題

[分享] 刀塔傳奇-線上雙字轉換 直接線上輸入直接搜尋   [複製鏈接]

1736

主題

71

好友

2萬

積分

外掛研發達人

Rank: 5Rank: 5Rank: 5

跳轉到指定樓層
貴賓席
千年眼 發表於 2014-12-12 18:09:51 |只看該作者 |倒序瀏覽
刀塔傳奇-線上雙字轉換 直接線上輸入直接搜尋
遊客,如果您要查看本帖隱藏內容請回覆



標籤:刀塔傳奇,直接搜尋,線上輸入,雙字轉換,雙浮點運算
分享分享0 收藏收藏0 讚0 幹0 分享分享 FB分享
回覆

使用道具 舉報

1

主題

0

好友

1358

積分

外掛高中高級生

Rank: 4Rank: 4

沙發
ufjk1028 發表於 2014-12-14 23:10:25 |只看該作者
感謝感謝........................................................
回覆

使用道具 舉報

0

主題

0

好友

441

積分

外掛國中高級生

Rank: 3

長椅
opp0628 發表於 2014-12-15 09:32:16 來自手機 |只看該作者
感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝
回覆

使用道具 舉報

0

主題

0

好友

441

積分

外掛國中高級生

Rank: 3

4
opp0628 發表於 2014-12-15 09:33:03 來自手機 |只看該作者
感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝感謝
回覆

使用道具 舉報

0

主題

0

好友

2747

積分

外掛大學三年級

Rank: 5Rank: 5Rank: 5

5
Joneshu 發表於 2014-12-15 10:11:11 |只看該作者
感謝感謝感謝感謝感謝感謝感謝
感謝感謝感謝感謝感謝感謝感謝感謝
回覆

使用道具 舉報

0

主題

0

好友

83

積分

外掛國小五級生

Rank: 2Rank: 2

6
太陽月亮 發表於 2014-12-15 22:00:36 |只看該作者
感謝感謝感謝感謝感謝感謝感謝
感謝感謝感謝感謝感謝感謝感謝感謝
回覆

使用道具 舉報

0

主題

0

好友

1574

積分

外掛大學一年級

Rank: 5Rank: 5Rank: 5

7
maco1616 發表於 2014-12-22 12:13:33 |只看該作者
感謝感謝感謝感謝感謝感謝感謝
感謝感謝感謝感謝感謝感謝感謝
感謝感謝感謝感謝感謝感謝感謝
回覆

使用道具 舉報

0

主題

0

好友

398

積分

外掛國中高級生

Rank: 3

8
peter4832427 發表於 2014-12-26 11:29:32 來自手機 |只看該作者
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
bool StrCmp(char Str1[],char Str2[])
{       
        bool nReturn = true;
        for (int i = 0; i < 15 ; i++)
        {
                if (Str1[i] != Str2[i])
                {
                        nReturn = false;
                }
                if (Str2[i] == 0)
                {
                        return true;
                }
        }       
        return nReturn;
}
int main()
{
        char database[40][15]={"#include","<iostream>","using","namespace","int",
                               "return", "asm","do","inline","short",
                                                   "typeid","auto","double","signed","typenmae",
                                                   "break","else","iong","sizeof","union",
                                                   "bool","enum","mutable","static","unsigned",
                                                   "case","explicit","struct","using","catch",
                                                   "extern","new","switch","virtual","char",
                                                   "flase","operator","template","void","class",
                                                   };
        char input[15];
        int num,start,end;
        srand(time(0));
        for (int i=0;i<10;i++)
        {       
                num=rand()%40;
                cout<<database[num]<<":\n";       
                start=time(0);
                cin>>input;
                end=time(0);
                if(StrCmp(database[num],input))
                {
                        cout << "答案正確!" << endl;       
                }else{
                        cout << "答案錯誤!" << endl;
                };
                cout<<"共花"<<end-start<<"秒\n";
        }
        return 0;        
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
bool StrCmp(char Str1[],char Str2[])
{       
        bool nReturn = true;
        for (int i = 0; i < 15 ; i++)
        {
                if (Str1[i] != Str2[i])
                {
                        nReturn = false;
                }
                if (Str2[i] == 0)
                {
                        return true;
                }
        }       
        return nReturn;
}
int main()
{
        char database[40][15]={"#include","<iostream>","using","namespace","int",
                               "return", "asm","do","inline","short",
                                                   "typeid","auto","double","signed","typenmae",
                                                   "break","else","iong","sizeof","union",
                                                   "bool","enum","mutable","static","unsigned",
                                                   "case","explicit","struct","using","catch",
                                                   "extern","new","switch","virtual","char",
                                                   "flase","operator","template","void","class",
                                                   };
        char input[15];
        int num,start,end;
        srand(time(0));
        for (int i=0;i<10;i++)
        {       
                num=rand()%40;
                cout<<database[num]<<":\n";       
                start=time(0);
                cin>>input;
                end=time(0);
                if(StrCmp(database[num],input))
                {
                        cout << "答案正確!" << endl;       
                }else{
                        cout << "答案錯誤!" << endl;
                };
                cout<<"共花"<<end-start<<"秒\n";
        }
        return 0;        
}
回覆

使用道具 舉報

0

主題

0

好友

39

積分

外掛國小三級生

Rank: 2Rank: 2

9
0958795950 發表於 2014-12-26 15:52:55 |只看該作者
謝謝分享,小弟實在不懂所以抱著學習的心態進來看看
回覆

使用道具 舉報

0

主題

0

好友

7

積分

外掛小班

Rank: 1

10
love940216 發表於 2014-12-31 18:06:03 |只看該作者
讚讚讚讚讚讚讚
讚讚讚讚讚讚讚
讚讚讚讚讚讚讚
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊


回頂部