Delphi-Prism-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| var saveValue : Integer; begin var List := new Dictionary<Char, Integer>; for i: Int32 := 0 to Input.Lines.Count-1 do begin for y: Int32 := 0 to Input.Lines[i].ToCharArray.Count-1 do begin var key := Input.Lines[i].ToCharArray[y]; if List.ContainsKey(key) then begin List.TryGetValue(key, saveValue); List.Remove(key); List.Add(key, saveValue+1); end; end; end; end; |
Hi DF
Ich muss euch leider wieder stören.
Ich habe eine Integer-Variable namens saveValue, die ich in List.TryGetValue(key, saveValue) als Variable einsetze - in diese soll er schreiben - er scheint aber nicht zu akzeptieren, dass ich diese Variable nur zu diesem Zweck geschaffen habe
:
Fehler 1 (PE176) Modifizierer für Parameter "2" passt nicht: war [in] sollte out sein C:\Dokumente und Einstellungen\Max\Eigene Dateien\Visual Studio 2008\Projects\Project1\WindowsApplication5\WindowsApplication5\Main.pas 64 22 WindowsApplication5
Die Lösung ist nicht siebzehn.