I have a prog initially which i wrote in Unix in C++ i used to compile prog like g++ prog.cpp -o prog
using prog exectuable in unix i used commmand for files to pass as parameters ./prog select.txt file1.txt file2.txt
select was my file to be modify taking contents from file1 and file2 . It was working fine. I want same thing to do in dev C++ as its first time i am using it . Can someone help me with how to save n run and how i should pass this files in dev C++ mingw compiler !!!
Thanks a lot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The book C++ for Dummies has a whole section on the setup and install. For what that is worth... and you can visit a bookstore and read that section if you don't want to buy the book. (Has screen shots, even!)
Keith
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is not really a matter of "save n run" - this isn't BASIC. You have to compile/link your code and execute it.
I'd have to install Dev-C++ to remember the precise menu/toolbar/keyboard shortcuts, but it is surely not beyond you to explorte the menus and toolbar tooltips yourself (hover over a button and it tells you what it does).
I believe the menu item to set command line parameters is on the Execute menu, as is the item to actually build and execute the code (the clue is in the name).
Of course once compiled, you can execute your program from the Windows command line just as you did in Unix, or from Windows Explorer in the normal way. Running from teh IDE is not necessary, and is only provided as a development aid. To set command line parameters in Explorer, you first create a shortcut to your executable, then edit the shortcut properties to specify parameters.
I am not installing Dev-C++ since a system rebuild, because it has few, if any advantages over a number of alternatives.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a prog initially which i wrote in Unix in C++ i used to compile prog like g++ prog.cpp -o prog
using prog exectuable in unix i used commmand for files to pass as parameters ./prog select.txt file1.txt file2.txt
select was my file to be modify taking contents from file1 and file2 . It was working fine. I want same thing to do in dev C++ as its first time i am using it . Can someone help me with how to save n run and how i should pass this files in dev C++ mingw compiler !!!
Thanks a lot
In addition to what Clifford already said:
The book C++ for Dummies has a whole section on the setup and install. For what that is worth... and you can visit a bookstore and read that section if you don't want to buy the book. (Has screen shots, even!)
Keith
Tangential note:
Be careful about edition of that book. Some of them come with Dev version 4.9.7.0, which is one of the worst in history.
Wayne
It is not really a matter of "save n run" - this isn't BASIC. You have to compile/link your code and execute it.
I'd have to install Dev-C++ to remember the precise menu/toolbar/keyboard shortcuts, but it is surely not beyond you to explorte the menus and toolbar tooltips yourself (hover over a button and it tells you what it does).
I believe the menu item to set command line parameters is on the Execute menu, as is the item to actually build and execute the code (the clue is in the name).
Of course once compiled, you can execute your program from the Windows command line just as you did in Unix, or from Windows Explorer in the normal way. Running from teh IDE is not necessary, and is only provided as a development aid. To set command line parameters in Explorer, you first create a shortcut to your executable, then edit the shortcut properties to specify parameters.
I am not installing Dev-C++ since a system rebuild, because it has few, if any advantages over a number of alternatives.
Clifford