Categories
C/C++ Java

Be native with Java Native Interface

Java Native Interface (JNI) is a foreign function framework designed to call native applications. In other words, via JNI one can invoke a function written in C or C++ and vice versa. In this article, we discuss how to use JNI and interface between a C program and a Java program. So the Java program […]

Categories
C/C++ Java

Cloning ls command in C and Java programming languages

Long time ago I wanted to write one file manager as a fun project in either C or Java programming languages but unfortunately due to some issues and having no free time, the project was unsuccessful and I had to give it up in the middle of doing it. Although, I could not write my […]

Categories
C/C++

Simple encryption algorithm

Few days ago, I was looking for one encryption algorithm for testing and fun purposes. In fact, there are plenty of encryption algorithms are available which some could be found in the form of ready made libraries for various programming languages. For instance, DSA, RSA, SHA-1, MD5 and so on. But I was looking for […]

Categories
C/C++

Dynamic memory allocation in C

It happens sometimes you want to write a program that might need to use more memory for holding data at the run time and you cannot predict precisely how much memory you need at the programming time. For instance, in the simplest way you want to ask user to enter N numbers and then sort […]

Categories
C/C++

Simple C++ challenge for the beginners

Last night, I had spare time so as usual I started doing programming with C++. I decided to combine two really simple star pyramid issues to make more complex issue to make little challenge for myself. Here is the following image that I wanted to make with out using any graphic libraries such as Ncurses […]

Categories
C/C++

Socket programming in Linux with GCC

Linux is the paradise of programmers. It facilitates programmers with the numerous tools and flexibility. Programmers easily can develop and test their code in Linux freely. Linux has many compilers and programming languages which majority of them are freely available with good documentation, by contrast of Windows. This post demonstrates of how to write simple […]

Exit mobile version