Covariance and Contravariance are concepts that come up often as you go deeper into generic programming. While designing a language that su...
CppCon'15 and Silicon Valley Code Camp Presentations
In last couple of months I did a couple of presentations about my recent projects in C++. Session videos, slides, and code for all the prese...
search a character in a string strchr c++ example
strchr is a string class function which helps to find a character in a string. It takes two parameters first is string and second is chara...
strncat function c++ example source code
strncat function used to concatenate two strings upto specified number of characters . It takes 3 parameters first and second is string thir...
string function strcat c++ example
Strcat function comes from the string class with string.h header file . It takes two strings as parameters and return second string append t...
concatenate two strings in c++ without using strcat
Write a C++ program which take two strings as input from user and concatenate two strings without using the string class function strcat() ....
count vowels in a string c++
Write a C++ program which counts numbers of vowels in a given string and tell every index where a vowel is found. This c++ example covers fo...
File opening modes and file pointer c tutorial
This C programming tutorial explains following concepts Open a c file and what are the opening modes What is a File pointer Close a c file R...
Stream types and file makers bof eof and newline c programming tutorial
This C programming tutorial covers two topics What is stream and its types in c programming How to use file makers EOF, BOF and newline Wha...
How strings are stored and retrieved in C language
String Handling in C programming with common functions String is a combination of characters and it is enclosed in double quotes Character a...
copy data from one text file to another c source code
Write a c/c++ program which reads one text file and writes its data to another file. Hint use functions gets() and fputc(). Concept used in...
Append data into text file c programming source code
Write a C/C++ program to append a file in which user will enter the file name to open it then enters data to append it. Program should termi...
write data into a text file c++ program
Write a C++ program in which user will continuously enter data into a text file and program should terminate when user press ESC key. Keep t...
Fun with Lambdas: C++14 Style (part 4)
This is part 4 in the series of Fun with Lambdas: C++14 Style . The previous posts are part 3 , part 2 , and part 1 . C++14 has a number of...