General C++ Programming - March 2011 (Page 12)

boost::bind...again
 
I have this code: boost::bind(&util::file::boost_bind::save_container< std::list<Eq_slot*>, Eq_slot_save_func>, _1, _2, *_3, &util::file::boost_bind::sav...
[3 replies] Last: Got it, thanks. (by firedraco)
by aj3423
find + lambda, how to write the lambda argument
 
typedef vector<AJ_Component*> v_children; typedef v_children::iterator item_it; v_children items; item_it it = find(items.begin(), items.end(), (AJ_Com...
[4 replies] Last: Ah, C++0x. http://en.wikipedia.org/wiki/C%2B%2B0x#Lambda_functions_and... (by Duthomhas)
Copying Data from a .txt file in order to populate an excel file
 
Hello I have a txt. file with data such as 1 2 24 42 24 42 42 52 3 3 53 23 53 23 53 23 ... I know how many columns there are but ...
[1 reply] : The easiest way to write a file that Excel can read is to write a comm... (by kbw)
Floating point exeption when running from Terminal but not Xcode
 
I have this pointless program that accepts an integer as a command line argument and uses a text file that lists a bunch of prime numbers to find the prime fact...
[3 replies] Last: The way the program is written now, it reads the file from the current... (by PanGalactic)
So Confused - Help plox? (1,2)
 
I am trying to make an inventory for a game im making. Basically, you enter a shop, and 10 items that you can purchase show up. You can select each item (by inp...
[22 replies] Last: I realized the symbol thing was because I accidentally changed the inv... (by timmah1493)
Hangman Game
 
Coded In Turbo C Link : http://37e8e277.filesonthe.net
[3 replies] Last: i coded the font . its using 8 as the base digital style! i will make ... (by ragmandy)
read from file and put to a dynamic array and prime number
 
i need your help to these problems please 1. write a program which puts 1000 random numbers to a file data.in, each number will be >=0 and <=200. At the fir...
[6 replies] Last: ok, i will try it more.... someone for the other two please? (by Black Pearl)
How to use excel file in c++
 
Hi, I want to read excel file in c++, without converting into csv file. Please, suggest me the way to do it or any approach. Please, help me ??? Thank...
[no replies]
by NGen
Compiler Error Using Overloaded Operator
 
I'm attempting to use a hash class that I've developed within an std::map, and despite the fact that I've overloaded operator< I'm receiving the following error...
[9 replies] Last: No problem. I really should have noticed that immediately, though... (by Zhuge)
Instances of an object
 
Hi, I'm currently making a simple game. Pressing the down arrow places a box on the form. Pressing up shoots missiles(blue boxes) and creates multiple instan...
[11 replies] Last: Thanks. At first I didn't know what you meant by list. Now I do and go... (by Cyclone)
Problem With conversion from char[] to int
 
Hello, This is my first question on forum. :) I need to get 4 bytes from a char array position and set this bits in a int. I have tryed to use some ...
[2 replies] Last: If you simply need to convert a char array to an int just set the loca... (by rudster816)
Removing Data Stored on the Heap (Preventing Memory Leaks)
 
Hi all, For those of you whom don't know me, you can check out this link if you're interested: http://www.cplusplus.com/forum/general/38389/. For those of...
[11 replies] Last: I googled and found this link: http://msdn.microsoft.com/en-us/library... (by simeonz)
Dynamic Memory Allocation Good Practice
 
I have written the following function to load generic data from a file. Is it bad practise to dynamically allocate memory in this function and then leave it for...
[12 replies] Last: I'll look up template meta programming as I've heard it a lot recently... (by anonymous23323124)
Access violation writing location 0xbaadf00d
 
Heya guys! I'm going crazy here, been looking around at this error for hours now. I have a class we can call Foo, if i use an std::vector<object*> in any wa...
[6 replies] Last: This wouldn't have been an issue at all if the STL writers had qualifi... (by closed account 3hM2Nwbp)
a c++ #include problem
 
Hi all, I'm looking for some help and I am way way new. As in school and not able to do my stupid homework. I'm trying to #include "TimeOfDay.h" and using co...
[1 reply] : Actually, I just solved my problem. I had tried moving the .h to the ... (by roscowgo)
libsndfile writing chords in wave files
 
I'm using the C++ wrapper on the libsndfile to write wave files. Aside from a slight peculiarity concerning some crackling in front of each note (which I think ...
[12 replies] Last: I'm gonna take both FFTW and KissFFT for a test drive and see what I c... (by shadowayex)
averaging 2 different arrays
 
This is not homework, I am not in school. I graduated many years ago. This is my own project for averaging large amounts of data around 8000 numbers in each arr...
[1 reply] : - Load the content of each document into it's own array. - Loop th... (by Computergeek01)
Cross-Platform Play Sound
 
I have an array with samples pulled from a WAV file. I want to play sound from this sound array, not the WAV file, because the data in the array can be manipula...
[4 replies] Last: BASS http://www.un4seen.com/ (by Duthomhas)
by scouty
RANDOM NUMBER Generator
 
Hi, I am trying to generate an array of n random numbers. The following program runs fine for n<5. But when n equals or greater than 5, the code gives me Segme...
[2 replies] Last: It worked. Thank you!! (by scouty)
template trouble, help understand
 
long winded i think, but correct any mis-conceptions please, and repost. I'm really new and thought of this, but can't get a compile to complete. getting th...
[7 replies] Last: thank you i see now i must say really helpful I appreciate it thx (by useracct84420)
March 2011 Pages: 1... 1011121314... 31
  Archived months: [feb2011] [apr2011]

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