Qt Error qmetatype.h

I want to add “C” header to C++ header (Qt). The contents of my C++ header is : #include ... //c header #include ... //c header #include ... //c++/Qt header #include ... //c++/Qt header #include ... //c++/Qt header when I try to compile this code, I have error message : /usr/include/qt4/QtCore/qmetatype.h:53:2: error: #error qmetatype.h must

wordpress change font color and format

Are you confused to change font color at your wordpress site? You can use HTML tag in wordpress visual editor to change your font color. But this method is hard for me with some HTML knowledge. To change font color and format, you can use wordpress visual editor. You can activate this tab with select

C++ create 2D array

How to create dynamic 2d array in C++ ? This is a code to create 2D array in C++ : float **ArrayLib::create2Array_float(int row, int col) { int i; float **out; out = new float*[row]; out[0] = new float[row*col]; for(i=1; i<row; i++) { out[i] = out[i-1] + col; } return out; } If you want to

C/C++ Create Directory

We can type “mkdir dirname” command at konsole to create dirname directory. If we can create a directory from C/C++ we can use command mkdir(path, mode) to create directory. Example : #include <sys/stat.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> main() { if(mkdir("pathname",0777)==-1)//creating a directory { printf("error create directory\n"); exit(1); } else printf("success create directory\n"); }