Created
December 4, 2020 00:46
-
-
Save paulodiogo/35c2e279bdcd4ad60abe4cdfd7a1a1cd to your computer and use it in GitHub Desktop.
Redirect input and output to files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//include | |
#include <bits/stdc++.h> | |
//configure | |
ifstream cin("input.txt"); | |
ofstream cout("output.txt"); | |
//Use cin and cout normally: | |
cin >> N; | |
cout << N; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment