What do you want to save?
Add Code snippet
New code examples in category C++
-
Ammar Alammar 2021-08-30 00:06:02
find all occurrences of a substring in a string c++
#include <string> #include <iostream> using namespace std; int main() { string s("hello hello"); int count = 0; size_t nPos = s.find("hello", 0); // first occurrence while(nPos != string::npos) { ... Add solution -
Stephane Rolland 2021-08-29 22:05:02
opencv combine video
import cv2 import numpy as np #loads images and gets data img = cv2.imread("img.png") h,w,_ = img.shape # creates the resulting image with double the size and 3 channels output = np.zeros((h * 2, w * 2, 3), dtype="uint8") # cop... Add solution -
Avital S. 2021-08-29 21:15:02
c++ get ascii value of char
//It is almost know to everybody , how to print an ASCII code of a character. #include <bits/stdc++.h> using namespace std; int main() { int var=65; cout<<(char)var<<endl; //By this way, you can get the character with that mentioned AS... Add solution -
Anna Furtado 2021-08-29 20:21:02
Register code c++
#include <iostream> #include <string> #include <stdlib.h> #include <fstream> using namespace std; void mainmenu(); int choice; bool cinfail; int confirmation; string username, password, password2; void writetofile(string u... Add solution
Best helpers
Tim7823
+5
Bumba Clat
+5
Relle
+5
Stephen Raj
+5
Bryzzeij
+5
Jihed gasmi
+5
Xiaoyaolnm
+5
Dee doo
+5