General C++ Programming - September 2009 (Page 9)

Copys of different pointer types to a single object
 
Hi, I wanted to have an array of base class pointers to access all the derived classes' member funct...
[4 replies] Last: I'm in agreement with Duoas; however, if you just want to see if it ca... (by dfarmer)
by Tak
Completely Stumped (odd bug)
 
basically, this is an IRC bot, it only PONGS on pings sometimes, and it takes someone typing command...
[8 replies] Last: everything after a null char gets ignored, it splits and points it to ... (by Tak)
Question on Strings
 
112
[2 replies] Last: If you want to compare your variable to a string you need to enclose t... (by firedraco)
Loops
 
I'm stuck on how to exactly use loops to make a program function like the text below. Help would ...
[12 replies] Last: Anyone? Thanks. (by Recklein3)
by ztein
How to compile from a new file in VC++ 08?
 
The problem is that when I create a New .cpp file, without the "Project" crap, it won't let me to co...
[5 replies] Last: Ok thanks. (by ztein)
using variables as ofstream save locations
 
Is it possible to have someone, say, input a value to a string variable "justastringvar" and later u...
[1 reply] : Yes. std::string s; //... std::fstream(s.c_str()); (by helios)
Array assistance... prob simple :S
 
My program is to shuffle from 1-52. It shouldnt have any duplicates. BUt anytime i try to fix 'i' so...
[3 replies] Last: That was an error Kyle. Thanks alot JSmith... (by kamsam65)
Checking password protected file
 
How can we check the file is password protected file or not. File can be office 2003 or office 2007 ...
[3 replies] Last: First you'll need to better define your objective. Decide carefully wh... (by helios)
Looking for some info on OBB Collision.
 
Hey guys - Just wondering if anyone has any sites/info on OBB collision. I can't find anything half ...
[2 replies] Last: Thanks Zaita - I haven't seen gamespp before so I'll give that a check... (by Mythios)
by icu812
multi-dimensional array
 
I currently track a stat on 10 players in a single dimensional array like this: int player_vpip ...
[2 replies] Last: I'm not gonna lie i've never actually used this before but you might b... (by mcleano)
The *this pointer
 
Can someone show me an example of when using *this is useful please. Preferable code, and not an exp...
[5 replies] Last: Ok, I see, thanks. (by mcleano)
by m0sh
Editing a text file
 
Hey everyone.. I was wondering if anyone could explain to me the process or show me some source code...
[2 replies] Last: Also see, "how to ask questions the smart way". I wonder why that art... (by kempofighter)
Exception safe operator[]
 
Hi everyone, I am designing a generic Array class and am trying to make it strongly exception saf...
[6 replies] Last: It's not the container's job to deal with that sort of thing. The use... (by kbw)
Email Validation Not Working
 
This is what I have so far. This isn't working and this isn't even close to working. I'm not that ex...
[3 replies] Last: Wow, that's horrendous, even with the indentation corrected. Surely i... (by kbw)
by gong
string streams problem
 
hi. i have a fill with a full person's name and I want to do a void funcion that prints on the sc...
[7 replies] Last: Sort of, The crux of the problem is that you need to read a line like ... (by kbw)
by DBarzo
std::map and operator=
 
Hi, I've a class A that store objects B in a std::map. B is composed by other objects members an...
[8 replies] Last: Thanks to all for your suggestions. I changed my implementation. T... (by DBarzo)
Using fstream
 
Hey you guys, once again I need your forever greatful advise. I'm stuck getting this program to run....
[1 reply] : You have to supply the file (that is what the ifstream is, it is a fil... (by firedraco)
Shallow copy causing crashes
 
I have a custom created class which I'm using to modify a custom data type using overloaded operator...
[2 replies] Last: Who writes a C++ class with pointers and doesn't add a copy construct... (by GenTiradentes)
"Garbage collection"
 
Hi. I have a couple of questions about garbage collection: What is it? How do you implement it? ...
[7 replies] Last: Sigh... http://en.wikipedia.org/wiki/Computational_overhead (by helios)
by varak
list error??? But why??
 
Hi guys K, straight to business. I'm making a list of objects and when I try to compile it, I get...
[6 replies] Last: Oh my word!! I'm such a retard! Thanks!! (by varak)
September 2009 Pages: 1... 7891011... 14
  Archived months: [aug2009] [oct2009]

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