online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/// ... ///----------------------------------------------------------------------------| /// https://www.cyberforum.ru/blogs/622334/5875.html#comments ///----------------------------------------------------------------------------| /// Стенд для замера пииисек: ... ///----------------------------------------------------------------------------: #include <stdio.h> #include <time.h> #include <string> #include <format> size_t CoderHuligan() { size_t nw = 0; std::string fileDest { std::format("{}{}{}", "1234567890+" , "0987654321" , ".png") }; nw = fileDest.size(); return nw; } ///----------------------------------------------------------------------------| /// my. ///----------------------------------------------------------------------------: size_t my() { size_t nw = 0; std::string fileDest { "1234567890+"}; fileDest += "0987654321"; fileDest += ".png"; nw = fileDest.size(); return nw; } #define _2 int main() { time_t t0, t1; size_t n; long dt; t0 = time(NULL); for(int i = 0; i < 10'000'000; ++i) { #ifdef _1 n = CoderHuligan(); #endif #ifdef _2 n = my(); #endif } t1 = time(NULL); dt = t1 - t0; printf("%ld \n", dt); //_getch(); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue