What do you want to save?
Add Code snippet
New code examples in category C++
-
Awgiedawgie 2022-03-27 07:50:09
tower of hanoi c++
//code by Soumyadeep Ghosh //insta : @soumyadepp //linked in: https://www.linkedin.com/in/soumyadeep-ghosh-90a1951b6/ #include <bits/stdc++.h> using namespace std; void toh(int n,char a,char b, char c) { if(n>0) { /*move n-1 disks... Add solution -
-
Phoenix Logan 2022-03-25 01:00:20
cosnt cast
const_cast<type&>(const_variable) Add solution -
Phoenix Logan 2022-03-25 00:20:07
clase estatica c++
class MyClass { public: static int var; //Declaración de una variable 'static' static void oneMethod(); //Declaración de un método 'static' }; int MyClass::var = 100; //Definición de la variable 'static' void MyClass::one... Add solution -
Lionel Aguero 2022-03-25 00:00:15
how to use array without size in c++
#include <iostream> int main() { //Create a user input size int size; std::cout << "Enter Size Of Array : "; std::cin >> size; //Create the array with the size the user input int *myArray = new int[size]; //Populate t... Add solution -
Awgiedawgie 2022-03-24 19:20:21
C++ cout iostream
#include <iostream> // for std::cout //std::cout outputs Strings, numbers and variables to the commandline int main() { int x = 1 std::cout << "Hello" << " world!\n" << x; /* outputs: Hello world! ... Add solution