online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
const CHAR_EQUAL:char = '='; fn repeatChar(ch: char, length:usize) -> String { return ( ch.to_string() ).repeat(length); } fn main() { let header:String; let marker:String; let length:usize; //get header header = "Book Store".to_string(); //count number of characters // s.chars().count() length = header.chars().count(); //get marker marker = repeatChar(CHAR_EQUAL, length); //display header println!( "{0}" , header ); //display marker println!( "{0}" , marker ); }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



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