online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <memory> class NamedBuffer { public: NamedBuffer(char const *name, uint32_t size) : name(name) , size(size) , buffer(std::make_unique<uint8_t[]>(size)) { this->info(); } void info() { std::cout << "name : " << this->name << '\n'; std::cout << "size : " << this->size << '\n'; } // ... private: std::string name; uint32_t size; std::unique_ptr<uint8_t[]> buffer; // ... }; int main() { constexpr char const *name = "TestBuffer"; constexpr uint32_t size = 1024; NamedBuffer nb(name, size); }

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