Currently browsing category

C++

A Brief History of C++

A Brief History of C++

Nowadays computers are able to perform many different tasks, from simple mathematical operations to sophisticated animated simulations. But the computer does not create these tasks by itself; these are performed following a series of predefined instructions called computer languages. A computer language is a set of instructions and a series …

c-cpp

Assigning Values to An Array After Declaration

Once an array has been declared, it is good to know less tedious way of assigning values to its members than the following: iaMyArray[0]=8; iaMyArray[1]=3; iaMyArray[2]=4; iaMyArray[3]=0; iaMyArray[4]=0; iaMyArray[5]=1; iaMyArray[6]=8; iaMyArray[7]=8; You can initialize arrays on their declaration but when you want your array to be initialised differently according to …

arm_logo

Why am I getting a FLEXlm -15 license error, even though my license server is running?

Answer If you get the following error message on your client when you try to use a licensed feature, even though your license server has definitely been started, then the communication between the server and client has probably been blocked. “<command line>”: Error: A1439E: Cannot obtain license for “<featurename>” with license …

assert

assert_param()

The objective of the above function is to check if critical condition is met. If not it would use a standard function to print out where assertion fail. This is very useful. You can turn the assertion off after thorough testing. 1. Uncomment USE_FULL_ASSERT in stm32f10x_conf.h /* Uncomment the line below …

C++- Programming

Basic concepts of OOPS and Structure of C++ program

In this tutorial you will learn about Objects, Classes, Inheritance, Data Abstraction, Data Encapsulation, Polymorphism, Overloading, and Reusability. Before starting to learn C++ it is essential to have a basic knowledge of the concepts of Object oriented programming. Some of the important object oriented features are namely: Objects Classes Inheritance Data Abstraction Data …

Tree Search using C/C++

In the binary tree used to store a file, all the left descendants of a node with key key have keys that are less than key, and all the right descendants have keys that are greater than or equal to key. The inorder traversal of such a binary tree yields …

Unix/Linux System V IPC

Introduction System V IPC is meant to provide and entire IPC mechanism. As such, it is more heavyweight than BSD mmap, and provides three methods of communication: message queues, semaphores, and shared segments. Like BSD mmap, System V IPC uses files to identify shared segments. Unlike BSD, System V uses …

How to do Multithreading using C/C++

Multithreading is necessary for those programs which need to run two or more processes within a single program simultaneously. For example: when you play a game( say Mario)  in a computer, then you see two or more enemies are moving at the same time  or in case of Football game …

Unmanaged to Managed Type Translation Table

Unmanaged to Managed type translation table: C/C++ C# HANDLE, LPDWORD, LPVOID, void* IntPtr LPCTSTR, LPCTSTR, LPSTR, char* String [in], StringBuilder [in, out] const char*, Wchar_t*, LPWSTR String [in], StringBuilder [in, out] DWORD, unsigned long, Ulong UInt32, [MarshalAs(UnmanagedType.U4)] bool bool LP<struct> [In] ref <struct> SIZE_T uint LPDWORD out uint LPTSTR [Out] …

C++, VS C++, CLI and WIN32

C++ is a programming language. It’s compiled, which means you need a compiler to translate the source code into an executable program. VS C++ is a compiler from Microsoft which runs on MS Windows, and compiles C++ code into executable programs for MS Windows operating system. There are various kinds …

SPI : Connecting Three Slaves To a Master Microcontroller Using ATmega16

  Introduction to SPI: SPI stands for Serial Peripheral Interface, it allows high-speed synchronous data transfer between the ATmega16 and peripheral devices (or between several AVR devices). It has the following properties: Full-duplex Three-wire Synchronous Data Transfer Master and Slave Operation How It Works: The Master initiates the communication cycle when …