This is what I am doing. Changing the output dir path will only change the creation of executable path.
But when I run it using ctrl+f5 it gives error because program is looking the exe in old(debug) folder
These should always be the same. The paths will be in your build output.
Follow the instructions given by Richard MacCutchan and only change the 'Output Directory' located in the 'General' property page. I have a feeling that you mistakenly changed the 'Linker->Output File'. If I am correct... change it back to the default value of '$(OutDir)$(TargetName)$(TargetExt)' and follow his instructions.
Go to the next node in Properties named Debugging, and change the Command entry from $(TargetPath) to the same path as you previously changed, followed by $(TargetFileName); you may need a backslash in front.
But all of this begs the question: why? You are just storing up trouble for the future by not sticking to the defaults.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
I have the basic level knowledge of pointers, arrays and recursion's.
But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from.
So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice.
...like when returning a multi-dimensional array from a user-defined function...
The issue you may be having is you are searching for something very specific. Broaden your search. Instead of searching for a two- or three-dimension array, just focus on arrays in general. Visually, you might look at them something like:
// one 'row' with five itemsint arr; // // three 'rows' with five items eachint arr; //  - //  - //  - // two 'levels' of three 'rows' with five items eachint arr; //  -  - //  -  - //  -  - //  -  - //  -  - //  -  - 
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Last Visit: 31-Dec-99 19:00 Last Update: 4-Dec-23 13:13