How to Backpropagation Neural Network with C++?

#include "backprop.h"
#include <cstdlib>

using namespace std;

double toInt(const double& lfIn)
   if (lfIn > 0.5)
    return ceil(lfIn);
   else if (lfIn < 0.5)
    return floor(lfIn);

OpenCV with Qt C++ Examples (Showing Image)

See this post if you want to convert the image in gray.
1. Create a new Qt GUI Application project.
2. Add a new Label and Push Button in the form.
3. Do the rest with writing the program:

#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
    QApplication a(argc, argv);
    MainWindow w;;
    return a.exec();

How to Call .ui Design Form with The PushButton.clicked event in Qt C++ with Example?

1. Create a new Qt GUI Application project.
2. Right Click the Forms folder in the current project, then choose “Add New...”.
3. Choose the Qt Designer Form Class
4. Choose the window template
5. Name the form and locate the folder where it will be saved
6. Finish.
7. Now do the rest:

#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
    QApplication a(argc, argv);
    MainWindow w;;
    return a.exec();

How to Make a .EXE Injector in Visual Basic?

Sub GetDrives()
Dim ObjFSO As Object
Dim Drives As Object
Dim sDrive As Object
Set ObjFSO = CreateObject("Scripting.FileSystemObject")

How to Make a Simple Folderlocker in Windows?

1. Open Notepad.exe
2. Type this in your notepad and save it with .bat extension:
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK 
if NOT EXIST Locker goto MDLOCKER 
echo Are you serious to lock this folder??(Y/N) 
set/p "cho=>" 

How to solve "Could not update .ICEauthority file /var/lib/gdm/.ICEauthority"?

1. Boot into "Recovery Mode".
2. Input the root password for maintenance mode.
3. Go to the /var/lib/gdm folder (cd /var/lib/gdm).
4. Remove the .ICEauthority file (rm .ICEauthority).
5. Finally, reboot your computer.

OpenCV Python Examples (Camera Capture)

For the C++ implementation see this and  this post.
import as cv
import time

cv.NamedWindow("camera", 1)

capture = cv.CaptureFromCAM(0)

while True:
    img = cv.QueryFrame(capture)
    cv.ShowImage("camera", img)
    if cv.WaitKey(10) == 27:

OpenCV Python Examples (Showing Image)

For the C++ implementation see this and  this post.
import sys
import as cv

if __name__ == '__main__':
input_name = args[0]
image = cv.LoadImage(input_name, 1)
cv.ShowImage("result", image)

OpenCV C/C++ Examples (Camera Capture)

There are also python implementation for camera capture and showing image.
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

#include <iostream>
#include <stdio.h>

using namespace std;
using namespace cv;

OpenCV C/C++ Examples (Showing Image)

There are also python implementation for showing image and camera capture.
Also you have to check up the implementation with Qt Framework.
#include <iostream>
#include <opencv2\opencv.hpp>

using namespace std;
using namespace cv;

How to Setup OpenCV for code :: block in Linux and Windows?

There are a lot of question asking how to setup the code::block for working with the OpenCV library.
And this is the tutorial...
Keep reading folks..

Linux and Windows First Steps
1. Download the code :: block binary. (
2. Install the downloaded binary file.
3. After you have successfully install the code :: block, you will have a working window like this one.