# Console

# Description

The Console namespace provides functionality related to console output.

# How to Use

// Clear the console
Console::Clear();

// Output text
Console::Add("Hello World!");

// Output formatted text
Console::Add("The value is %d", 100);

# Clear

void Clear()

Clears all output content on the console.

Console::Clear();

# Add

void Add(const char* fmt, ...)

Adds text output to the console, supporting formatted strings.

Parameter Type Description
fmt const char* Formatted string, supporting printf-style format specifiers
... Variable arguments Parameters corresponding to format specifiers in fmt
// Output simple text
Console::Add("Hello World!");

// Output formatted text
int value = 100;
const char* name = "Noble";
Console::Add("The value is %d and the name is %s", value, name);

// Output floating point number
float position = 123.456f;
Console::Add("Current position: %.2f", position);