Guest User

Untitled

a guest
Aug 14th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Can not print out the argv[] values using std::cout in VC
  2. #include "stdafx.h"
  3. #include <fstream>
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10.  
  11. cout << argv[0] << " ";
  12. cout << argv[1] ;
  13.  
  14. return 0;
  15. }
  16.  
  17. wcout << argv[0] << L" ";
  18. wcout << argv[1] ;
Add Comment
Please, Sign In to add comment