General C++ Programming - March 2009 (Page 2)

by Gaylle
(solved)please correct my sourcecode.
 
my answers are wrong. dont know what is wrong with the code though there are no build errors. ...
[2 replies] Last: thanks outsid3r. i've organized the program better now and my output i... (by Gaylle)
B-tree degree 5?
 
Can someone tell me what a B-tree of degree 5 means
[3 replies] Last: Does this mean that the root node can initially hold up to 5 pieces of... (by jpmcfly)
[SOLVED]C-Style Input Output with a linked list
 
Well if anyone can point out what I'm doing wrong. Output seems fine but the input crashes on me. As...
[4 replies] Last: That'll do. You could maintain a pointer to the end of the list (th... (by kbw)
by miko87
returning a value from a fuction
 
Here is the problem: Write a program that uses a void-function called FindCylinderVol that has as an...
[2 replies] Last: thanks!, Gumbercules (by miko87)
Qn on command line arguments to program
 
for c we have int main( int argc, char* argv ) Is it possible to replace char* argv with an arr...
[3 replies] Last: I will often just do it like this: #include <iomanip> #include <i... (by Duthomhas)
by mykolg
Error reading in Enter key stroke
 
void BookInfoData::Descend(){ bool junk; string key; do{ ...
[4 replies] Last: if you are working on windows then a new line is a combination of \r\n... (by writetonsharma)
(SOLVED) template heap data structure giving linker error 2019
 
I'm working on a class project, using Vista 64bit, MSVC 2008 Express. The heap sort that I'm trying ...
[1 reply] : Solved my problem, I forgot to enter in the code for the right child i... (by clowkun)
While loop
 
so im doing this exercise in a book i recently purchased and i can't figure out how to do it. actual...
[4 replies] Last: translore thats a great solution but I think it might be a little too ... (by clowkun)
Stack use
 
Hi, My code needs to get string from user and check if it is consisting of its reverse. Do I need...
[3 replies] Last: where is the code? are you talking about palindrome strings??? (by writetonsharma)
Files within Folders, how do I access them?
 
OK, so I'm working on a project for my class, and I have a problem. They ask us to keep data files ...
[3 replies] Last: to find files in a directory use opendir, readdir and closedir functio... (by writetonsharma)
Char wont work
 
Hi. I'm not having a big problem. just curious why it wont work. It will convert yen and pounds to ...
[1 reply] : I think because you can give floats in scientific notation using "e", ... (by Gumbercules)
by jzackt
problem with pointers in my function
 
I'm pretty new to C and it seems like the only thing that is breaking my code is my lack of knowledg...
[3 replies] Last: What do you mean the way I was casting? (by jzackt)
binary files on different computer with different word size
 
Let's say I have a structure containing ints. I have 2 computers one which the size of an int is 16 ...
[1 reply] : I generally typedef my own types which are an exact bitwidth. <stdint... (by Disch)
Whats wrong with this linked list?
 
Any time values get entered into the list nothing happens nor have they been added. Here's a sample ...
[7 replies] Last: All good fixed now :) Thanks. (by Mythios)
Memory Leak?
 
I have a vector of dynamically allocated objects. Will a vector's erase function free up the memory ...
[11 replies] Last: When I do this: //TreeFromListConstruction.cpp ... delete myList... (by translore)
ASCII file input
 
I need to use ASCII files as input to my program, and haven't got a clue about how can i do that (th...
[1 reply] : http://www.cplusplus.com/reference/iostream/fstream/ open with //... (by Gumbercules)
array
 
hey! i am not able to understand what a monotonic boolean array means? i know that monontonic mea...
[15 replies] Last: im really sorry... i wouldn't wanna bother you with this any further..... (by hugsnbugs)
conversion
 
I have written program to do conversion between decimal to any base between 2 to 26.. but I cant ha...
[4 replies] Last: check this function void conversionGreater(int no,int base) { ... (by sara khan)
by hurryo
class question
 
struct ExperPilot { unsigned int xpIdNum; double xpFlightTime; };//ExperPilo...
[no replies]
by tition
warning C4239: operator overloading
 
Dear all, I am writing my own classes for operations with large integers (as an exercise, althou...
[5 replies] Last: Thanks both of you! will do it the right way hehe... (by tition)
March 2009 Pages: 1234... 21
  Archived months: [feb2009] [apr2009]

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