General C++ Programming - March 2012 (Page 39)

by codrgi
Multi CDialog problem!
 
i cant seem to find the pointers to my other Dlg i have created, i want to be able to access these pointers as soon as the app has opened... this is what i've ...
[1 reply] : Did you set the main window? You can only have one main window. (by kbw)
How to get iterator to work properly?
 
I have written an iterator class which is nested in my AVL tree class. The AVL node looks like so: struct AvlNode { Comparable element; li...
[2 replies] Last: findInOrderSuccessor doesn't seem right to me. For a start, I can't s... (by kbw)
by bk89
c++ text file
 
just need to know how to display one record of struct data from the txt file and show new record at next time
[1 reply] : Here is how to read files: http://www.cplusplus.com/doc/tutorial/files... (by Moschops)
Error Output when a Character is entered
 
Hey guys, can you please help me find the error in my program..Everytime I enter a letter/character...The program just stops...Is there something wrong with my ...
[1 reply] : That's what cin does. You ask it for an int, so a string causes a bit ... (by hamsterman)
cvDistTransform get invert data why
 
i want to get distance data from pictures so i use cvDistTransform ( i am using opencv ), but my output was inverted the black color back white and white back b...
[no replies]
Reversing a string (URGENT HELP!!)
 
I made a program to reverse a string. #include <iostream.h> #include <conio.h> #include <string.h> void main() { char srcstr ,desstr ; int i,len; c...
[1 reply] : Try this for ( i = 0; i < len - 1; i++ ) { desstr = srcstr[l... (by vlad from moscow)
Reading a line with a space in start
 
Hello Everybody. I have a file like this: 7 xASDFG yQWERT zPOIUYTRE ... And I use this code to read this file: FILE *arquivo = fopen("teste.txt", "rb"...
[8 replies] Last: I apologize for my flub its been a while since I did strait c to get t... (by Azagaros)
Does cin.sync() always work?
 
Hi guys (and girls), For clearing the input stream, I know that you can use cin.sync(); , but does that always work (in other words, is it guaranteed to cle...
[1 reply] : > For clearing the input stream, I know that you can use cin.sync();, ... (by JLBorges)
Finding the median from a data file
 
Trying to write code to solve the above problem (finding the median value from a data file). I am having problems. Any hints or suggestions??
[1 reply] : The median is the mid point of the data. If the data was sorted then... (by shacktar)
by Tok3n
why do my min and max values always return the first element of array?
 
I can't seem to figure out or find the right resources in my book or online to find the min and max values of an array of ten random numbers. This is technicall...
[10 replies] Last: Let's enjoy coding~ (by Loving Sky)
how to extend a struct in mingw
 
hey all. i'm using g++, and want to extend a struct, like this: typedef struct _first { int a1; } first; typedef struct _second { struct _first; ...
[8 replies] Last: no, i have both, and i need the same code to work on both, but it does... (by whatsupcb)
Will this give me memory leaks regarding to std::vector clear and erase function
 
As I read in the reference page for std::vector clear function() " All the elements of the vector are dropped: their destructors are called, and then they are...
[7 replies] Last: Hi thanks replying to my posts Would you so kind and give me a good e... (by vietory)
reading xml files
 
I would like to see if there is a way to read xml files, then make a variable for each tag, then fill it in with the contents of the tag. Is there any easy xml ...
[1 reply] : TinyXML . References: http://www.grinninglizard.com/tinyxml/ ... (by closed account zb0S216C)
Balanced Binary Search Tree w/Doubly Linked Lists
 
I am getting an assertion failure with my binary search tree. Debug Assertion Failed! Program: U:\Visual Studio 2010\Projects\C++ Headers\Debug\C++ Headers.e...
[5 replies] Last: if you include something like "windows.h" it will pull in a lot of lib... (by Azagaros)
by Sean O
Reading data from file
 
how would I go about searching a .txt file for a string and return the number as an int that appears after the word searched for. For example my .txt would l...
[1 reply] : I think I figured it out I will search using String::Find, and grab th... (by Sean O)
Way of Programming
 
first of all, hi all :) Its some time Im learning c++ but seems that now I get into a dead point. I think I learned many thinks, and Im getting bored with co...
[2 replies] Last: thanks :) (by julof26)
Simple program help
 
Please tell me how to do this. I am trying to make a program that displays your age using simple math, I'm trying to make it to where it asks if you've had your...
[3 replies] Last: Much obliged it worked. (by d00dlyd00)
by LB
Lowest point in inheritance tree need not be virtual?
 
http://ideone.com/Bjfxl Is is any faster than if B::go were virtual?
[3 replies] Last: @Peter87: wow, I did not expect this behavior. http://ideone.com/zGYyK... (by LB)
Code::Blocks error: expected '=', ',', ';', 'asm' or '_attribute_' before 'CGraphics"
 
What does this error even mean? Here's the CGraphics.h file: #ifndef CGRAPHICS_H #define CGRAPHICS_H #include <GL/gl.h> #include <windows.h> class C...
[6 replies] Last: Thanks. That fixed my problem perfectly. Thank you. (by DethRaid)
Guess Word Game - all vowels shown when guessed
 
Hey all, I have an assignment which I can run the guess game section, to perform from a file of words that end with *** as a sentinel, but the second part of "i...
[8 replies] Last: If you try the word "banana" and enter the letter "n", does it produce... (by taughtteach)
March 2012 Pages: 1... 3738394041... 49
  Archived months: [feb2012] [apr2012]

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