What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-29 10:30:12
how to cout in c++
#include <iostream> using namespace std; int main() { int a,b; char str[] = "Hello Programmers"; /* Single insertion operator */ cout << "Enter 2 numbers - "; cin >> a >> b; cout << str; cout &l... Add solution -
C++ 2021-10-27 11:18:03
insertion overloading in c++
//<<<<<<<<<<<<<<<<<<<<<<<<<<<insertion operator overloading<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... Add solution -
C++ 2021-10-03 07:21:05
how to merge string array in C++
For string concatenation in C++, you should use the + operator. std::string nametext = "Your name is " + name; where operator + serves to concatenate strings. nametext is an std::string but these do not have the stream insertion operator ( <&... Add solution -
C++ 2021-09-01 06:33:02
C++ how to save data about a object
#include <fstream> #include <iostream> class Something { public: int weight; int size; // Insertion operator friend std::ostream& operator<<(std::ostream& os, const Something& s) { // write out individual members of ... Add solution
Best helpers
Moo-Juice
+5
Jeff Ava
+5
Pharma
+5
PixelZerg
+5
Andrew Lowe
+5
Akiman Barwa
+5
A. Pettit
+5
JohnDoe
+5
Mahnaz
+5
Silver Rain
+5
Tralston
+5
Thruston
+5
Catimann
+5