# C++ Programming Code Examples

## C++ > Strings Code Examples

### concatenate two strings in c++ without using strcat

Generating Random Numbers by Multiply -
C++ Program to generate Random Numbers using Multiply with 'Carry' method. multiply-with-carry ("MWC") is a method invented by 'George Marsaglia' for generating sequences

Reference Operator Dereference Operator -
The pointer is a C++ programming data type whose value refers directly to (or "points to") another value stored elsewhere in computer memory using its address. Pointer examples

C++ Decrement -- Operator Overloadings -
Increment ++ and decrements -- operator are overloaded in best possible way, increase the value of a data member by 1 if "++" operator operates on an object and 'decrease' value of

C Checking Armstrong Number of n digits -
Check Armstrong Number of n digits. In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. Example 407 = 4*4*4 + 0*0*0 + 7*7*7

Check Even or Odd using Bitwise Operator -
C Language program code sample input any number and check whether the given number is even or odd using bitwise operator. How to check whether a number is even or odd using

Enter Week Number & Prints Day of Week -
C language program input week number(1-7) & print the corresponding day of week name using if else. Input week day number. Store it in some variable say week. And print Monday

C++ Solving The Dominating Set Problem -
Problem takes 'E edges' as input and outputs dominant set of the graph, implementing the following heuristic. Dominant set of a graph's to find, a set of vertices S, such that for every

C Programming Code Use Goto Statement -
The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won't be easy to trace, hence