外掛聯合國討論區

 找回密碼
 註冊

熱門外掛

  • 大家都在用
  • 即將登場
  • 免費試用
  • 優惠活動
樓主: juje
打印 上一主題 下一主題

[分享] 使用燒餅聯合搜尋改怪物彈珠 攻擊力 血量 速度   [複製鏈接]

0

主題

0

好友

398

積分

外掛國中高級生

Rank: 3

貴賓席
peter4832427 發表於 2015-4-16 20:04:29 來自手機 |顯示全部樓層
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstring>
using namespace std;
#define _ while
#define __ int main()
struct Profile
{
        string ID;
        bool Sex;
        float Height;
        float Weight;
        float BMI;
};

float GetBMI(float Height,float Weight)
{
        float result = Weight / (Height * Height);
        return (result);
}



__
{
        fstream fileInput;
        fileInput.open("data.txt",ios::in);

       
        Profile n[69];
        int count = 0;
        _((fileInput >> n[count].ID >> n[count].Sex >> n[count].Weight >> n[count].Height))
        {
                cout << "abcd:" << n[count].ID  << n[count].Sex  << n[count].Weight << n[count].Height << endl;
                count += 1;

        }
        cout << "\n總共有" << count << "人";
        cout << n[68].ID << endl;


        system("PAUSE");
        return 0;
}
回覆

使用道具 舉報

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


回頂部