私はその本を読んでい"Objective-C Programming The Big Nerd Ranch Guide"
ます。
彼らはこのコードを出します:
void congratulateStudent(char student, char course, int numDays)
{
printf("%s has done as much %s Programming as I could fit into %d days.\n", student, course, numDays);
}
そしてこれでそれを呼びます:
congratulateStudent("Mark", "Cocoa", 5);
これは私にこの警告を与えます:
Format specifies type 'char *' but the argument has type 'char'
その本は間違っていますか?