Category: implementation

Implementation of User-Defined data using Struct in C++

Implementation of User-Defined data using Struct in C++

There are two kind group of data type that needed to reserve amount memory, primitive data and user-defined data. Primitive data just like Int (4 byte), Char (1 byte), Double (8 byte) and so on. But what about we construct our custom data types, like a new data type that contains Int and Char? Then …

+ Read More

How to doing memory debugging and profiling in C with Valgrind

How to doing memory debugging and profiling in C with Valgrind

When we playing with C, memory debugging and profiling is a basic need to “break” and doing “analysis” to our C program. Valgrind is a good tools to help us doing memory debugging and profiling. In this case, I use Ubuntu 12.04. First, we need to install Valgrind by : 1sudo apt-get install valgrind Next, …

+ Read More

Using SublimeText for compiling and runing individual cpp files

Using SublimeText for compiling and runing individual cpp files

I prefer using SublimeText 2 for running individual files rather Eclipse. It’s pretty easy and quick. First, you need to download SublimeText 2 and install it your system. Then second step, make sure you have G++ already installed in your system. Ready to go? First, let we create some helloworld.cpp files from SublimeText 2: 1234567#include …

+ Read More