fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char file[] =
  6. {
  7. #ifdef _WIN32
  8. "C:\\Users\\far\\Desktop\\hello.txt"
  9. #else
  10. "C:/Users/far/Desktop/hello.txt"
  11. #endif
  12. };
  13. cout << file << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
C:/Users/far/Desktop/hello.txt