Doxygen – Documentation Builder

Doxygen Generate documentation from source code Doxygen is the standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba and Microsoft flavors), Fortran, VHDL, Tcl, and to some extent D. Installation Run following command in terminal: $ sudo […]

C++ with CGI

Before doing example, You have to configure cgi-bin with apache server. If its done then try your first example. Open an empty file and write following c++ code. #include <iostream> using namespace std; int main () { cout << "Content-type:text/html \n\n"; cout << "Hello World – First CGI Program"; return 0; } Now save this […]

CGI Configuration on Apache

There are 3 ways to use CGI. First Way When we install Apache server, then /usr/lib/cgi-bin folder is automatically created. You can place c++ files in that folder and execute them on browser(localhost/cgi-bin/example). Second Way You can also configure /var/www/cgi-bin for CGI programming. Third Way You can also configure cgi-bin in home directory as /public_html/cgi-bin. […]

MySQL with C++

Here’s an example for connecting C++ program with MySQL. You can simply download code from Github [Link] or Do as following Write following code in text editor and save file as mysql.cpp // Include Header Files #include <iostream> #include <cstdio> #include <cstdlib> // For MySQL Connection #include <mysql.h> using namespace std; // Defining Constant Variables […]