What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-01-28 16:40:53
find a member variable in a vector of objects cpp
//Using a lambda function (only C++11 or newer) std::vector<Type> v = ....; std::string myString = ....; auto it = find_if(v.begin(), v.end(), [&myString](const Type& obj) {return obj.getName() == myString;}) if (it != v.end()) { // found... Add solution -
Other 2022-01-27 09:55:25
what programming language should i learn first
Depends on what you want to do. You can do whatever with whatever. Here is a list :- 1. Web developement - HTML,CSS,JS,Golang 2. App developement - Java,Kotlin,Dart 3. Game Developement - c,C++,C# 4. Computer Graphics - Opengl,Webgl 5. Scientific Computin... Add solution -
C++ 2022-01-26 05:51:41
what is a .cpp file
A .CPP file is a file that contains C++ code. Add solution -
Other 2022-01-24 05:20:37
PntIDNumbers
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <sstream> #define MAX 200 using namespace std; // Function receive address of the first element of an array // Reads file contents and store... Add solution -
C++ 2022-01-24 03:50:27
how to compare the biggest node with the same level BST node c++
// C++ program to find largest // value on each level of binary tree. #include <bits/stdc++.h> using namespace std; /* A binary tree node has data, pointer to left child and a pointer to right child */ struct Node { int val; struct Node *left, *r... Add solution -
C++ 2022-01-23 10:55:18
calculator with c++
// This is for beginners #include <iostream> using namespace std; void greetings() { cout << "welcome to the calculator made in c++ :D\n"; } void instructions() { cout << "Here is the operators you can use + - ... Add solution -
C++ 2022-01-23 01:21:25
which version c++ single file in sublime is
{ "cmd":["bash", "-c", "g++ -std=c++14 -Wall '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",... Add solution