General C++ Programming - November 2008 (Page 9)

Problem in pointers
 
i am trying to interchange the address of two pointers by the following code but this code doesn't change them. please tell me why is it happening and how to ch...
[2 replies] Last: u r trying to change the adress of two pointers ??? or adress contai... (by grey127)
by sparky
Binary Tree Question
 
Hello, I am lost trying to understand and answer the following question: A full node in a binary tree is a node with two non-empty subtrees. Let l be the...
[2 replies] Last: clarify your question ... (by grey127)
String to Char conversion
 
Hi, I am trying to write this simple program for school where I need to convert a text file to a binary file containing the same information but in binary. Here...
[3 replies] Last: Binary file takes every thing as it exists like if ur putting an integ... (by grey127)
by komal
Invalidate()
 
I need to draw a circle every time the mouse button is clicked ... the problem is that the screen refreshes everytime and the circle previously drawn doesn't re...
[1 reply] : You have to remember all previously drawn circles and draw all them if... (by melkiy)
by quant
argument to struct
 
I want take command-line arguments to struct object and puts it from struct next. struct s{ char **args; }; int cmd(int argc, char *argv ){ char args ...
[1 reply] : Um, you have a lot of errors in there...ok, you first need to use int ... (by firedraco)
Iterator and operator<<
 
Hi All, Just learning c++ and trying to define an operator<< that will print my object. Here is my code header.h: class PyramidSolver{ std::list <P...
[9 replies] Last: You have too many consts. itBegin and itEnd should be of type s... (by jsmith)
break a loop with a keyboard input
 
I have a problem. I want to stop a loop with an input but I want the loop goes on if there is no input entered by the user. My program display a data window...
[11 replies] Last: Actually, I've got to apologize for my own grouchiness --it was unwarr... (by Duthomhas)
Accessing Variables Between Classes
 
Lets say I have my main class declared in a header file, and defined in a cpp file. Main.h #ifndef MAIN_H_ #define MAIN_H_ #include <iostream> cla...
[5 replies] Last: I would recommend to define setter and getter for each data member so ... (by satm2008)
What is the Difference between select() & doing multi-threads?
 
What is the Difference between doing select() & doing multi-threads by createThreads() or so?
[2 replies] Last: Thanks (by f ben isaac)
by z00mit
SetUnhandledExceptionFilter
 
Hi Guys, Have a question regarding the exception filter. I have a MiniDump class which looks like this: class MiniDumpHelper { public: MiniDu...
[no replies]
looping only 5 times?!
 
I'm having trouble. I'm not very good with this but I'm trying to get this to loop only 5 times. I don't have to have to enter a code or a certain number in o...
[7 replies] Last: Yeah, but it won't break the way you have it. If they guess the right... (by firedraco)
by komal
Drawing in MFC C++
 
I want to draw small circles , the number of which depends on user input. Now these circles are to be located such that they lie around a bigger circle...I need...
[3 replies] Last: You should know the trigonometry basics: given a radian angle θ, t... (by Bazzy)
Different names with a-z and 0-9
 
hello ,
[1 reply] : What are you asking? http://www.cplusplus.com/forum/articles/1295 (by jsmith)
by auzun
overflow and increase array size
 
Hi to everyone. I have a couple of question if anyone help i appreciate so much. First i am converting char array to int variable. How can i understand the con...
[9 replies] Last: thanks for your answers mates, something shaped in my brain thanks to ... (by auzun)
Adding elements to a vector
 
If I have a struct like this .. struct Stuff { int stuff_id; int red; int blue; int green; }; and I make a vector of 'Stuff'... vector<S...
[9 replies] Last: As per my knowledge maps implement/use hashing technique and that is w... (by satm2008)
by jrok
check repetitions in an array
 
I am working with some arrays of type char, and before i can use them, I need to check for any repeted characters in the array and delete them. Like for example...
[11 replies] Last: Glad I could help you some. Good luck :) (by satm2008)
Problem with a Dynamic Array of Structs
 
Hi, I'm hoping someone can help me to fix a problem I'm having with part of a C++ assignment. Basically I need an array of patients names, addresses, ID, amo...
[11 replies] Last: Arrays have to be taught as they are a fundamental concept in program... (by exception)
Edit Registry
 
How can I edit a registry value, especially a REG_SZ one. I have read "Grey Wolf"'s reply but my Visual C++ 2008 Express compiler gives an error saying that "...
[3 replies] Last: Google is your friend :) (by firedraco)
by komal
maximised dialog box in MFC
 
How do I set the dialog Box to open in maximised mode ?? Basically I'm looking for a command to declare in OnInit() function.
[1 reply] : From OnInitDialog, call: ShowWindow(SW_MAXIMIZE); http://m... (by Lodger)
by Cminor
C sscanf formatting
 
I can't quite get this figured out. sscanf (StringName, "%*[^0-9]%d::%d::%*d::INSTR", &1stVar, &2ndVar); This writes into Stringname "VarA::VarB::VarC" where ...
[1 reply] : You are not quite right: sscanf READS from StringName. %*[^0-9]... (by guestgulkan)
November 2008 Pages: 1... 7891011
  Archived months: [oct2008] [dec2008]

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