fork download
  1. CStringW buff;
  2. while (file->ReadString(buff)) {
  3. buff.Trim();
  4. if (buff.IsEmpty()) {
  5. continue;
  6. }
  7. double a;
  8. WCHAR sep;
  9. int num = 0; // This one isn't really used just assigned a new value
  10. int hh1, mm1, ss1, ms1, hh2, mm2, ss2, ms2;
  11. WCHAR msStr1[5] = {0}, msStr2[5] = {0};
  12. int c = swscanf_s(buff, L"%d%c%d%c%d%4[^-] --> %d%c%d%c%d%4s\n",
  13. &hh1, &sep, sizeof(WCHAR), &mm1, &sep, sizeof(WCHAR),
  14. &ss1, msStr1, _countof(msStr1),
  15. &hh2, &sep, sizeof(WCHAR), &mm2, &sep, sizeof(WCHAR),
  16. &ss2, msStr2, _countof(msStr2));
  17.  
  18. ...
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘CStringW’ does not name a type
prog.cpp:2:1: error: expected unqualified-id before ‘while’
stdout
Standard output is empty