online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
<!DOCTYPE html> <html> <head> <style> @import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap'); :root { font-family: Ubuntu, Arial, sans-serif, serif, monospace; } h1 { text-align: center; font-size: 40px; } .div-hidden { /*display: none;*/ } p { font-size: 16px; } .code { font-size: 14px; background-color: #000000; color: #FFFFFF; white-space: pre; font-family: monospace; padding: 5px; padding-left: 19px; border-radius: 10px; width: 75%; align-self: center; position: absolute; left: 12%; } </style> </head> <body> <div id="home" class="home"> <h1>Home</h1> <p><abbr title="Python Packages Made By Zach">PPMBZ</abbr> is a site where Zach shares the many different Python packages that he makes.</p> </div> <div id="color-py" class="div-hidden color py"> <h1>Colored Text</h1> <p> Colored Text is a simple, lightweight Python package used to style text in the console. </p> <div id="color-py-code" class="code"> </div> </div> <script> const color_py_code = ` class Foreground: RESET = "\\033[0m" RED = "\\033[38;2;255;0;0m" REDORANGE = "\\033[38;2;255;82;0m" ORANGE = "\\033[38;2;255;165;0m" ORANGEYELLOW = "\\033[38;2;255;210;0m" YELLOW = "\\033[38;2;255;255;0m" YELLOWGREEN = "\\033[38;2;180;255;0m" GREEN = "\\033[38;2;0;255;0m" GREENBLUE = "\\033[38;2;0;180;180m" BLUE = "\\033[38;2;0;0;255m" BLUEPURPLE = "\\033[38;2;75;0;202m" PURPLE = "\\033[38;2;150;0;150m" BOLD = "\\033[38;2;255;255;255;1m" ITALIC = "\\033[38;2;255;255;255;3m" UNDERLINE = "\\033[38;2;255;255;255;4m" REVERSE = "\\033[38;2;255;255;255;7m" DIM = "\\033[38;2;255;255;255;2m" def customrgb(rgb): r, g, b = rgb return f"\\033[38;2;{r};{g};{b}m" def customhex(hexcode): hexcode = str(hexcode) if hexcode[0] == "#": hexcode = hexcode[1:] r, g, b = hexcode[0:2], hexcode[2:4], hexcode[4:6] r, g, b = int(hex(int(r, 16)), 16), int(hex(int(g, 16)), 16), int(hex(int(b, 16)), 16) return f"\\033[38;2;{r};{g};{b}m" class Background: RESET = "\\033[0m" RED = "\\033[48;2;255;0;0m" REDORANGE = "\\033[48;2;255;82;0m" ORANGE = "\\033[48;2;255;165;0m" ORANGEYELLOW = "\\033[48;2;255;210;0m" YELLOW = "\\033[48;2;255;255;0m" YELLOWGREEN = "\\033[48;2;180;255;0m" GREEN = "\\033[48;2;0;255;0m" GREENBLUE = "\\033[48;2;0;180;180m" BLUE = "\\033[48;2;0;0;255m" BLUEPURPLE = "\\033[48;2;75;0;202m" PURPLE = "\\033[48;2;150;0;150m" REVERSE = "\\033[48;2;255;255;255;7m" def customrgb(rgb): r, g, b = rgb return f"\\033[48;2;{r};{g};{b}m" def customhex(hexcode): hexcode = str(hexcode) if hexcode[0] == "#": hexcode = hexcode[1:] r, g, b = hexcode[0:2], hexcode[2:4], hexcode[4:6] r, g, b = int(hex(int(r, 16)), 16), int(hex(int(g, 16)), 16), int(hex(int(b, 16)), 16) return f"\\033[48;2;{r};{g};{b}m"`; document.getElementById("color-py-code").innerText = color_py_code; </script> </body> </html>

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