What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-04 20:13:02
opencv button
#include <opencv2\opencv.hpp> #include <iostream> using namespace cv; using namespace std; Mat3b canvas; string buttonText("Click me!"); string winName = "My cool GUI v0.1"; Rect button; void callBackFunc(int event, in... Add solution -
Python 2021-09-03 22:10:01
c++ to python code converter
#include <iostream> using namespace std; int main() { char gender; double bodyweight, wrist, waist, hip, forearm, B, bodyfat, bfPercentage, A1, A2, A3, A4, A5; bodyfat = bodyweight - B; bfPercentage = (bodyfat * 100) / bodyweight; ... Add solution -
C++ 2021-09-03 18:48:02
c++ first letter of string
#include <iostream> #include <string> int main() { string str{}; // creating string getline(cin, str);// using getline for user input std::cout << str; // output string namePerson if (str[0] >= 'a' || str[0] <= 'z') ... Add solution -
C++ 2021-09-03 15:43:02
Solution::longestPalindrome(string A)
123456789101112131415161718192021222324252627282930313233343536373839404142string Solution::longestPalindrome(string A) { string str; int n = A.length(); int first = 1; int second = 0; for(int i = n-1; i >= 0; i--) { int low = i... Add solution