Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int main()
- {
- string path;
- cout << "使うファイル名を打ち込むんじゃ・・→";
- cin >> path;
- ifstream ifs("path");
- string str;
- while(getline(ifs, str))
- {
- cout << str << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement