General C++ Programming - July 2011 (Page 24)

by mogha
expat
 
Hi, I need information how to handle comments in xml using expat library. We have comment handler but i don't know the exact use of this.If anybody worked o...
[1 reply] : They will automatically be skipped by the library. You can just overri... (by writetonsharma)
Deleting/Reading Text, and Coloring it.
 
Is it possible to delete or read text you have already written to the console? If so, how? Also, is possible to output colored text? How?
[1 reply] : You can do both if you use platform specific functions. If you're on w... (by hamsterman)
by Phiru
FileFind.IsDot()??
 
I read reference of IsDot function. However, i didn't understand what it meant. Can anyone explain what it is and for what i use it??
[3 replies] Last: Yes. (It's a directory either way though) There is an example given :... (by hamsterman)
Pass an array directly to a function?
 
Hello guys, I'm wondering, is it possible to pass an array to a function directly using C++0x? this what they call initialiser list. I don't get the idea. I'...
[8 replies] Last: Thank you so much bud! I got it :) I'm grateful!! (by TheDestroyer)
X has a pointer to Y, and Y has an object of type X
 
This is a seemingly simple problem from C++ Primer Exercise 12.11 Exercise: Given C++ classes X and Y: X has a pointer to Y, and Y has an object of type X An...
[13 replies] Last: Thanks to moorecm and Disch for your help. To warp up: If Y uses clas... (by JohnBrystone)
by shank8
Random Number Generation
 
I was wondering if anyone knows an easy way to generat random numbers, but in a sequence so that no random number is used more than once? I only need to generat...
[7 replies] Last: It uses two arrays. random_shuffle only needs the array you give it. ... (by hamsterman)
Will someone look this code over?
 
I created this code to validate the sides of a triangle. Could someone give it a look over and tell me what I need to do. I am getting this single error messa...
[18 replies] Last: yeah... you were prompted to press any key twice because you wrote sys... (by hasan shehryar)
Convert Alphanumeric to Binary
 
Hello, I have a program where a user can input alphanumeric value(e.g. 6A000). Once value is entered I need to make sure that the value is not larger than 5242...
[5 replies] Last: Yes hex numbers consist of 0-9 and A-F (also called base 16, 16 differ... (by binarybob350)
General question about inheritance
 
I'm building a program that has a number of different classes and am having a problem with accessing other classes from a non-derived class. I was wondering wha...
[14 replies] Last: [quote=Green Grass]Changing your name is a perfectly viable thing to d... (by ne555)
by utrbc
difference in CPU time for two similar lines, thanks
 
Hi all. There is a while loop in my program, where IterZNext, IterZ are pointers to nodes in a list. The nodes in the list are of type struct with a field calle...
[9 replies] Last: I don't know anything about the VTune Amplifier, but as there are no t... (by kev82)
by gizzmo
Seldon - duplicate symbol
 
Hi, I have troubles compiling the code I write. My code is spread across several header and source files. When I include <Seldon.hxx> in one of the header f...
[2 replies] Last: That is a library, available here http://seldon.sourceforge.net/ (by gizzmo)
How is it possible that this code is escaping from the loop????
 
Hi, I've been stuck on this problem for about 2 weeks and have refused to post my code until now, please help. Somewhere below there is a problem that means ...
[6 replies] Last: It's not actually that complicated, but it's a C thing, that is becomi... (by kev82)
problem with char *
 
I have a problem with char, which is really bugging me. I have: char * newfile = fl_file_chooser("Save File?", "*.txt", ""); in which, fl_file_choser is a...
[3 replies] Last: Thanks a lot for your care. I'm using FLTK to design an interface, and... (by soheilghafurian)
TCP/IP Sockets?
 
Hey Im relatively new to c++ but I would be interested in learning about how to use tcp/ip sockets. I know pointers, arrays, try/catch, linked lists, preprocess...
[2 replies] Last: You might be better off working with an existing networking library. ... (by diedrexler)
Need Help!
 
#include<stdio.h> int main() { char shape; int i=1,k,x,y; printf("Shape :"); scanf("%c",&shape); printf("Column :"); scanf...
[4 replies] Last: thx for the reply and u help (by closed account 9wX36Up4)
by Teo
Segmentation fault for just declaring vectors?
 
Hi, In my main function I just tried to declare a vector and I received a segmentation fault in that line. I am so frustrated because I didn't do anything. j...
[5 replies] Last: Thanks! Now it works. I made a terrible assignment mistake. (by Teo)
by holtaf
Another wtf!
 
I have this code : #include <math.h> int main( int argc, char* argv ) { cout << sin( 45.0 ) << '\t' << sin( 135.0 ) << '\n'; } And the output ...
[2 replies] Last: Aw snap! Thanks Xander314!! (by holtaf)
[Math Question] Projectile Calculation
 
http://www.gamedev.net/topic/605729-3d-bullet-prediction/
[1 reply] : Off the top of my head: Define: T be the target's current position (... (by kev82)
Billing program slight problem
 
there is a problem there in line 64 because the it wont add it will just appear total already it must have added #include <iostream> using namespace std...
[4 replies] Last: Hm, yes the curly braces are misplaced. Back to the problem. It start... (by coder777)
outputdebugstring Dev-cpp
 
Hi Does outputdebugstring work with Dev-C++? I want to do something like char buf ; sprintf(buf,"The value of variable num is %d \n",num); OutputDeb...
[1 reply] : std::cout << "The value of variable num is " << num << std::endl; ... (by Moschops)
July 2011 Pages: 1... 2223242526... 30
  Archived months: [jun2011] [aug2011]

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