Can anybody help me? I'm trying to use the GetConsoleScreenBufferInfo function to get the location of the cursor on the screen at any time, but I'm having troubles. I've studied MSDN, and thought I'd figured it out, but it didn't work. I've looked all over for example source code for that...
Hey, i'm a newbie to graphics in C++, how can you show a picture in console mode - using any type of graphics system you choose to show me. Also, what is a good graphics sys to start out with - eg. OpenGL, etc.? Any code, or comments would be helpful.
Thanks!
Thanks for the clarification, chipperMDW. I just wondered whether it was possible. It's not really any harder, but I just figured it would simplify my code if you could do that. I wasn't sure whether C++ came with a way to automate that kind of initializing, seeing as how I would think it...
Does anyone know if there is a way to send arguments to a constructor and not have to use a local copy to transfer them to their rightful homes?
Like:
class Person {
int Hlth, Att, Def;
string Name;
Person(int InitHlth, int InitAtt, int InitDef, string InitName);
}
Is there another way to do...
I appreciate all the help, chipperMDW, it helps a lot. I have learned about inheritance, but did not really understand how it could be used in practical situations. But this helps a lot. Oh, and that helps me alot about the virtual functions!
I have taught myself C++ and have quite a bit of experience, but I am just now getting to understand classes. I am writing a simple two-player turn-based game
and have decided to use classes to make it easier. I have already made part of it, but I have a question about using member functions...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.