General C++ Programming - December 2009 (Page 10)

Insertion error
 
Im having trouble with a program to write binary trees and binary search trees.I can print the bina...
[3 replies] Last: please someone help me,i am a horrible programmer and need help. (by kakashi316)
Trying to understand dirty testing.
 
My understanding of it is a test that runs data contrary to expected input data. For example, lets ...
[7 replies] Last: If the size of the buffer is incorrect; you'll get a buffer overrun, s... (by chrisname)
Creating Thread Within Object?
 
Having some trouble creating a thread within an object: NetworkManager::NetworkManager(unsig...
[3 replies] Last: Good ans ireshagun, just wondering if there is another way to do it? I... (by NickPaul)
Trouble with function call char *filename
 
Hi, I am trying to use this function void Graph::load (char *fileName) Where what...
[2 replies] Last: Ah I'm stupid. It was an include problem with my Eclipse Makefile! (by vholcomb78)
double deletion problem
 
I have a class call Roster which consists name of the course and instructor and a pointer points to ...
[12 replies] Last: Thank you very much~! I get the picture now. (by kaitoyzc)
Map clear()
 
Hi all, This is the description for map clear() function in wikipedia.. vector::clear - Era...
[5 replies] Last: Thanks a lot Disch. (by prasadi)
Printing long double precision
 
The maximum value for the Microsoft Visual C++ 6.0 compiler is 1.797693e308. I would like to print ...
[10 replies] Last: Ah, I see. Thanks. (by mushroom000)
linker issues
 
Im getting linker issues with a program ive been writing.I am using DEV C++,i tried running on micro...
[11 replies] Last: You should add the header guards marknyc suggests as well in case yo... (by Zhuge)
by yeet
how to update an answer?
 
for example: //key in: i=8; for(n=i, n>=2,n--) ZT8=0.099 //let said Ztn=ZT8 ZT7=(ZT8+5.5...
[2 replies] Last: i had found the problem!! i had accidently defined the Ztm twice.. ... (by yeet)
Conversion Specifiers for Output
 
Heres what I dont understand. If I have value = 157.8926 and I want to print that value. Why does %g...
[2 replies] Last: I realize that. The input is just for an example. Whether I use %lf ... (by mushroom000)
How to calculate perimeter, area and centroid of a polygon
 
Hello, Does anyone know how to calculate the perimeter, area and the centroid of polygon, given its...
[1 reply] : We aren't just going to give you the code for free. You have to work o... (by Zhuge)
Inherited constructors
 
I'm learning inheritance in C++, and I ran into a little problem. Lets say I have a base class: ...
[3 replies] Last: Thanks for the help, I solved the problem (by AlexRamallo)
by sporx
reverse a string
 
in a situation like the one below, how would you go about reversing the string? #include<iostr...
[3 replies] Last: Unnecessary variables... #include <iostream> #include <string>... (by mcleano)
Virtual Functions and Classes
 
I am to create a project that evaluates math expressions and their derivatives. I have a Formula cla...
[1 reply] : What have you written so far, and what problems are you having with it... (by Zhuge)
Pointers, Structs, Vectors Problems
 
I am trying to write a program incorporating structs, pointers and vectors and am having a hard time...
[2 replies] Last: That worked!! Awesome! Thank you! I used a pointer so that I can ... (by tappedout)
by ARWA
finding the angle >.<
 
hi, i want 2 calculate the angle pettween 3 potential sides by this formula fabs( (slope2-slop...
[6 replies] Last: It is. (by Zhuge)
Program not reading Char String
 
ok i have to write a function that receives a pointer to a character string and a character. the fun...
[1 reply] : 1. I suggest you not use system() although that's not the problem here... (by closed account S6k9GNh0)
by sporx
code::blocks will not open .txt file
 
Hi, ive been having an issue with code::blocks where the lines below will not open the .txt file whe...
[2 replies] Last: i changed it from "." to ...\c++\board\bin\debug, where both the .exe ... (by sporx)
A question of OpenGL
 
I have created a merry go round model,how can i let it spin? Did i need to use For loop? It is bet...
[3 replies] Last: You need to set up the blending: glEnable(GL_BLEND); glBlendFunc(GL... (by Bazzy)
Question to generates random math problems.
 
I was asked to write a c++ program to generates random math problems. Here's my code so far. It wor...
[4 replies] Last: That's a pretty good idea, actually. (by chrisname)
December 2009 Pages: 1... 89101112... 16
  Archived months: [nov2009] [jan2010]

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