Category Archives: All

All posts

error: ‘for’ loop initial declarations are only allowed in C99 mode

Some errors you might encounter when you compile with code::blocks.

The one of many reason is you have written a code like:

To solve this error , just write code like this:

Generate an MD5 hash under linux .

I will present two examples to generate an md5 hash from an input string. The first example uses openssl.

The second example uses md5sum.

This is all.

error: ‘memset’ was not declared in this scope

If you receive: error: ‘memset’ was not declared in this scope

Fix it by including: #include <cstring> in the source of C++file. If you use C than use : #include <string.h> .

How to display memory in real time on Linux systems.

To display information about memory, we use the following command:

But if we want the data displayed in terminal to be maintained, we will use:

The combination of two orders, will solve our problem. Here is the final command:

Here is the displayed result: It will display used and free memory every… Read More »