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

a little `switch' use question
 
which is better? switch (m%4) case 0: ms = m-1; ckm(ms+1) = -m; break; ...
[3 replies] Last: Thank you. That is what I also thought. But I see it as a little algo... (by Onanymous)
REALLY URGENT!!!
 
My Program: Done
[5 replies] Last: { char *s="Hello"; std::cout <<(strcmp(s,"Hello")==0); }... (by helios)
by winten
About tabPanel, wstring.
 
I was trying some ways to select tabPage (panel) knowing only its id (tabPage1, tabPage2...). For...
[1 reply] : From experience, you might want to try the MSDN Forums: http://social... (by webJose)
question about const keyword in pointers
 
hi, started to read book Lipman C++ and have first questions about pointers, here is my code int ...
[7 replies] Last: Probably an overly permissive compiler. test.cpp: In function `int m... (by helios)
namespace
 
This is the snippet from Object Factory Pattern from a book. Author says that each class when the...
[6 replies] Last: Thanks guestgulkan! (by n4nature)
Inheritance Question
 
In my game I have a class Object which contains all members needed for objects (weight, size, etc....
[18 replies] Last: I wonder how FF7 implemented materia sockets on items. Having bee... (by jsmith)
linear linked list errors
 
Hi all! Could anyone help me to understand what's going wrong when I add to my linear linked list? I...
[2 replies] Last: Insertion of the second element is trashing the list. I don't know if... (by jsmith)
by zhiw3i
how to convert this to while loop
 
hi , i currently new to c++ was wondering how to convert the lower portion using nested while-loop. ...
[9 replies] Last: ahh thanks psychoder i just change the valubles abit and it solve. tha... (by zhiw3i)
undeclared identifier
 
Hi..I've just started to learn programming with c++.I wrote my program in Dev C++ and when I compile...
[2 replies] Last: thanks helios..I did not see that part.. (by blackhat1337)
Command Line Parameters Prevents ofstream
 
When I drag and drop a file onto this compiled program, it will run but it will not create a file li...
[10 replies] Last: [quote=yoonkwun]Okay. Can anyone give me info on how to create a file ... (by PanGalactic)
by meesa
C++ function and local char with same name
 
Okay, so I ran into a problem while making a header that has the following function declarations: ...
[4 replies] Last: Ahh, okay! Thanks!! (by meesa)
by markb
Memory contents mysteriously changing
 
Hello, I've run into a strange bug and I'm not sure how to proceed with fixing it. Any suggestions ...
[5 replies] Last: iharrold: I was wondering the same thing. If that were the case, tho... (by markb)
(rpg pointer class) concept problem (1,2)
 
look at the code below..I just want to ask***WHY ARE WE USING dynamic memory allocation for MONSTER*...
[20 replies] Last: Cool. (by n4nature)
arrows keys for selecting(read for explanation)
 
Ive run into a bit of a .. deadly error here :D. Actually my problem is i cant find any topics ab...
[1 reply] : You can use the curses library for this (by Bazzy)
How can I detect if a pointer is const?
 
I have the following, very simple class that allows automatic destruction of an array: //Smart...
[4 replies] Last: I see. Understood. So maybe an additional parameter in the construct... (by webJose)
by sjefke
multithread single socket
 
Hi, I'm writing a messaging client, for a single socket. I have 2 threads: one that merely respon...
[1 reply] : If both applications are on the same processor, then you may want to l... (by iharrold)
by lace28
getpeername always returns ipv6
 
Hi, I have a problem with the function getpeername. It always returns me a structure of type IPV6. ...
[1 reply] : Part of the problem was in the following code: (from http://www.beej.... (by lace28)
EXC_BAD_ACCESS during Copy Constructor
 
Good Evening, I have been writing apps in C++ for a while now but I have to admit the below prob...
[2 replies] Last: Ok, I get it. Sorry must have been having a bit of a moment. Thanks... (by Philip Lee Bridson)
object overloading
 
Hi, i have defined a class inherited from ostream class... class ABC: public std::ostream { ...
[1 reply] : The normal way this is done is to overload a global ostream << operato... (by kbw)
Convert unsigned
 
if I have : unsigned int i = 6; in a = -20; and I perform i+a.... a will be convert to po...
[4 replies] Last: In principle, yes. In practice, the machine operations are the same... (by kbw)
January 2010 Pages: 123456... 17
  Archived months: [dec2009] [feb2010]

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