General C++ Programming - July 2010 (Page 17)

Vector::push_back() called before constructor?
 
I have a project with 2 static libraries. Library A contains some generic tools I use in most of my project. Library B contains some specific uses of Library ...
[3 replies] Last: In case others read, the C++ standard guarantees that if A and B are s... (by jsmith)
Game Devlopment Programs
 
What are the programs I need to make games?
[3 replies] Last: What are the programs I need to make games? What programs? If you... (by Return 0)
command line tokenizer/parser
 
Hello everyone, Can someone give me advice about books or other sources about creating command line parsers / tokens in a project? I'd like to learn about it...
[6 replies] Last: Hello athar, I want to write a parser inside the program , just to tra... (by anotheruser)
Errors while reading & writing to XML
 
I have a code which reads XML ,converts read data to a string & returns this string.Another function creates another XML processing this string data.Now I got e...
[3 replies] Last: @Athar I could be wrong but I am not entirely sure that you can rel... (by Galik)
by BEST90
Equations in C++ ?
 
Hello dear people from C++.com Once again i need your help guys. I have a question. How can i return an equation as a equation (i mean the things from school...
[8 replies] Last: ha ha! i made a mistake of writing. (by beginning)
RPG Textbox
 
I'm making an RPG game, and I've made a function that draws the textbox to the screen. It's almost functional, but there are a few bugs that I can't figure out....
[6 replies] Last: Eh, any answers? (by PiMaster)
searching and sorting arrays... plus bool validation
 
so i'm supposed to create a program where a user enters a lottery number and it searches the array of lottery numbers to see if they're a match. i want to know...
[no replies]
ANDing pointer?
 
Hi Suppose I have the following: const char*a="1111"; const char*b="1111"; The contents of a and b are binary numbers and I wish to AND them and sto...
[3 replies] Last: How many "bits" does you string a or b have? if less than the support... (by jmc)
Errors with a struct.
 
Hey, Heres an example of the code i use. struct PLAYER_STATS { bool bTEST; }; PLAYER_STATS m_PLAYER; then i'd do like: void SET_...
[3 replies] Last: @ stravant: You fixed my problem, cheers! @ Skillness: Thanks... (by Ravskie)
Issues with trig functions
 
Please bare with me as this code I'm posting is not a finished product. It was only to see if my math was working correctly. This is a simple program to calcula...
[4 replies] Last: 45 c radians is one hell of an angle... (by Galik)
by qhimq
Forwarding Exceptions
 
How are you supposed to catch an exception and throw it again? Currently the following exception is deleted after the first catch. When next catch comes the e...
[3 replies] Last: ahh thanks :) (by qhimq)
how can I copy my array into a list?
 
Hi all, from the reference section on lists, I performed the following operation: Initialize an array of consecutive digits. Copy that array into a list ob...
[2 replies] Last: Right I did notice the difference between the static array and the poi... (by eggmatters)
C++ Coding Logic - Various Ideas
 
I want to write a method to determine if a given string is a palindrome. E.g. "Madam I'm Adam", or "A man, a plan, a canal, Panama". The prototype for the f...
[7 replies] Last: Yea, sorry, mixed that up. char & ~0x20 == uppercase char | 0x20 == ... (by stravant)
Inplace conversion of partial strings to numeric data
 
I know how to use the basic strtod, strtol, etc functions and have seen the use of stringstream but what I want is the ability to covert the middle N characters...
[1 reply] : std::string text; // number is in this string size_t pos; // p... (by Galik)
How do we implement Garbage Collection In C++
 
Hi Guys, I have been off this forum for a couple of days. But I am back with a new question How do we implement garbage collector in C++?? My ini...
[10 replies] Last: People, read the thread before posting. He doesn't want garbage collec... (by helios)
Questions on Pointers
 
I have two questions. Question 1 ========== if we say static int i; the variable i is initialized to 0 by default. static int **a; a = new int...
[6 replies] Last: Oh! I just realized. Don't make static pointers to dynamic memory. Yo... (by helios)
OpenGL using glut ,how to modify my code to draw a cube
 
dear all i am a newbie to openGL, and i just typed codes in my book,but it seemed to have problems there. when the programme run,nothing showed except for ...
[no replies]
by korg
Exercises in Recursion
 
Hi, I am having problems thinking in recursive terms for solving a problem? Can you guys suggest some problems which are a fit for recursive domain ? - Reve...
[2 replies] Last: Recursive descent parser. Very fun to make, as you start out simple, a... (by stravant)
by roohan
setters and getters?
 
ok so my cs 202 class is in full sail and i gotta learn about oop. So i need to get rid of my structs and start using classes. My professor told us that we need...
[4 replies] Last: I'll use the node class as an example, it's fairly simple, the only co... (by stravant)
Visual C++ Express 2010: How to add directories
 
How do you add #include directories (For example, a DirectX API) to the compiler's list in Microsoft Visual C++ Express 2010?
[2 replies] Last: Thanks. :D (by soccermiles)
July 2010 Pages: 1... 151617181920
  Archived months: [jun2010] [aug2010]

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