| Guzfraba (25) | |||||
Hello! I've made a program that creates a "main.cpp" in a new project.It is useful for time saving I think :) The code that is written in "main.cpp" is taken from a "sc.txt" file,located in the folder with the program.You can change the content from the sc file anytime.So here is the code,you have to modify just one line I think:
0.Modify the beginning of the line 19 with the address of your VC++ projects. 1.Now build the program and copy it on the desktop(for example). 2.Create a file "sc.txt" on the desktop and write in it something,for example:
3.Open compiler,select new project. 4.Open the program,write in the projects name. 5.In the compiler select Source file->Add->Existing item and open main.cpp. Ready-you saved 10 seconds of your life ;). Of course you can edit the sc.txt file to something longer. Hope this helped anybody :D | |||||
|
|
|||||
| Disch (8617) | |
|
There's probably a way to do this with project templates in <insert whatever IDE you use here>. ... not to be a downer or anything. | |
|
Last edited on
|
|
| BHXSpecter (982) | |
| Assuming you use IDEs as I know a few that live by the command line for everything. I use both, but feel (as stated elsewhere) that learning the command line is essential for programming. | |
|
|
|
| ne555 (4385) | |
| In which case you could simply use `cp' | |
|
|
|
| cire (2353) | ||
I don't know many people who use the command line for editing files. Most (decent) editors have a macro facility that allows you to do something similar to this without having to invoke an external program, including the editor the OP is using. | ||
|
|
||
| BHXSpecter (982) | ||||
I meant to say "live by the terminal" as they use vim, nano, or emacs and do their compilation by typing it out (ie
| ||||
|
|
||||