How do you debug a C++ program without a debugger?
81675
As a long-term programmer, I have worked for years before there were mainstream debuggers with compilers. A lot of embedded compilers also do not come with debuggers.\n\nPrint statements are the best possible way to debug in absence of a debugger. It's a pain, and you have to recompile all of the time, but it sure beats having no debug information at all!\n\nIf there is no monitor to which you may display print statements, then you can also use serial ports (connect the device to a PC that can run a serial comm program), LED's (blink them), and even speakers. I have used all in different situations.
683924
try using Process Explorer located on www.sysinternals.com.  It's a free stand-alone utility that acts like task manager but more powerful.  You may see the program running this way
35211
Microsoft Visual C++ generates runtime error messages if you have incorrectly chosen the application. i.e Win32 Console Application for a Win 32 application, or vice-versa. In addition, you want to ensure you've added your source/header/resource files to the current working project.\nIf you get this error even though you're not a programmer, you definitely need to uninstall Microsoft Visual C++.
345537
Some tutorials I found are:\nhttp://cplusplus.com/doc/tutorial/ , \nhttp://www.zeuscmd.com/tutorials/cplusplus/index.php -- also has source code written specifically for Dev-C++ , \nand http://www.cprogramming.com/tutorial.html#c++tutorial\n\n\nHere is a program that prints out "Hello World":\n\n#include <iostream>\nusing namespace std;\n\nint main()\n{\ncout << "Hello World" << endl;\n\nsystem("pause");\nreturn 0;\n}\n\n\nAlso, http://koders.com/ is a source code search engine that you can use.
478160
I like to print out debug data like this\nResponse.Write("<!--varName : " & varValue & " | FileName : FileName.asp-->")
340365
See references below.\n\nAlso debugging with PHP is an issue.  You can try http://www.nusphere.com or search for another IDE that has debugging capability (I used ddd because I use Linux, its a bit messy to set up).\n\nIf you are using windows and IIS set up PHP using the iisapi module not CGI.\n\nGoog luck.
463588
Obviously, the g++ front end is available, but that\ndoesn't strike me as being particularly easy to integrate\ninto another application.\n\nAt reference #1 (below), there's an extension called\nGCC-XML which parses C++ and produces parse trees in XML\nformat (which would be *much* easier for your application\nto process).  Maybe that's a closer fit.
681044
go to your program files and look for them
510847
do you mean 'debugging'?
967338
If you are fine with any c compiler, you can get visual c++ 2005 express from microsoft site.  It's very good and it's free.\n\nTurbo c++ is quite old and may not support many new c++ features.
244530
If you are using the linux or unix versions you can use the 'time' command which counts program execution time and reports it at the end of the run.. example would be 'time name_of_program_to_run' it would return something like this:\nreal    0m0.004s\nuser    0m0.001s\nsys     0m0.003s\nchris@digdug:~$\n\nif thats not an option you could probably come close by having the program spit out a timestamp at the beginning and end of the program.
1007930
Well, the compiler and linker should have built an *.exe file with the name of your program/project.  Just run it from the start / run option in the task bar.  Or click on it.  I hope that this is what you meant, your question is a little difficult for me to understand.
67914
hey!! looking for ur c++ project.. source code online?? isnt a good idea!\n\nwell thetopic u've selected is idiotic.. \nu better submit an original work.. or else u'll loose marks!\n\nn if programming is ur problem.. n u're lookin for an easy way out.. try looking for tutorial sites for c++.. n search for samples .. but then be assured that ur teacher will come to know aboiut the authenticity just by the format.. \n\nwell if u're smart enough to edit the stuff n then submit it.. only then its of some use.\n\nn by the way.. i've heard of this project .. its common.. i mean even some of my batchmates did this project.. a very ordinary 1... so u may get some help from ur seniors as welll!!
73050
Here is an example of how to do it in C++.\nAssume you want to use have a DLL named MyDll.dll, which contains a function, \n\nbool Function1(int)\n\n...\ntypedef bool Function1(int);\ntypedef Function1* pFunction1;\n\n...\n\nHMODULE DLLHandle;\nDLLHandle = LoadLibrary("MyDll.dll");\n\npFunction1 pF1 = (pFunction1)  GetProcAddress (DLLHandle,"Function1");\n...\nto call:\n   bool bSuccess = pF1(1);
848075
I know of at least two, that I would recommend, apart from what others have said.  I am told the C++ compiler will work with C programs.\n\nBorland Free C++ Compiler\nhttp://www.borland.com/downloads/downloa...\nArticle on Borland Free C++ Compiler\nhttp://community.borland.com/article/0,1410,20633,00.html\n\nBorland Turbo C++ (IDE)\nhttp://www.turboexplorer.com/cpp...
750753
use gcc compiler. u can run cpp programs using gcc.\nwith this, u create a file with .out extension.\nThat to execeute, type, ./ filename.out\n\nat the terminal.
1161264
The above answerer is slightly wrong.  C++ holds a subset of C, it is not the complete C language.\n\nApart from that, You should be able to get a program that executes in C, not in C++.\n\n/* hello.c -- The most famous program of them all ..\n */\n\n#include <stdio.h>\n\nint main(void) {\n  printf("Hello World!&#92;n");\n}\n\nGot from http://www.cis.temple.edu/~ingargio/cis71/code/hello.c