fork download
  1. String temp = ""; // временная строка
  2. for(int s = 0; s < Memo1->Lines->Count; s++) // цикл пока не кончатся строки в Мемо1
  3. {
  4. temp = Memo1->Lines->Strings[s]; // записываем во временную строку
  5. if(temp.Length() > 0) // если длина строки 0 то ни чего с ней не делать
  6. {
  7. for(int i = 1; i <= temp.Length(); i++) // цикл пока есть символы во временной строке
  8. {
  9. temp[i] = (BYTE)temp[i] - 1; // подменяем код символа
  10. }
  11. }
  12. Memo2->Lines->Add(temp); // записываем в Мемо2
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:5: error: ‘String’ does not name a type
     String temp = ""; // временная строка
     ^~~~~~
prog.cpp:2:5: error: expected unqualified-id before ‘for’
     for(int s = 0; s < Memo1->Lines->Count; s++) // цикл пока не кончатся строки в Мемо1
     ^~~
prog.cpp:2:20: error: ‘s’ does not name a type
     for(int s = 0; s < Memo1->Lines->Count; s++) // цикл пока не кончатся строки в Мемо1
                    ^
prog.cpp:2:45: error: ‘s’ does not name a type
     for(int s = 0; s < Memo1->Lines->Count; s++) // цикл пока не кончатся строки в Мемо1
                                             ^
stdout
Standard output is empty