What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-03 20:39:05
getline trong c++
//getline allows for multi word input including spaces ex. "Jim Barens" #include <iostream> #include <string> int main() { string namePerson{}; // creating string getline(cin, namePerson);// using getline for user input s... Add solution -
Java 2021-09-18 17:33:03
convert python to java online
#include <bits/stdc++.h> using namespace std; int main() { int m,ans=INT_MAX,I=-1,J=-1; cin>>m; vector<vector<int>> mat(m,vector<int>()); cin.ignore(); for(int i=0;i<m;i++) { string s; getline(cin,s);... Add solution -
Java 2021-09-08 03:32:02
convert code python to java
#include <bits/stdc++.h> using namespace std; int main() { int m,ans=INT_MAX,I=-1,J=-1; cin>>m; vector<vector<int>> mat(m,vector<int>()); cin.ignore(); for(int i=0;i<m;i++) { string s; getline(cin,s);... 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
Best helpers
Ranking is empty