Opinions on this way to view compiled work.
Author |
Message |
romantic_programmer
![](http://compsci.ca/v3/uploads/user_avatars/203983023545d4cb477ce6a.png)
|
Posted: Thu Dec 11, 2008 1:58 am Post subject: Opinions on this way to view compiled work. |
|
|
I am using Dev-C++, now i am on to working with C++ so i have made the basic "Hello, World" program and a few other test programs.
My first problem was that after i compiled the code it wouldn't stay... so i browsed compsci around and noticed you guys were talking about the cmd (command prompt) so i got to thinking.
If I created a folder named CPP_examples (This is where all my test stuff goes.). Then i add a text document such as notepad, now with notepad if some of you didn't know you can access the cmd with it. here is how.
1) Open notepad
2) Type in this:
@echo off
command
@echo on
3) Save as [whatever].bat ex. cmd.bat
4)make sure it is saved in the folder we ust made.
5)close and delete notepad but don't delete the bat file we just saved.
Now that we got that out of the way we can get onto finishing this. Move all your work into the folder. for me it is simple i just save it there anyways.
now when you want to run your compiled work just double click your .bat file and the cmd will open and if you notice it has the c/blah/blah/CPP_examples... so all you have to do is just type in [compiled project name].exe ex. helloWorld.exe and it will run your program.
I find this useful because instead of repeatedly typing in all that address [BS] it allows you to skip all that typing and get directly to your files. i know it sounds dumb but it means a lot more then how i can describe it.
I know it works for me really well and i was just wondering if anyone else though this was practical. if not please help me find a better way to do this.
P.S. i have only been working with C++ for a few hours... it took me almost 30mins to overcome the "std::endl;" i though it was "std::end1;" Once i figure out my problem i laughed so hard i fell off my bed. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
wtd
|
Posted: Thu Dec 11, 2008 2:49 am Post subject: RE:Opinions on this way to view compiled work. |
|
|
Just use Linux or Cygwin to get a real shell? |
|
|
|
|
![](images/spacer.gif) |
romantic_programmer
![](http://compsci.ca/v3/uploads/user_avatars/203983023545d4cb477ce6a.png)
|
Posted: Thu Dec 11, 2008 11:17 am Post subject: RE:Opinions on this way to view compiled work. |
|
|
how would i use linux with vista |
|
|
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Sun Dec 14, 2008 12:43 am Post subject: RE:Opinions on this way to view compiled work. |
|
|
Ideas:
1. Dual-boot. It's incredibly easy to install Linux so you can just choose which operating system to boot every time you start up the computer. Alternately, run it inside a virtual machine.
2. As wtd suggests, install Cygwin, which implements a real shell in Windows. |
|
|
|
|
![](images/spacer.gif) |
gianni
![](http://compsci.ca/v3/uploads/user_avatars/2828365714b5bd9cc211e8.png)
|
Posted: Sun Dec 14, 2008 4:34 am Post subject: RE:Opinions on this way to view compiled work. |
|
|
If you're really set on using a windows shell, I heard PowerShell was making some headway in making life a bit more livable in that regard. |
|
|
|
|
![](images/spacer.gif) |
|
|