Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual C++ 2008 Issues
    primarykey
    data
    text
    <p>Okay, this is getting stupid, I have Microsoft Visual Studio 2008, was working fine, now whenever I run a .cpp program my command prompt windows has a default color of gray when I initially had lime green for the output.</p> <p>Error Message:</p> <pre><code>'Testing.exe': Loaded 'C:\Users\codebox\Documents\Visual Studio 2008\Projects\Testing\Debug\Testing.exe', Symbols loaded. 'Testing.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll' 'Testing.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll' 'Testing.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll' 'Testing.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcp90d.dll' 'Testing.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcr90d.dll' The program '[2644] Testing.exe: Native' has exited with code 0 (0x0). </code></pre> <p><strong>Why is the IDE loading Testing.exe, I just want to test a .cpp?</strong></p> <p>Code below works fine, except,now i get the above error message, I suspect the IDE:</p> <pre><code>// This program will assist the High Adventure Travel Agency // in calculating the costs of their 4 major vacation packages. #include &lt;iostream&gt; #include &lt;iomanip&gt; using namespace std; // Constants for the charges. const double CLIMB_RATE = 350.0; // Base rate - Devil's Courthouse const double SCUBA_RATE = 1000.0; // Base rate - Bahamas const double SKY_DIVE_RATE = 400.0; // Base rate - Sky diving // This program is a driver for testing the showFees function. #include &lt;iostream&gt; using namespace std; // Prototype void showFees(double, int); int main() { // Constants for membership rates const double ADULT = 40.0; const double SENIOR = 30.0; const double CHILD = 20.0; // Perform a test for adult membership. cout &lt;&lt; "Testing an adult membership...\n" &lt;&lt; "Calling the showFees function with arguments " &lt;&lt; ADULT &lt;&lt; " and 10.\n"; showFees(ADULT, 10); // Perform a test for senior citizen membership. cout &lt;&lt; "\nTesting a senior citizen membership...\n" &lt;&lt; "Calling the showFees function with arguments " &lt;&lt; SENIOR &lt;&lt; " and 10.\n"; showFees(SENIOR, 10); // Perform a test for child membership. cout &lt;&lt; "\nTesting a child membership...\n" &lt;&lt; "\nCalling the showFees function with arguments " &lt;&lt; CHILD &lt;&lt; " and 10.\n"; showFees(CHILD, 10); return 0; } //***************************************************************** // Definition of function showFees. The memberRate parameter * // the monthly membership rate and the months parameter holds the * // number of months. The function displays the total charges. * //***************************************************************** void showFees(double memberRate, int months) { cout &lt;&lt; "The total charges are $" &lt;&lt; (memberRate * months) &lt;&lt; endl; } </code></pre> <p>How is a guy suppose to get his/her code on, with this happening? Or what am I suppose to change, I just want to code in C++ and test my code that's all, not mess around with the damn IDE.</p> <blockquote> <p>Solution: Ctrl+5 </p> <p><a href="http://msdn.microsoft.com/en-us/library/ms235629.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms235629.aspx</a></p> <p>To build and examine the program</p> <p>1.</p> <pre><code> On the Build menu, click Build Solution. The Output window displays information about the compilation </code></pre> <p>progress, for example, the location of the build log and a message that states the build status. 2.</p> <pre><code> On the Debug menu, click Start without Debugging. If you used the sample program, a command window is displayed and </code></pre> <p>shows whether certain integers are found in the set.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload