All About C++
All About C++
1. Setting up C++
Development Environment
2. Writing first C++ program(Practice)
3. void main or main()
4. C++ Data Types(Practice)
5. Basic Input/Output
6. Response on exceeding valid range of data types
7. C++ Preprocessors
8. Operators in C++(Practice)
9. Loops (Practice)
10. Decision Making in C++(Practice)
11. Execute both if and else simultaneously
12. How to compile 32-bit program on 64-bit gcc in C and C++
13. Switch statement in C++(Practice)
14. Functions in C++(Practice)
15. Arrays in C/C++(Practice)
16. Strings in C++(Practice)
17. Pointers in C++(Practice)
18. References in C++
19. Introduction to OOP in C++
C vs C++
1. C program that won’t compile in C++
2. Undefined Behaviour in C and C++
3. Name Mangling and extern “C” in C++
4. void * in C vs C++
5. Program that produces different results
in C and C++
6. Type difference of character literals in C vs C++
7. Difference between Structures in C and C++
C++ vs Java
1. Inheritance in C++ vs Java
2. static keyword in C++ vs Java
3. default virtual behavior in C++ vs Java
4. Exception Handling in C++ vs Java
5. Foreach in C++ vs Java
6. Templates in C++ vs Generics in Java
7. Foreach in C++ vs Java
8. Floating Point Operations & Associativity in C, C++ and Java
9. Similarities between Java and C++
Input and output
1. I/O Redirection in C++
2. Clearing The Input Buffer
3. Basic Input/Output(Practice)
4. cout << endl vs cout << “\n” in C++
5. Problem with scanf() when there is fgets()/gets()/scanf() after it
6. How to use getline() in C++ when there are blank lines in input?
7. scanf() and fscanf() in C – Simple Yet Poweful
8. Using return value of cin to take unknown number of inputs in C++
9. How to change the output of printf() in main() ?
10. Implementation of a Falling Matrix
11. What does buffer flush means in C++ ?
12. kbhit in C language
13. Code to generate the map of India
Operators
1. Operators in C++
2. Unary operators in C/C++
3. Conditionally assign a value without
using conditional and arithmetic operators
4. Execution of printf with ++ operators
5. Set a variable without using
Arithmetic, Relational or Conditional Operator
6. Scope Resolution Operator vs this pointer
7. Pre-increment (or pre-decrement)
8. new and delete operator in C++
9. CHAR_BIT in C
10. Casting operators| Set 1 (const_cast)
Arrays and Strings
1. Arrays in C/C++
2. Array of Strings
3. Multidimensional arrays in C/C++
4. Raw string literal
5. Counts of distinct consecutive sub-string
of length two
6. Converting string to number and vice-versa
7. Find size of array in C/C++ without using sizeof
8. How to quickly reverse a string in C++?
9. Tokenizing a string in C++
10. Getline() function and character array
11. Convert string to char array in C++
12. C++ string class and its applications , Set 2
13. How to create a dynamic 2D array inside a class in C++ ?
14. Lexicographically next permutation
15. Print size of array parameter
16. Split a string in C/C++, Python and Java
17. Stringstream in C++ and its applications
18. Strchr() function in C/C++
19. Isspace() in C/C++ and its application to count whitespace characters
20. Char* vs std:string vs char[] in C++
21. Std::lexicographical_compare() in C++STL
22. Std::string::at in C++
23. Std::substr() in C/C++
24. std::stol() and std::stoll() functions in C++
25. Extract all integers from string in C++
26. Strchr() function in C++ and its applications
27. Strcat() vs strncat() in C++
28. Strncat() function in C/C++
29. Strpbrk() in C