Ich versäume es, eine ganze Zahl richtig zu werfen. Wie mache ich das falsch?Unsaubere Form der Ganzzahl, wie mache ich das falsch?
void spellCheck(char article[], char dictionary[]) {
char articleWord[50];
char dictionaryWord[50];
int articleLength = articleLength(char article[]);
removePunc(article);
toLower(article);
lowerDictionary(dictionary);
nextArticleWord(article, articleWord, articleLength, dictionary);
}
Fehler tritt auf:
int articleLength = articleLength(char article[]);
und ein weiterer Fehler tritt auf, wenn nextArticleWord() deklariert ist:
void nextArticleWord(char article[],
char articleWord[],
int articleLength,
char dictionaryWord[],
char dictionary[])
wahrscheinlich auf die falsche Besetzung im Zusammenhang ...
Voll Code ist here.
'articleLength' ist sowohl der Name einer lokalen Variablen und eine Funktion? Wenn das ein Funktionsaufruf ist, ist das eine falsche Syntax zum Übergeben eines Arguments. – yano
ändere zu 'int articleLength = articleLength (article);' – BLUEPIXY
@BLUEPIXY Wenn ich das tue sagt es "aufgerufenes Objekt 'articleLength' ist keine Funktion." –