General C++ Programming - January 2010 (Page 9)

Dynamic three-dimensional array of pointers?
 
Alright. I've been programming a game in C++ for a while now, and I can not find the solution to thi...
[8 replies] Last: I'm late to the game here, but here's an obligatory link: http://ww... (by Disch)
question about time in c++ (1,2)
 
How do I find the current time (24 hour time) within my program code and set it as a variable withou...
[30 replies] Last: oh i see it.. I knew it was years since 1900 but for some reason I mes... (by beginner at programming)
by Gilmar
Getting wndproc in console
 
Hi, Hope you can help me on this. Is there a way I can monitor the insertion and removing of usb f...
[2 replies] Last: Obnoxious, isn't it? That's because the Windows Console doesn't hav... (by Duthomhas)
why we use class in C++ ??
 
As we know the only difference between class an struct is that default declaration of members and de...
[8 replies] Last: blah blah blah.... OP had it right initially. Venturing a guess ... (by jsmith)
by katty
memcpy() and uint8_t
 
Hello folks.. In the following code, I m trying to copy struct element to array... #in...
[1 reply] : hi Katty, You have declared the variable as uint8_t which is unsign... (by somshekhar)
Problem to load a vector by using a pointer (C++)
 
Hi! I have a problem that I would be wery greateful if someone could help me with. The problem is ...
[1 reply] : Use Pointer Instead of dot. ptrStorage->push_back("hi"); (by somshekhar)
Linking Error while adding external library
 
Hi, I have downloaded an external library, but i am getting linking errror as follows. I don't k...
[no replies]
c++ with flash
 
Hi, I wish to load the swf file in a standalone application using c++ (in linux platform). ...
[no replies]
by amn390
Video into Images
 
Hi, I am building a program which requires me to feed video/images( taken from ip network camera) ...
[no replies]
How to make a tiled map for a game?
 
For years, I've been using a game creation program that used a language strikingly similar to C++ an...
[11 replies] Last: Good news ~ I figured out how to do it in DarkGDK. dbSetSpriteTextureC... (by RYoung992)
Copy ctor
 
Hi folks, I am writing a copy constructor for this class: class Widget { public: Widget...
[19 replies] Last: There are cases where the compiler may hold a reference as a pointer. ... (by PanGalactic)
by repeye
stack around variable was corrupted
 
Hi there, I'm kinda newbie in programming, i'm in the part of learning to handle pointers. I w...
[9 replies] Last: Checked the vector class and it did the trick, thanks tummychow!!! (by repeye)
Produce a file or w/e with std?
 
I want to know how to create a file with using the std:: i only know std::remove but this time i w...
[8 replies] Last: I see... I wonder why that wasn't implemented for fstream. (by tummychow)
small problem with istringstream and 2d vector
 
Hi everyone, I have troubles with reading floats from a file and writing it into a 2d vector. Basic...
[1 reply] : I solved it. I have to place the line istringstream inputString(lin... (by rajeshkooth)
sets of letters (1,2)
 
I have to write a program that deals with sets of letters. The program should include the following ...
[28 replies] Last: You're passing 'A' and 'B' as parameters to your functions. But you... (by Disch)
by RDon
Declaring derived classes from base class
 
Hello everyone. I am wondering if there is a way of having a program automatically declare one insta...
[5 replies] Last: I don't know of anything in the C++ RTTI system that would allow you t... (by Disch)
by CGBS
What do you think of this simple Rock, Paper, Scissor game?
 
I'm still not exactly an expert, but I made this simple rock, paper, scissors game. It runs fine and...
[6 replies] Last: For the most part, prefer OOP over all paradigms until there is a spec... (by moorecm)
Using Smart pointers to avoid coding certain class methods?
 
Had an idea as I was coding up an object-oriented wrapper for an SDL c library. Firstly I found it v...
[2 replies] Last: Haven't actually looked into it, but that sounds about right (by htmldns)
Virtual Pointers.
 
class Base { } class D1 extends Base { public: virtual void D1func() { cout<<"D1func()"...
[6 replies] Last: It's in the compiler. Where else? And no the compiler does not injec... (by tummychow)
clear function [STL]
 
Hi @ all. I need to do the clear method for my implementation of vector container. For clear method...
[8 replies] Last: If the size is equal to the capacity, push_back reallocates and copies... (by Bazzy)
January 2010 Pages: 1... 7891011... 17
  Archived months: [dec2009] [feb2010]

This is an archived page. To post a new message, go to the current page.