Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Help wanted. C++ question.

Name: Anonymous 2009-07-13 17:49

How do I declare a global object 'within' the class's brackets?

class Box{

public:
int x, y;
//Here's the problem.
Box A;//?

bool collision(Box A, Box B){}

}A, B;

Is it even possible to declare global objects within a class? Yes/no? Depending on your answer I may:
 
a) Drop out of college and become a plumber.
b) Kill myself.
c) Finish the app I'm currently working on.

Name: Anonymous 2009-07-13 17:56

>>2
Yeah, I'm new to coding. Give me a break with this one man. I stayed up for 15 hours googling every where for an answer to my problem. Also, programming sucks. Stay in school kids and never become a programmer. If you're a masochist, then programming is the right job for you. Is it C++, or are all languages this annoying? C++ refuses to listen to my god tier human logic. And yes, my logic is always perfect. Humans don't make mistakes, the languages do.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List