×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

C++

C++ is a powerful, object oriented and early programming language which is derived from C. It is widely used in production systems and gives huge control to the programmer.

C++

RAII in C++

In this article, we will discuss RAII or Resource Acquisition Is Initialization approach in C++ with help of an example.

Reshma Patil
C++

Undefined reference to std::cout [FIXED]

In this article, we have present the reason behind the error "Undefined reference to std::cout" and different approaches to fix this error.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Optimized Input Output I/O in C++

In this article, we have presented how to optimize input and output I/O in C++. This is critical as input and output consume the majority of the execution time and is critical in time critical applications and in competitive programming contests.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Optimize C++ Code [30 techniques]

In this article, we have presented over 30 techniques which you can use to optimize your C++ code to make it perform optimally and pass time restrictions in Competitive Contests.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Set array to 0 in C++ [5 methods]

In this article, we have presented different ways using which one can set all elements in an array to 0 in C++. We have presented an assembly level approach (advanced) as well.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Convert char* to uint8_t [2 methods]

In this article, we have covered different approaches to convert char* to uint8_t.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Convert int to uint8_t

In this article, we have presented how to convert int to uint8_t considering explicit casting and overflow of uint8_t.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

uint8_t cannot be printed

In this article, we have explored the reason uint8_t cannot be printed with std::cout and multiple fixes that can be used to print uint8_t values.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Fastest and Smallest Fixed width integer types in C++ (int_least8_t, int_fast8_t, ...)

In this article, we are going to learn about the Fastest and Smallest types of Fixed width integer types in C++ such as int_least8_t, int_fast8_t and more.

Reshma Patil
C++

Print boolean in C++ [using std::boolalpha and std::noboolalpha]

In this article, we have presented how to print boolean values in C++ (as integer and text) and explored the concepts of std::boolalpha and std::noboolalpha.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Convert std::vector<float> to float*

In this article, we have explored 2 different approaches to convert std::vector to float* in C++.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR in C++

In this article, we are going to learn about the TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR in C++ along with code examples.

Reshma Patil
C++

cout is not a member of std [FIXED]

In this article, we have explored the reason behind the error "cout is not a member of std" and 2 fixes to resolve this compilation error with C++ code.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

[FIXED] /usr/lib/libstdc++.so.6: version 'GLIBCXX_3.4.16' not found

In this article, we have explored the cause of the error "/usr/lib/libstdc++.so.6: version 'GLIBCXX_3.4.16' not found" and presented 3 fixes to resolve this runtime error.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Different ways to pause a program in C++

In this article, we are going to learn about the different ways to pause a program in C++. With the help of this method or function, you will be able to pause any C++ program during execution.

Reshma Patil
C++

Convert uint8_t* to char* in C++

In this article, we have presented how to convert an array of uint8_t (uint8_t*) to an array of char (char*).

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Undefined reference to pthread_create [FIXED]

In this article, we have explored the reason behind the error "Undefined reference to pthread_create" and presented two fixes in the compilation command to fix this compilation error.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Print double value with full precision in C++ [7 methods]

In this article, we have presented several methods to print double or float values with desired precision in C++ using cout.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Convert array of uint8_t (uint8_t*) to string in C++ [3 methods]

In this article, we have presented different ways to convert an array of uint8_t (uint8_t*) to string in C++.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

Extract integers from string and store in vector using C++

In this article we will learn how to extract integers from a string and store it in a vector using C++.

Cara Roño Cara Roño
C++

Different ways to terminate a program in C++

In this article, we were going to learn about the different ways with which we will be able to terminate the program at any point of the execution of the C++ program.

SUBHRAJIT DHAR
C++

Ways to iterate over Vector in C++ STL

In this article, we have explored different ways to iterate over Vector in C++ STL. These include techniques like indexing, iterators, range based for loop and much more.

Harsh Dawar
C++

Build GCC from source [GCC v12.2.0]

In this article, we have presented the steps to build any version of GCC from source and install it.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

[FIXED] error: 'vector' is not a member of 'std'

In this article, we have explored the compilation error "'vector' is not a member of 'std'" and presented the fix to resolve it.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

'cout' was not declared in this scope [FIXED]

In this article, we have explored the reason behind the compilation error "cout was not declared in this scope" and how to fix it.

Geoffrey Ziskovin Geoffrey Ziskovin
OpenGenus IQ © 2025 All rights reserved â„¢
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship