General C++ Programming - March 2013 (Page 7)

want to return a node using recursion
 
So the task is to find the node with minimum value of a binary tree (not binary search tree). the in...
[1 reply] : CPPtr minimumvalue(CPPtr SP){ CPPtr min = SP; //node of minimum va... (by zhangxu92)
Seek steering
 
Okay, I am having a serious, serious problem that I just cannot resolve. It's C++ and DirectX, and i...
[3 replies] Last: How would I apply such theory to this structure? Really the only w... (by Disch)
Placing Battleships C++
 
I'm trying to place battleships in my battleship board which I've already created using a sub routin...
[no replies]
from octal number to decimal
 
HI, I nead to write a program that convert an octal number to decimal number, I thought I did it ri...
[1 reply] : Hi Sharon! I think the main() function needs to be type int rather th... (by WhiteSparkle)
How do i connect to my MySQL database?
 
I have so far tried MySQL++, ODBC, SimpleDB, and the MySQL C++ Connector. All of them give me a FLOO...
[7 replies] Last: Have you properly linked the SQL libraries? Undefined references are t... (by closed account zb0S216C)
Create Combinations from Vectors
 
Hello all, I am new to C++ programming and have an interesting question that I can't seem to find...
[no replies]
for loop
 
i have assignment about for loop and this is the instruction for the program (Prompts a user for n...
[1 reply] : I think your formula is the problem sum=numExams+sum Besides the fac... (by zoran404)
Reading group of numbers per line in text file
 
I am working on a project for school that has us read in a text file that contains 8 lines of SSN an...
[1 reply] : getline reads file till first nev line char as for the fifference diff... (by zoran404)
Dungeon crawl
 
im trying to code a simple text based dungeon crawl i am just testing so far and its not working thi...
[1 reply] : What specificaly is wrong? What should it do and what dose it do? (by zoran404)
Functions without parameters
 
Summary: 6 companies have a product in 5 different warehouses. Each company is identified by a posit...
[17 replies] Last: thanks you i solved it :) (by baketballcourt)
How Remove An Element Of A List
 
How can I remove an element in a list when I have only an iterator that points to the object I want ...
[2 replies] Last: Thanks, pointers on steroids :) (by martianxx)
read a string
 
char name ; To read a string from keyboard. what should i use : this : cin>>name ; or this : ...
[3 replies] Last: I recommend cin >> setw(10) >> name; , otherwise you risk buffer over... (by Cubbi)
Classes Callback problems , Delegate
 
my delegate.hpp #ifndef __DELEGATE_HPP__ #define __DELEGATE_HPP__ class Callback { virtu...
[1 reply] : line 30 of delegate.hpp: ( This ->* func ) (indata);//If you don't k... (by MiiNiPaa)
Code to write a program to a file
 
Can someone send me the basic code for writing output of a program to a file? I can't seem to find i...
[2 replies] Last: That's the one I found earlier. Thank you for confirming it works! (by madeinsilence)
help explain
 
i have a infill code,but the problem is that i don't understand why put ! in this code(!in.is_open()...
[1 reply] : The ! is a logical "not". You already know that: if ( in.is_open... (by Stewbond)
Case and or C++
 
Hi guys I have a question; Can I use case argument with an or parameter? Example. switch(lol) ...
[4 replies] Last: Yeah nice one, thx all :D Sloved (by puntoinfinito)
by Banhas
Segmentation fault
 
Hey guys. Yet again, I have this type of problem, I was wondering if anyone could give me a hand wi...
[7 replies] Last: What are the values of i and j at the time of the crash? (by MikeyBoy)
Loan Calculation
 
I'm new to C++ and haven't been able to practice some of it because family issues (loss of member)an...
[no replies]
STL and FILE I/O problems
 
Hi! I'm experiencing some problems in C++... 1. STL I'm using a map template like:- map<string...
[6 replies] Last: map<char*, char*> table; table["why"] = "word_why"; table["hello"]... (by Abramus)
HELP NEEDED. IPO CHART
 
hi there. can anyone help me with the ipo chart? I have the pseudocode with me. Its due in 2 days. H...
[1 reply] : What is "the ipo chart"? We don't have the one you have. (by LB)
March 2013 Pages: 1... 56789... 51
  Archived months: [feb2013] [apr2013]

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