fork download
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <cstring>
  4. using namespace std;
  5. int main(void)
  6. {
  7. setlocale(LC_ALL, "");
  8. char text[300];
  9. gets_s(text);
  10. for (unsigned int i = 0; i < (unsigned int)strlen(text); i++)
  11. {
  12. if (isdigit(text[i]))
  13. {
  14. cout << text[i];
  15.  
  16. if (!isdigit(text[i + 1]))
  17. {
  18. cout << " ";
  19. }
  20. }
  21.  
  22. }
  23. cout << endl;
  24. system("pause");
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
ndjcndkjnvkjsdnvjk3242342mnklmnl234234
compilation info
prog.cpp:1:20: fatal error: stdafx.h: No such file or directory
 #include "stdafx.h"
                    ^
compilation terminated.
stdout
Standard output is empty