Advertisement
Kevin_Zhang

Untitled

Dec 13th, 2020
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. int32_t main() {
  4.    
  5.     cout << "Type The File Name : " << endl;
  6.     char filename[1024];
  7.     cin >> filename;
  8.  
  9.     cout << "Type The Min_supp : " << endl;
  10.  
  11.     int min_supp, min_conf;
  12.     cin >> min_supp;
  13.  
  14.     cout << "Type The Min_conf : " << endl;
  15.     cin >> min_conf;
  16.  
  17.     //          要讀的檔名 可以用相對路徑 或絕對路徑
  18.     //
  19.     ifstream fin(filename);
  20.    
  21.  
  22.     int id;
  23.     string s;
  24.  
  25.  
  26.     while (fin >> id >> s) {
  27.  
  28.         // TODO 接下來就要處理 ID, S
  29.  
  30.  
  31.     }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement