General C++ Programming - April 2012 (Page 14)

Question about multi-threading
 
Hello c++ fellows, I have experience in C++, but I never had to work with multi-threading before, so I thought I consult you and ask for help. My applicat...
[4 replies] Last: Thanks again, you are very helpful! You're thinking of creating a ne... (by Mantrid)
text file output - or it would be if comp wasnt being stubborn
 
can you tell me why I am not getting any output to a text file? I cant see why its not doing it. void __fastcall TmainForm::Save1Click(TObject *Sender) { /...
[2 replies] Last: thanks :) (by equitime77)
what is the problem when object is created in below fashion
 
#include <stdio.h> class xyz { int mx; public: xyz::xyz(int inputx) {printf("constructor for %d\n", inputx); mx=inputx;} xyz::~xyz() {print...
[6 replies] Last: What compiler do you use. I would not expect it to compile with xyz:: ... (by Peter87)
Generating all possible combinations
 
Hi guys. I'm sure this is pretty simple, but I'm stumped for a way to do this. Essentially if I have an array with P collumns and V^P rows, how can I fill in al...
[6 replies] Last: this assignement is due in few hours I don't know why you guys always... (by coder777)
Something about Class inheritance
 
I'm thinking about some details in Class inheritance. I know that the derived class can only inherit the public or protected members. But if that member inherit...
[6 replies] Last: Thanks ~ :) (by Janeson89)
by PRBNL
Help Converting char to string
 
I am fairly new to C++ and need help appending a charcter from a string. char Buffer ; contains: 0x00 0x40 0x01 0x02 0x00 0x04 0x02 0x02 ....... I have...
[7 replies] Last: Thank you all for your remarks. To: cantide5ga " Let me know if I am ... (by PRBNL)
if and while statement help please
 
I am trying to get a menu screen before my code runs, this is a snippet of what I have, can anyone tell me what I am doing wrong? When I run it my program runs ...
[3 replies] Last: if(startMenu == false) //GAME CODE else while(startMenu ==... (by htirwin)
How to make input parameter into string ?
 
What command or piece of coding I can convert parameter into a string so I can run it through error checking
[1 reply] : If you want some variable shown, cout << will take case of of printing... (by hamsterman)
OpenGL and SDL question
 
Hello everybody, I am working on a video game for my programming class right now using SDL and open GL. I am stumped on this part of my code. Originally, my ...
[3 replies] Last: @BHXSpecter Look at how it is declared and assigned, 52 c-strings with... (by naraku9333)
Driving me nuts.
 
I guess it is a long shot; it's a complex problem and I don't know if it is possible for anyone to help, but here goes. The problem is as follows. For an arbit...
[2 replies] Last: Here's a prime number for you. 1222253171 But I have no idea what yo... (by closed account zvRX92yv)
Odd Valgrind errors
 
Although my program seems to be working fine (I disabled a lot of functionality to test some stuff), I'm getting some odd errors in Valgrind (valgrind -v): ...
[no replies]
Sound in C++
 
Hi, I have spent lots of time trying to get sound to play for a battleship program I'm working on. I am trying to use this: SOUNDPLAY("sound\\.wav" , NULL...
[2 replies] Last: I would recommend either OpenAL, or SDL mixer. I use openAL, and it's... (by htirwin)
by yotic
problem with compiling linkedqueue
 
The error is invisible to me. Im not sure why it wont compile? and the error code makes no sense. error code 1>------ Build started: Project: project_4, C...
[2 replies] Last: Okay, that definitely helped get the program running but thats as far ... (by yotic)
by Torin
Code::Blocks and Mingw32 - linking to static libraries not working. Help!
 
Hello, Recently I decided to try Code::Blocks in conjunction with Mingw32 for a new project (This is on Windows). As I hadn't used Code::Blocks much before, ...
[5 replies] Last: @Caligulaminus: GCC only requires -ldl, as -l is the option for adding... (by Torin)
by Bobu
Lifetime of dynamically allocated boost:vector<> ?
 
Hi, Currently I am working on a little project, where I'm facing a problem concerning the lifetime of dynamically allocated boost-vectors. At least I think thi...
[2 replies] Last: Thx very, very much!!! I've tried every possibility to make this littl... (by Bobu)
Multi-dimension vectors
 
Ok I'm trying to create matrix of data that I can add values to based on a reading that I will get from a DVM. I'm using a 3d vector to do this. I need to keep ...
[no replies]
creating this template function
 
So I have a template class containing: // someProgram.h template <class T> class myClass { public: struct someStruct{...}; someStruct * getHead(); //...
[7 replies] Last: thanks (by hopesfall)
Help
 
Hi, can I get a tutor perhaps? I'm having difficulty understanding concepts and programming in C++. I really need help to pass. Thanks, Joh
[3 replies] Last: yes, thank you. (by jparcha)
try catch question
 
hi every body . why this code is wrong ? and how to fix it ? try { throw; // i want to throw catch block . but i dont want define variable! // i want j...
[1 reply] : You have to throw something that can be catched. Ever tried catching s... (by hanst99)
wishes to create a .def file
 
Hello everybody, I am using the Microsoft Visual C++ 2010 Express version and I would like to add a .def file to create a dll. The problem is that when I wa...
[2 replies] Last: Thanks now it works! (by andrinirina)
April 2012 Pages: 1... 1213141516... 49
  Archived months: [mar2012] [may2012]

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