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 need to set up break point to catch exit from dll(dll unloading...
[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: int x = 8; cout << (float) x / 100.0f << endl;
[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 works obsolutly fine, but void is getting me confused, prof sai...
[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.txt. -The sequences must be in increasing lexicographic orde...
[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 = 1 z = 2 if num = 3, another group a3 will be appended...
[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 file struct Node { Node(size_t max, Node *previou...
[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 though it looks like the full range of ascii characters. funn...
[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 stones' game and I can't find it. Can someone give me a link or ...
[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: #include <string> #include <iostream> #include <vector> usin...
[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 in advance if some of my code doesn´t make alot of sense, 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 some class B atributes and some of it's methods use B class m...
[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 YARDS_IN_MILES = 1760; class Distance { int feet; in...
[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_name ; char birth_date ; int stud_id; char addr...
[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 function will silently stop without signaling the main about th...
[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 similar to boost, but more general purpose functions and is m...
[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 ; float v ; }; struct list {elev date; list *adru; }; ...
[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 the result from the text file. I'm Kinda stuck at the subject...
[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 several functions (isNegative(),isEven(), isOdd(), negate(), ab...
[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 own model code, or use a already created one?(like .X, .MDL,...
[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 like to use the for loop here is my cody so far. Sorry if it is...
[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.