General C++ Programming - July 2009 (Page 5)

how to return vectors
 
Hello, I am writing a library, my first one. I need some help how to return vectors from this library? If the library is allocating memory to return thin...
[5 replies] Last: In your original code, using new you are allocating memory from the he... (by jsmith)
by kabubu
problem while using typedef
 
Hi, I try to use typedef to structure my code better. While using this i came across the problem that i had to use a Function that deals with pointers, but ...
[3 replies] Last: void foo(tSha1Hash outHashValue) is passing a pointer. (by mackabee)
Difference betweeen creating object with pointer and without pointer
 
Hi All I am newbee to this forum.. I am using the Qt sdk.. Usually i am using the pointer method to create objects..but mostly objects are running at b...
[2 replies] Last: See these tutorials to have more details: http://www.cplusplus.com/do... (by Bazzy)
how to ENCODE using ASCII coding
 
okay, after a lot of here and there. i finally got my previous program to work. i copy and pasted my current program below. if someone can run and it see ...
[4 replies] Last: No no no! system("pause") is evil ! http://www.cplusplus.com/for... (by Zhuge)
how to make a program update
 
say i want to give my program to friend and when there is a new update i want it to download and apply it instead of making him download it manualy. i have no c...
[2 replies] Last: no i dont so i guess when i get that i should get back to you. (by poonninja)
by exidis
Error C2440
 
Alright so I'm getting these errors upon compiling... any solution? c:\documents and settings\cory\my documents\visual studio 2008\projects\test v1\test v1...
[7 replies] Last: I wasn't saying that casting would solve the "problem "- and to be ... (by guestgulkan)
by Disch
Global variable construction in external libraries
 
I'm working on a library and I use global variables to initialize some things automatically. It's critical that the ctors for these global objects are run with...
[no replies]
by cpp123
One copy constructor issue that is baffling me
 
In the following code, I do not understand why isn't the copy constructor called for "ob3" in main and why isn't the destructor called for "temp" in overloaded ...
[12 replies] Last: great ! Notice how copy constructor is called for ob3 before temp gets... (by cpp123)
by cpp123
Can you suggest me some good C++ books / reference sources ?
 
Thanks in advance for your suggestions. Just in case if anyone is wondering. I am good in programming and I have worked with C and Java before. Thanks, ...
[6 replies] Last: good idea. (by cpp123)
Robocode for C++?
 
a friend of mine showed me this thing called robocode however its in java and i do not want to learn java until i have gotten better at c++. so my question, is ...
[2 replies] Last: i found one its called battle bots but its not a programming game. (by poonninja)
ARRAYS: putting numbers in order
 
i dont know why this is doing this, but when i have the user input 4 numbers, there is no output. PROBLEM: no output OUTPUT: should be in order (From low...
[5 replies] Last: thank you for the help you guys! after reading a LOT of links yall he... (by xiikryssiix)
Maximum size of a char array?
 
I'm creating a dynamically allocated char array like so: int maxChars = 0; //maxChars is modified with a value sometime here char* charArray = new cha...
[4 replies] Last: There is a function that modifies the array The array? What array? ... (by helios)
by amyn
how to install gnu C compiler on Windows XP?
 
I easily installed the gcc compiler on Solaris by running the tar xvf command. All files got uncompressed, and I can then use the compiler because gcc got inst...
[2 replies] Last: Cygwin is good for this. Simply download the installer, select the GCC... (by GenTiradentes)
Having trouble reading from another program
 
I am working on building a program that takes messages from another program and using various methods, sends messages back to that program. I'm trying to fig...
[8 replies] Last: Where can I find stuff on how to use IPC? (by xaothitl)
What are type safe linkage?
 
hi every1.. please let me know waht is type safe linkage..?and why is it useful.. help would be appreciated..
[1 reply] : Typesage linkage enforces the right number and type of parameters are ... (by kbw)
by minix
Random File Access for writing
 
Hi everybody, I need to use random file access for reading and writing in C language only. For reading i have implemented the logic and its working fine. ...
[4 replies] Last: Is the problem in growing the file? If it is, you could write zeros o... (by kbw)
Open File, Print to a File/Console
 
okay, i usually create beg programs and they often compile. for some reason, this one is not compiling at all. i cant seem to figure out whats wrong. my obj...
[2 replies] Last: What i think is you are opening an uncreated file for reading. Suppose... (by bilalhaider)
how many weeks to become a millionaire?
 
i have to create a program that calculates how many weeks it will take to become a millionaire given an allowance of pennies. for example... 1st week - 1 ce...
[7 replies] Last: finally got it to work. thanks for all the suggestions. i did change ... (by xiikryssiix)
Convert int to string
 
I am having to write a program that has a user-defined class. In this program I need to convert an INT to a STRING. For example, if the program reads in the dat...
[8 replies] Last: Did I actually just read that? For the same reason that it matters ... (by helios)
Menu Not Working
 
The last few days I've been attempting to make a popup window with a menu outside of the WinMain class. void CMFToolbar::GetQuote() { InitCommonContro...
[no replies]
July 2009 Pages: 1... 34567... 14
  Archived months: [jun2009] [aug2009]

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