General C++ Programming - April 2011 (Page 5)

by yunru
Remove from Binary search tree
 
Hi guys, Im having trouble with my remove function in my binary search tree, i can delete a node which has left or right nodes but not one that has both(left...
[1 reply] : http://en.wikipedia.org/wiki/Binary_search_tree#Deletion (by kbw)
Function Template - Insertion sort
 
Hi, I am new here. I got this homework due tonight. I have been working on this code for a while. This works fine and compiles but it crashes at run time. I am ...
[1 reply] : You say this compiles? It doesn't in VS2005 as is. I can make a few ch... (by Durwood)
Copy an Array of structs
 
Hi, In my C++ code I have a Structs Array and I want to move the data from one position to another. Is there a C++ function that lets you to do it easily, ...
[5 replies] Last: Thank you very much. Very useful. :D:D Regards, MarĂ­a (by lestatgirl666)
Decryption
 
I have to decrypt two files(Cryptogram1 and Cryptogram2). I have the program that encrypted the files, and I have to switch part of it in order to change progra...
[2 replies] Last: I love all those magic numbers: temp1=theChar-96; n=n % 8; if(temp1>0... (by kbw)
by Kocoo
draw a triangle
 
Hello... for a school project, i have to make a program that draws a triangle.. as input you insert the lenght of a,b and c sides.. I don't know how t...
[5 replies] Last: Oh. sorry. when you have y, since point A is at the origin and line AC... (by hamsterman)
reviews on my c programming website
 
Hello friends I am a software engineer and in c programming testing team at 'Adobe systems' have made a new website on c programming.Now it mainly have tutorial...
[6 replies] Last: pankajchandel007, you said you work in adobe. i dont know adobe or an... (by writetonsharma)
How to overload []
 
Hi, I'm curious how I would go about overloading . I have an exam tomorrow, and on last years exam the prof asked the following question: Make a class t...
[2 replies] Last: class F { int *value; ... public: int& operator (int ind... (by Mathhead200)
Template Linked Lists
 
I have been working on an assignment in my CSII class over Linked Lists in template classes and would like someone to take a look at this. (I am not asking anyo...
[13 replies] Last: Hi guys, I've started learning Linked Lists and I'm looking up at on... (by waqqassheikh)
code help
 
I need to read data from a file and I know im missing a while loop. the name of the file is "books.dat" I need to take this: fp>> books; fp>> shipping...
[1 reply] : for (int i=1; i <= books && fp; i++) { fp>>prices; sum+=prices; } ... (by screwzm)
insert number in reverse
 
I got a question: if i want to insert even number of 1-10000 for BST in reverse order. this is my code for insert even number 1-10000 for (int i = 1; i<1...
[2 replies] Last: well done (by screwzm)
by xyz123
Question about using structures as a database
 
I want to make an airline reservation system using C++. It will have various options like: 1. Book a flight 2. Search for passenger name 3. Cancel a flight...
[4 replies] Last: Thanks fpr your help webjose. I will try connect it with mysql. (by xyz123)
Tutorials needed.
 
i need some tutorials for multi threading in c++ googled for it but ain't got any good one.. can any one who has is share it..
[6 replies] Last: Thread safety is one major topic I would recommend. Features like crit... (by sohguanh)
Carrot Symbol
 
Hey, I know on a calculator a carrot is used a certain way, like in an amortization table. How do I use it in c++ in that same way like this: var = var^(t*12...
[2 replies] Last: BTW, a carrot is a vegetable. The chevron-shaped symbol you are thin... (by Duthomhas)
Qn on buffer overflow
 
#include <string.h> #include <stdio.h> void foo (char *bar) { float My_Float = 10.5; // Addr = 0x0023FF4C char c ; // Addr = 0x002...
[2 replies] Last: huh? assuming that its a 32bit computer, then shouldn't the float occu... (by unregistered)
An array of objects...Within its class?
 
Hey yal, first of many posts here. I'm at a crossroads in a project i'm working on at the moment, but i'm very near the end... I'm trying to create an arr...
[5 replies] Last: even if i do the same sort for last name payRoll temp; ... (by thePantsProject)
Cursor Position
 
I'm making a hangman game in console c++. I need to change the cursor's position and would also like to change the color of certain outputs - not everything. ...
[4 replies] Last: @ torchi12 Yes, my way is like that, but doesn't do anything evil. Yo... (by Duthomhas)
Select Device Based on IP Address?
 
Hello, First, let me apologize "if" this is in the wrong forum! I am trying to figure out how to write an application that will compare IP Addresses (on Windo...
[1 reply] : Well, This looks incredibly complicated, but mabye one of these links ... (by Rtme)
by Rtme
SDL Buttons and Text.
 
Well... I have started learning SDL, and I think that I am getting to understand it, and I have used Lazy Foo's Tutorial, but there are 2 points, that I don't g...
[no replies]
Newbie Question, your help is needed.
 
Hello, i'm working on an assignment for school. i'm doing in visual c++ using borland. i have a requirement to do the following: 1. Load Given a txt file which ...
[6 replies] Last: @ LB : That only matters if the file you're reading from mixes the tw... (by Computergeek01)
recursion (part II)
 
I have a working program here with two recursive functions. The assignment here is: a. Write a recursive function writeLine() that writes a character repeat...
[13 replies] Last: Finally got a working program lol #include <iostream> using namespa... (by camouser)
April 2011 Pages: 1... 34567... 37
  Archived months: [mar2011] [may2011]

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