fork download
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4.  
  5. int main() {
  6. char buff[100] = { 0 } ;
  7. std::strcpy ( buff , "my string" ) ;
  8. std::cout << buff << std::endl ;
  9. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
my string