Quote:
Originally posted by iPhotoStuff:
Hi Folks,
now, I read in a bunch of places that different compilers require different returns for main? Frankly, I have no idea…
the return value usually just tells the OS the exit status of the program. Just change that main function to read: int main() { ... } and at the end of the program before the last…
another spot that discusses something similar to this question is down a little ways titled "help please" posted by zanyterp . . . (me).
perhaps can help little bit more. . . .whi…
Quote:
Originally posted by zanyterp:
while on this topic here, if i declare a function that main() calls, does void functionName() work? (including the ';' as needed of…
Quote:
Originally posted by zanyterp:
another spot that discusses something similar to this question is down a little ways titled "help please" posted by zanyterp . . . …
Quote:
Originally posted by PBG4 User:
Yes, you can create void functions. It's just that some compilers expect the main method to be declared as int main...
The C+…
Quote:
Originally posted by Chuckit:
void functionName(); is a valid declaration. You should just be including the header file, though.
so instead of declaring the…
Normally you declare your functions in a header file and define them in an implementation file. Like this:
code:// SomeClass.h
#ifndef SOMECLASS_H
#define SOMECLASS_H
class Some…
Quote:
Originally posted by Chuckit:
Normally you declare your functions in a header file and define them in an implementation file. Like this:
code:// SomeClass.h
#if…
Well, you don't want to include a file that's going to be compiled in another file that's going to be compiled. That will just confuse things. Also, header files do make your desig…
Quote:
Originally posted by Chuckit:
Normally you declare your functions in a header file and define them in an implementation file. Like this:
code:// SomeClass.h
#if…
They tend not to announce the details of each year's contest until a few months before the deadline, which is usually about a month before WWDC... so stay tuned, it'll likely come …
Quote:
Originally posted by Rickster:
They tend not to announce the details of each year's contest until a few months before the deadline, which is usually about a month…
Yes and no. There's Objective-C++, which is better described as using C++ from within an Obj-C Cocoa program than the other way around. You can write as much of your custom logic i…
Quote:
Originally posted by zanyterp:
thanks. and C++ cannot access cocoa calls, right?
No, it is actually possible to acess Cocoa from C++ using loadable bundles …
Quote:
Originally posted by lavar78:
Boo hoo. Some people have a much longer wait than you do.
You are right. I shouldn't complain.
But still, it is hard to w…