General C++ Programming - May 2009

Problem with creating an array of a custom class in another custom class
 
Hello everybody! In an effort to better learn the workings of C++ and OpenGL, I've been creating a simple engine of sorts where I can make a (probably crappy...
[5 replies] Last: hehe you always wonder, when you see an intelligent sounding post desc... (by tition)
by iffi
file processing
 
what basic fn we can performed by filing ..............give codes also
[4 replies] Last: hey iffi that question was kinda iffy (by Jmartian)
by flux00
Static class design patterns
 
Hi, I have a program with a centralized hub - a static class that maintains all high-level program data that isn't gui-related. It also analyzes all user input ...
[2 replies] Last: Yeah that helps a lot, now what if I wanted to do this without a class... (by flux00)
STL - Traits
 
I'm focusing on getting a good in-depth knowledge of the STL and am a little confuesd/fuzzy on traits . Anyone have a good tutorial on this subject or know o...
[1 reply] : Try to see if you can find some useful information in these pages: ht... (by Bazzy)
by baross
Switch statement almost there
 
I have evrything working correctly except May and march on this nested switch. I am sure that I have it coded wrong. When I input an M...it exits out. Any help ...
[1 reply] : The help given you here http://www.cplusplus.com/forum/general/11460/ ... (by Duthomhas)
3d animation
 
Hi I am looking for a 3d animation tutorial using DirectX. The ones I've found on the internet don't seem to be working and I've failed to understand an exampl...
[2 replies] Last: You can have a look at some of this stuff: http://www.riemers.net/e... (by Mythios)
by baross
Question about swutch statement
 
//My swutch statement is not working correctly ..when I key in May iit is still giving me March and the same thing happens with January and june, Can somone tel...
[4 replies] Last: Once you enter a branch of the switch, it does not repeat the test. So... (by Duthomhas)
Question on Solving a maze using recursion.
 
Ok so i wrote this program, and it finds the exit of the maze, but it has alot of if statements, I would like to know if there is a more compact/efficient way o...
[3 replies] Last: Finally i found this solution at google. I'm trying to digest it. ... (by Jmartian)
Printing binary tree level order
 
Anybody know an algorithm for printing a binary tree using level order traversal but also so that the output is formatted to look like the actual conceptual ver...
[3 replies] Last: Assuming you know the basics of "level-order" (breadth-first) traversa... (by Hammurabi)
rename() system call
 
Hi, Anyone here has any experience of seeing rename() system call stuck for 100 seconds or even upto 7-8 mins..?? I have a code which parses files and put...
[7 replies] Last: pardon^^... my bad-.- (by Incubbus)
by Adalte
Problem with list and node
 
Hi! Please, it's very important for me to solve this problem. I'm very grateful for all hints, suggestions and h e l p with Your code I can get. Thank You in...
[1 reply] : first = new ShapeNode(&s, tmp, 0); // not work: why? Three reason... (by Hammurabi)
Web Browsers Interface
 
Hello friends ! Well I know that the web browsers are made in C++ but I want to ask you people that how is the User Interface for any web browser is made ? ...
[3 replies] Last: Web browser interfaces are made the same as any other. At bottom they ... (by Hammurabi)
by Lorena
Detecting shut-down in a console...
 
So yea, am aware this question probably get asked a ton, but im also aware each time its answered in a pretty vague way (at least the answer i've been able to f...
[2 replies] Last: Indeed it did, thanks again Duoas! ^^ (by Lorena)
Sorting algorithm
 
Hello. Im doing this program where you enter a movie collection and then it sorts it by the length of the movies. I get an error that i dont understand at line ...
[1 reply] : I think you meant to put that loop inside filmsortering(), but forgot ... (by helios)
Few Questions
 
I could get the answers by trying things with a compiler, but I'm very very very busy, so I'm asking here. It saves time, of which I hardly have any for program...
[4 replies] Last: 2. Yes, they're private. The fact that they're defined at global scope... (by helios)
Binary Search Tree AI Game
 
Hello All, I have a question regarding binary trees. What I have to do is create a tree that plays a game and accepts yes or no as a answer to the question ...
[3 replies] Last: Good try eh? I am stuck with the question ans answer section. Let's ju... (by korrupted)
by davist
Need advice on how to input and display values into array
 
Here is what I have so far Any sugestions would be appreciated #include <iostream> using namespace std; char point ; char wpos; char bpos; void b...
[1 reply] : Use separate for or while loops to input and print array values. e.g.... (by buffbill)
by jfq722
ListViewItem constructior question ?
 
HI again, getting my money's worth this week..... Does anyone know why (and they way around) the fact that the ListViewItem class constructor accepts this ju...
[3 replies] Last: HI again - in the interest of closing the loop...sorry...occupational ... (by jfq722)
1 error
 
#include<iostream.h> #include<string.h> #include<conio.h> const int len=30; enum contract{permanent,temporary}; class Employee{ protected: char name ;...
[3 replies] Last: Help me complete it ! You want anything else with it too sir ! ... (by kevinchkin)
by yalcin
Returning a multidimensional array from pointer function in Visual C++
 
Hello, I wrote following code to return multidimensional array from pointer function.Input parameter of this function is one dimensional array, output is poi...
[1 reply] : I don't understand why you allocate memory for result2 in main and the... (by kempofighter)
May 2009 Pages: 123... 17
  Archived months: [apr2009] [jun2009]

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