20 years, 8 months ago
Highlights
I second darookie's suggestion for the use of a std::map in this case.Also, note that in your code if 'String' is actually a string literal (a 'char*'), using the equality opera…
20 years, 8 months ago
20 years, 8 months ago
Hello everyone -- I did this little dogfighting game as a project for my freshman CS course here at GeorgiaTech -- it was a competitive project, in that people in the lecture vo…
21 years, 10 months ago
Hello - Does anyone know of a way to obtain a reference to an object's calling class in Java? As in, the object B is a member of object A, and a member function of B wants to re…
21 years, 11 months ago
To correct cNoob's example:#pragma once#ifndef FOO_H#define FOO_H //...code...#endifwill do what you expect.As rip-off says, not all compilers support 'pragma once'. If …
20 years, 8 months ago
Latest Activity
See all in DiscussionsI second darookie's suggestion for the use of a std::map in this case.Also, note that in your code if 'String' …
20 years, 8 months ago
To correct cNoob's example:#pragma once#ifndef FOO_H#define FOO_H //...code...#endifwill do what you expect.As rip-off says, not all compilers support 'pragma once'. …
20 years, 8 months ago
Quote:Original post by Ravyne": root(NULL)" and the similar bit below are what is called an "initializer list" what it does …
21 years ago