General C++ Programming - June 2011 (Page 8)

Serialization and strings
 
Hey all Currently trying to make a program to output strings to a binary file, but because i'm us...
[2 replies] Last: The size() method returns the number of elements contained in the stri... (by webJose)
by Bezi
C++ version of calloc
 
In C we can use calloc to intialize a dynamically allocated array all to zero, I am trying to avo...
[1 reply] : C++ 03 sections 5.3.4 and 8.5 refer. You can do this: new int (); ... (by Moschops)
by JRevor
Scope problems?
 
Hello, At the moment, I'm working on a university project that uses the OpenNI kinect library, ...
[2 replies] Last: First of all, sorry for the tripe post. Eventually, I decided to scra... (by JRevor)
sum for -should be easy but im stuck
 
Hi all, I have been working on trying to sum the netpays so that I can get an average as well. I ...
[3 replies] Last: Thanks everyone for the help. As you can tell I am new at this. Than... (by mike6497253)
by paeez
sorted array
 
hello dears I have one problem in my program . It has 2 array like arry1:{2,2,2,3,1,0,0,0} a...
[4 replies] Last: You can't really set the list items in arry1 to a null value unless yo... (by get funky)
FTP Upload
 
Can anyone provide me a c++ program that can upload files to my FTP server, need complete explanatio...
[2 replies] Last: I have to mention I have a cpp program which creates an HTML page with... (by heman0154)
How to make a divsion comparison
 
I am building a small math game and i am having trouble with the division portion of the game. ...
[2 replies] Last: you could use integers and multiply them to get trueanswer (by buffbill)
Mixing #define and #if
 
Hi everyone, I need to write conditional debug program which inserts debug statements depending o...
[2 replies] Last: Hi helios, Even I thought the same way but felt may be missing someth... (by nkumar85)
Virtual Functions
 
I'm rather confused as to how virtual functions work. I made this example: Header (sandbox.h): ...
[7 replies] Last: I was looking for the pImpl idiom... my bad >.>. (by closed account S6k9GNh0)
2 and 3 dimensional arrays
 
Hi guys, i am trying to write codes using multidimensional arrays, the program should output the n...
[1 reply] : First of all, please use the "Source code" button for pasting the code... (by vonpik)
Making String arrays out of long files.
 
Ok so I have this code written and all it is supposed to do now is simply take the command line argu...
[4 replies] Last: Thanks for the advice that will most likely help. It makes sense at le... (by pcaraglio)
Nameless structs in a class
 
It's sometimes useful to group some variables in a class together inside a nameless struct: clas...
[3 replies] Last: Thanks for your help. I'll just make it a named class then (leaving it... (by anonymous23323124)
by Pufo
Nonconstant parameter for a template class
 
I have a template class from an API that is instantiated with something like this. BitField< len...
[2 replies] Last: Assuming a bitfield is array of bits, then I would suggest boost::dyna... (by kev82)
by majora
Running Allegro On 64bit windows
 
I am having trouble using allegro. The code is faultless but the files will not run on a certain com...
[1 reply] : The 64-bit edition of any Windows OS will have a conversion layer that... (by ModShop)
cout not working
 
Hello I am fairly new to the c++ environment and I tried writing a simple Hello world application (s...
[8 replies] Last: Thanks for the help people, I tried a different compiler on another co... (by GeckoLink)
replace() with string
 
Why can't I do this using replace(): http://www.cplusplus.com/reference/algorithm/replace/ st...
[4 replies] Last: Got it. Thank you very much guys! (by nguyentrang)
Help me please
 
Hi, I have problem with the values that are gained from MATLAB and C++. First I run this program in...
[9 replies] Last: Thanks every one the problem solved successfully with your suggestions... (by amir1987)
Confused beginner needs help
 
So I've been reading through Programming Principles & Practice Using C++ and I got the the part wher...
[2 replies] Last: Okay even though I have no idea what you've done as we haven't covered... (by Cppcats)
by gizzmo
operator overloading
 
Hi, How can I overload operator and = so that I could do an assignment like object = something;...
[4 replies] Last: I think you misread the original post, Edithsong. Wazzak ... (by closed account zb0S216C)
Runtime & Compiler Errors with Resource Manager Template Class?
 
Hello, CPlusPlus community. I am writing a Game Engine and I can't seem to get the hang template cla...
[2 replies] Last: Thank you! And the forward declaration was just me trying different th... (by KeyForge)
June 2011 Pages: 1... 678910... 28
  Archived months: [may2011] [jul2011]

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