fork download
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. int main() {
  5. std::string line = "#define ZERO_CHAR 48 // can't use '0'";
  6. std::string symbol(256, '\0');
  7. int number=0;
  8. int tokens = sscanf("#define %255s %d", line.c_str(), &symbol[0], &number);
  9. printf("%d", tokens);
  10. }
Success #stdin #stdout 0.02s 2812KB
stdin
Standard input is empty
stdout
Standard output is empty