C++ Programming
- Write a C++ Program to print a welcome text in a separate line.
- Write a Program in C++ to add two numbers.
- C++ program for addition of two numbers using functions.
- Add two numbers in C++ using class.
- Addition of two numbers using call by reference in C++
- C++ program to write a program to add two numbers using call by value.
- Swapping of two numbers in C++ without using third variable.
- Swap two numbers in C++ using function.
- C++ program to swap two numbers using class.
- C++ program to swap two numbers using call by value.
- C++ program to swap two numbers using pointers.
- Write a program to swap private data members of two classes using friend function.
- write a program to add data objects of two different classes using friend function.
- Threading in C++.
- C++ thread lambda
- C++ thread lambda with parameter
- C++ thread lambda pass by reference
- Singleton C++ example
Determine the type of each of the following literals. Explain the differences among the literals in each of the four examples: (a) ’a’, L’a’, "a", L"a" (b) 10, 10u, 10L, 10uL, 012, 0xC (c) 3.14, 3.14f, 3.14L (d) 10, 10u, 10., 10e-2
(a)
’a’ : character literal
L’a’ : wide character literal
“a” : string literal
L”a” : string wide character literal
(b)
10 : decimal
10u : unsigned decimal
10L : long decimal
10uL: unsigned long decimal
012 :octal
0xC : hexadecimal
(c) 3.14 : double
3.14f : float
3.14L : long double
(d) 10 : decimal
10u : unsigned decimal
10. : double
10e-2 : double