General C++ Programming - May 2011 (Page 24)

having coding problems commas into a string c++ recursively
 
the problem is its puts in too many commas when i put in high numbers and it puts them in the wron...
[1 reply] : Try changing from int to long and check with high numbers again, pleas... (by closed account 3TXyhbRD)
by davi
How to remove repeated values in array?
 
case 1: input 1 --> ouput 2; case 2: input 1234 --> output 1234; case 3: input 1223 --> output 123; ...
[8 replies] Last: Thanks for both of your great help! zijuan you teach me an i/o manipul... (by davi)
by cshong
Can recommend a good configuration / log file library?
 
OS: must support Windows and Linux Language: C/C++ License: Free and Open Source I need two librari...
[1 reply] : Log4cpp, but I have not used it. So you have to see how efficient it i... (by writetonsharma)
core dumped, need help
 
void doubleCharacter(list<char> myList) { list<char>::iterator itr; char character = *itr; ...
[1 reply] : You have not initialized the iterator and dereferencing it. it may be ... (by writetonsharma)
Abstraction of C++
 
What abstraction C++ gives?? Please see the danger of initializing an object with another of the ...
[5 replies] Last: It cannot change the private members of another class, and it does not... (by anonymous23323124)
Random question
 
So I was coding and came across an issue. Basically, I have some typedefs in class A that I would...
[10 replies] Last: Put it in a trait class. Something like this: class A; class B; tem... (by m4ster r0shi)
(NEED HELP PLEASE)Writing data from a file into a matrix
 
when i write this array into the c++ debugger i just get a bunch of zero's set up in array form. the...
[3 replies] Last: But you aren't reading anything inside the loop. [quote=man pages]The... (by ne555)
Question on const
 
Hi, I have question on const variables in function parameters ex: void foo(const int& i) { ...
[3 replies] Last: Hi firedraco, I did not mean reference (it was just an example), in f... (by nkumar85)
by qwesr
Looking for developers!
 
Ive started a site, http://perfectsw.webs.com to develop freeware apps for windows and other platfor...
[5 replies] Last: Then just type it in to your browser. That's the way to get user... (by ultifinitus)
by fafner
dynamic array not allocating correctly
 
I need to allocate an array of unsigned chars to hold rgb data. Here's the code: int size = vp.vr...
[6 replies] Last: If you want to check whether the crash is caused by writing past the ... (by m4ster r0shi)
Having troble using functions (1,2)
 
Really having problem with the function, I'm really new to function been trying to get it to work ca...
[20 replies] Last: void CalcScore(double Score1,double Score2,double Score3,double Score... (by closed account zwA4jE8b)
oscillating function
 
I am exercising a DX9 tutorial and one practice is to make the screen oscillate from black to blue (...
[4 replies] Last: I'd use a proper triangle wave implementation with no internal state. ... (by helios)
Dijkstra's algorithm/graph
 
Hello! I´m trying to implement a graph,that is supposed to calculate the shortest distance from a ...
[2 replies] Last: I found this site useful. http://renaud.waldura.com/doc/java/dijkstra/ (by naraku9333)
by Sethe
Printing data in structs[Sorta]
 
I'm trying to print out 'shell' type structs by overloading the stream insertion operator. So far...
[3 replies] Last: sorry I still can't follow your train of thought here, [quote=Sethe]I... (by matsom)
C++ and Assembly
 
I'm trying to incorporate assembly instructions into a simple console project. I'm using Visual C++ ...
[1 reply] : I am not 100% sure but I do know that you need a ';' after the asm blo... (by closed account zwA4jE8b)
How to write a code for a robotic hand
 
Hello All: I am new to this forum. I have taken C++ class in community college but this new program...
[8 replies] Last: @compgeek I don't think I am ready to program the kinect yet :P (by closed account zwA4jE8b)
const needed in function param list
 
Before using const for _src I had excluded it. This did not allow me to use string.c_str() as a so...
[4 replies] Last: Oh duh, I misread the question. >_> Glad you got your answer anyway. (by firedraco)
Prototype vs Function declaration, const
 
in the prototype declaration for a method i did not declare that an argument was const however in...
[1 reply] : The compiler will treat them as two entirely different functions. If ... (by Disch)
How to read a random number array to an output file
 
I need help with reading an array with random numbers into an output file.This is not my full code...
[3 replies] Last: Your loop looks fine, it's just that you aren't ever using matrix. (by firedraco)
by Budlee
Comparing two strings
 
I am writing a binry tree and need to compare two strings to see if their are more nodes in the curr...
[3 replies] Last: What's your code? (by hamsterman)
May 2011 Pages: 1... 2223242526... 32
  Archived months: [apr2011] [jun2011]

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