Skip to content

Tech For Talk

a blog site for programmers

  • Contact

Category: C++ Programming

Posted on December 23, 2020December 24, 2020

How to invoke Linux shell command from C++ program and collect data

This blog is about how to launch a Linux shell command inside a C++ program.

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...
Posted on May 8, 2020May 8, 2020

C++ notes: Shallow copy, overloaded assignment operator and deep copy explained

Operator overloading is one of the fundamental operation which come across often in a C++ program. It is bit cryptic in syntactical side as well as often a misunderstood topic amongst new programmer. I will try to explain this as a series of C++ related notes (as I like to call this) following this post.

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...
Posted on November 19, 2018November 19, 2018

How to create and run cppcheck executable from source code in linux machine (C++11 Static Analysis)

I do not have administrative rights on a linux server (openSuse Linux) I am working on right now. So installing anything is not an option…

Continue reading → How to create and run cppcheck executable from source code in linux machine (C++11 Static Analysis)

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...
Posted on January 30, 2018February 14, 2018

How to detect memory leak in c program using valgrind?

valgrind is a popular tool which can detect memory in run-time. This blog post discusses how to install, and run valgrind at linux command line to detect memory leak in a sample C program.

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...
Posted on January 22, 2018May 23, 2020

C++ notes: virtual function

This blog post discusses the polymorphism with the help of C++ language. The mechanism to implement polymorphism in C++ is known as Virtual Functions. With the help of a simple example I will try to explain the concept as clearly as I can.

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...
Posted on January 22, 2018February 14, 2018

Why do we need virtual functions in C++?

Why virtual functions are required in C++.

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...
Posted on August 18, 2016February 21, 2018

Browse Kernel code with Eclipse

This blog describes the steps to use eclipse as your linux kernel source code browser.

Share this:

  • Email
  • Tweet
  • Pocket
  • Print
  • Share on Tumblr

Like this:

Like Loading...

Recent Posts: Tech For Talk

Python notes: How to install a python module in Anaconda

How to invoke Linux shell command from C++ program and collect data

How to install Git Large File Storage on Windows 10

How to install virtualenv on Ubuntu 18.04

Configure your AWS account

Top Posts & Pages

  • How to add/compile a kernel module as a new buildroot package
  • How to access Ubuntu Linux Virtual Machine in NAT mode using FileZilla from Windows Host
  • How to create a new package under buildroot
  • Format a micro SD card using gparted utility
  • How to replace the Kernel image in NOOBS with your custom Kernel
  • How to pipe one bash command output to another within a python script
  • How to run an external program from a python script
  • Why do we need pthread_join?
  • How to modify kernel command line
  • How to invoke Linux shell command from C++ program and collect data
Follow Tech For Talk on WordPress.com

Copyright Notice

© [Vivek Bhadra] and [https://vivekbhadra.wordpress.com], [2017]. Unauthorized use and/or duplication of this material without express and written permission from this site’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to [Vivek Bhadra] and [https://vivekbhadra.wordpress.com] with appropriate and specific direction to the original content.

Website Powered by WordPress.com.
  • Contact
Cancel

 
Loading Comments...
Comment
    ×
    loading Cancel
    Post was not sent - check your email addresses!
    Email check failed, please try again
    Sorry, your blog cannot share posts by email.
    %d bloggers like this: