jeudi 9 avril 2015

Add argc for Windows cmd

Using Linux, when running a C++ program that takes a .txt file as an argc. i.e.



int main(int argc, char *argv[])


I can simply compile it, then type ./a.out file.txt


When using windows, after compiling it, how do i then run it including the file.txt as the argc?


Aucun commentaire:

Enregistrer un commentaire