Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- int32_t main() {
- cout << "Type The File Name : " << endl;
- char filename[1024];
- cin >> filename;
- cout << "Type The Min_supp : " << endl;
- int min_supp, min_conf;
- cin >> min_supp;
- cout << "Type The Min_conf : " << endl;
- cin >> min_conf;
- // 要讀的檔名 可以用相對路徑 或絕對路徑
- //
- ifstream fin(filename);
- int id;
- string s;
- while (fin >> id >> s) {
- // TODO 接下來就要處理 ID, S
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement