What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-08-29 02:47:01
c++ calculator script
#include <iostream> using namespace std; int main() { cout << "Welcome to the Calculator, write :cancel: to cancel the calculator\n"; string cancel; while(cancel != "cancel") { int number1 = 0; int number2 =... Add solution -
C++ 2021-08-28 10:01:01
print all file names in directory cpp
#include <string> #include <iostream> #include <filesystem> namespace fs = std::filesystem; int main() { std::string path = "/path/to/directory"; for (const auto & entry : fs::directory_iterator(path)) std:... Add solution -
Other 2021-08-27 21:48:01
boost asio ignore header
int do_get(std::string &host_,std::string &port_, std::string url_path,std::ostream &out_,std::vector<std::string> &headers, unsigned int timeout) { try{ using namespace boost::asio::ip; tcp::iostream request_stre... Add solution -
C++ 2021-08-27 19:12:02
get files in directory c++
#include <string> #include <iostream> #include <filesystem> namespace fs = std::filesystem; int main() { std::string path = "/path/to/directory"; for (const auto & entry : fs::directory_iterator(path)) std:... Add solution -
C++ 2021-08-27 10:23:02
print hello world on c++
/*These are comments. They are used to assist the programmer. They do not affect the program in any way. Write whatever you want*/ #include <iostream> //preprocessor directive (use input/output) using namespace std; //use standard definitions //Th... Add solution -
C++ 2021-08-26 11:02:03
c++ power of a number
#include <iostream> #include <cmath> using namespace std; int main () { double base, exponent, result; base = 3.4; exponent = 4.4; result = pow(base, exponent); cout << base << "^" << exponent << &qu... Add solution