Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在方法之间使用对象吗?
stringOne 必须是你的类的成员变量:
[编辑] MyClass.h
@interface MyClass : NSObject { CString* stringOne; } @end