General C++ Programming - October 2013 (Page 21)

char array to string
 
Hi, I have some code: char cHomeTeamFaceOffsPercentageWon ; memcpy(cHomeTeamFaceOffsPercentageWon,cSqlHomeTeamFaceOffsPercentageWon,100); After this, f...
[1 reply] : This works for me. char cHomeTeamFaceOffsPercentageWon ; ... (by Bourgond Aries)
Reading columns from text file
 
How can I read just the first column of this from a text file? ORG 100 LOAD X ADD Y STORE Z HALT X, DE...
[2 replies] Last: Answered in the duplicate thread. http://www.cplusplus.com/forum/gene... (by vin)
geany c++ code snippets help
 
Hey Guys A liitle Help in code Snippets of c++ in geany For instance we can have if=if(%cursor%){ob}%cursor%{cb} what do i need to do if i want to add a fu...
[no replies]
reading variable from another program
 
I'm trying to write a widget that monitors the health/mana/stamina of a character in a game. I've discovered the game uses a varible!HEALTHCUR! to store current...
[2 replies] Last: If the information is store in external files that you can edit. Then ... (by Stormhawk)
What Unix command...?
 
A few days ago, in class, we were working on classes, etc... My professor did something and I can't remember what it was called or why he did it, but it produc...
[4 replies] Last: -c I looked it up with "man g++" AND my professor answered me, all ab... (by Blalack77)
Why return by reference?
 
Return by reference is typically used to return arguments passed by reference to the function back to the caller. In the following example, we return (by refere...
[2 replies] Last: Just like when you pass a value, when you return a value from a functi... (by Uk Marine)
What do I need to do to get the correct calculations in this program?
 
Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h)...
[1 reply] : > But I am having trouble with the reduce() function I you only had l... (by ne555)
Standard Deviation?!
 
I need help with calculating standard deviation can someone please help me #include <iostream> #include <iomanip> #include <string> #include <fstream> ...
[6 replies] Last: You're welcome. BTW the formula I gave works, but it's more complicate... (by closed account D80DSL3A)
Multithreading in a computer game
 
I'm just looking for a sanity check concerning my use of multi-threading, and ideas as to how to improve / change it to make it more efficient. The main toolkit...
[4 replies] Last: So i made a beautifully complicated multithreaded environment for noth... (by crexalbo)
by xcyl40
Looping Help!
 
return 0; }
[2 replies] Last: Please use code tags when posting. http://www.cplusplus.com/articles/z... (by Yanson)
by CroCo
Mouse Speed?
 
I want to acquire mouse speed, so I need to calculate the delta time between each reading first. I want to know if what I'm doing correct. I'm using OpenGL and...
[13 replies] Last: So, what about the following approach. It seems it's working void D... (by CroCo)
writing content of double* to OpenCV IplImage * imageData
 
Hi All, I tried copying data from an image of type double * img1 into an IplImage * iplimage I used the following for(int i=0; i<width; i++) (for int j=0; j<...
[no replies]
Need a little help with my Linear Search Algorithm please
 
So everything runs perfectly except when i try to search for a value inside of the array, it keeps telling me that the value wasn't found despite the fact that ...
[3 replies] Last: Also: template<typename T> T Search_Array(T a , T s, T i) { for ( i... (by xismn)
Transposing index problem
 
Hi there, I'm making a simple benchmarking program for matrix multiplication, but I seem to be slightly stuck. I'm multiplying int arrays (the matrix is i...
[2 replies] Last: Unfortunately that didn't help me much. (by Elena Markoska)
Reading columns from a text file
 
How can I read just the first column of this from a text file? ORG 100 LOAD X ADD Y STORE Z HALT ...
[9 replies] Last: I see now, thank you! (by cebegaf)
by Anontk
What exactly is SFML?
 
I've heard it's a good place to start for games programming but even after reading the website's first few tutorials I still don't really get what it is. Is it...
[3 replies] Last: If you have any further questions regarding the SFML library, post the... (by Uk Marine)
Rendering midi using soundfonts (.sf2 files)?
 
Anyone knows the steps needed to render MIDI using SF2 (Soundfont 2) files? Is it adviced to load the soundfont in memory when rendering sound? I've found the d...
[no replies]
const pointer and address
 
A tutorial says this: "A const pointer always points to the same address, and this address can not be changed. " But then says that this is ok: int nVa...
[1 reply] : pnPtr is a pointer to a const int. The pointer itself is not const. So... (by tipaye)
by mahla
learn to children
 
hello please help me i want learn c++ to children but i don't know where i must begin
[5 replies] Last: Came across this website: http://scratch.mit.edu/ (by BitRat)
accessing the accessor functions of another program
 
I'm trying to write a widget that monitors the health/mana/stamina of a character in a game. I've discovered the game uses a varible!HEALTHCUR! to store curren...
[no replies]
October 2013 Pages: 1... 1920212223... 46
  Archived months: [sep2013] [nov2013]

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