【发布时间】:2010-10-07 17:55:49
【问题描述】:
我需要目标 C 中的函数方面的帮助?
在 C++ 中,我可以创建这样的函数:
int testFunction(int zahl) {
int loop;
loop = zahl * 10;
return loop;
}
这个函数将我的 zahl 乘以 10 并返回结果。在 C++ 中,我可以随时调用此函数:
testFunction(5);
它返回 50。
我不明白如何在目标 c 中制作像 testFunction 这样的函数?我要这样做吗
-(void)testFunction{}?
非常感谢您的帮助!
Greez Franhu
【问题讨论】:
标签: c++ objective-c function methods