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

by Denis
Where do I need to set up break point?
 
Hello folks, I need you help, it's really urgent. My question is the following: Where I nee...
[1 reply] : DllMain (by kbw)
show 8 as 8.00
 
Without using showpoint and setprecision(3), how can i show 8 as 8.00? so far i am using: i...
[3 replies] Last: std::cout << std::dec << ( x / 100 ) << '.' << std::setw( 2 ) << st... (by jsmith)
pass parameter by reference in void function
 
i cannot change the function declaration i used int instead of void to test it, and with int it wor...
[1 reply] : result=(acker(m-1, 1, result)); acker() does not return any value (... (by hamsterman)
by ekkh90
How to write all sequence of binary sequence using c++??
 
Problem 1 Write a C++ program that writes all binary sequences of length 15 into a file binary15.t...
[4 replies] Last: Damn, I just found a bug in my code. In the first line, 0x10000 (2^16)... (by Abramus)
conditional config file loading using boost::program_options
 
for example, I have a config file like this: num = 2 x = 0 y = 1 z = 2 x = 0 y = ...
[no replies]
by diplex
destructors and pointers issue
 
i have a templated class btree, below is the internal representation of said class from the btree.h ...
[2 replies] Last: *smacks head* cheers helios, dont know how the hell i thought i could... (by diplex)
by wtf
How come notepad sometimes displays encrypted data as boxes sometimes not?
 
but if I open it with dos edit command, it will be the ordinary ascii characters? sometimes th...
[6 replies] Last: I think the phrase would refer to Bush Sr. if it was serious. Anywa... (by helios)
13 stones
 
I was assigned this homework two days ago. But the main thing is that I been researching the 13 ston...
[1 reply] : Scenario: In this activity, you simulate the game of Thirteen Sto... (by DrChill)
What happen between operator new and constructor function?
 
I wanna know the new and construct order when new a class, so I write the fuction as bellow: #incl...
[4 replies] Last: Ok, thank u jsmith (by player6)
by bArTo
problem with a pointer to a 2d vector
 
this is an attempt to eventualy create a simple gui in console on the windows platform(i apologize i...
[no replies]
by JRevor
What is the most correct/elegant way of solving Circular Dependencies?
 
Suppose i have two classes, A and B, each one implemented on their own .cpp and .hpp . Class A has s...
[2 replies] Last: Thanks! (by JRevor)
by luther
class and class implementation
 
header file #include <iostream> using namespace std; const int FEET_IN_YARDS = 3; const int ...
[1 reply] : (Distance d) const : Distance d declares a function parameter of ... (by Bazzy)
how to use set STL for class type
 
Hi , I have one class like this with following data members. class student { char stud_n...
[1 reply] : That's strange. The call looks correct. Are you sure that the line the... (by helios)
by tpe
Exceptions across threads
 
Hi, I have a class that starts and stops a thread. If an exception occurs inside the thread, the fun...
[2 replies] Last: There isn't. You should catch all exceptions in the thread's main fun... (by jsmith)
by GMXeon
Character Array Manipulation Issues
 
I'm creating a large library of functions to help C++ users with a bunch of basic operations. It's s...
[9 replies] Last: I want to correct one of my examples above because as it is written, i... (by jsmith)
list question
 
Why it doesn't work? #include<iostream> using namespace std; struct elev {char nume , prenume...
[6 replies] Last: Oh, d'oh, you're right. (by firedraco)
by mofako
How to read these text File data?
 
Hi guys, I need to read this text file to get the name, date, number of subjects, subject name and t...
[2 replies] Last: #include <iostream> #include <fstream> using namespace std; int m... (by teresa72)
absolute value function
 
One part of our assignment this week is really giving me problems. What we have to do is create sev...
[9 replies] Last: The xor mask for both can be had by doing (0 - isNegative(x)). The re... (by PanGalactic)
by Such
Models - DirectX
 
Hello guy's I'm new here and I thought this was a good forum to ask somethings: Should I create my ...
[10 replies] Last: http://zophusx.byethost11.com/tutoriallinks.php?first=0&last=4 this i... (by erai)
Trying to get the for loop to work
 
Have a program I was working on that would make a charter converting Farenheit to Celius I would lik...
[1 reply] : Here are some corrections to your code, you should definitely read the... (by Bazzy)
October 2009 Pages: 1... 89101112... 17
  Archived months: [sep2009] [nov2009]

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