Beginners - December 2010 (Page 32)

Tree
 
please help me complete BTree::RemoveNode(Node*Node) // BTree.h #pragma once class BTree { private: class Node { public: Node *left, *right; ...
[2 replies] Last: and put it within code tags like so [co de] your code [/co de]... (by coder777)
loops and arrays
 
Hey, ive just started learning c++ assembly, kinda getting the hang of it but ive got stuck on loops and arrays working together. Basically i've got to...
[5 replies] Last: [quote=Cragsterboy]my main problem is putting user inputs into arrays!... (by coder777)
Main DLL use other DLL's return value
 
Hi Friends.. Currently i use VC++ 6.0, and Windows XP SP3 I want to know how to use other DLL's return value to be used in my Main DLL, Is it possible?.. ...
[7 replies] Last: Hi coder777, by the way, thanks for your replies.. now, i have alr... (by leomifare)
by MissG
Number that corresponds to ASCII table?
 
Hello all, Beginner C++ programmer here... I need to write a program that asks a user to input a positive number, and once they do, it asks for options for t...
[1 reply] : Hiya! It appears that it's your first post, so welcome to cplusplus! ... (by Thumper)
by wtf
Would this work?
 
for getting the size of the cin buffer? #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int getsize(istream & file) ...
[6 replies] Last: well anyways I've read the documentation for seekg and it states that ... (by wtf)
by talt1
My code does what I want it to and then some?
 
Hey, normally I would see this as a good thing but in this case its not. When I run this code the first 8 lines it spits out is exactly what I want. Why is it...
[4 replies] Last: You should reread the section on "populating an array using pointers" ... (by Zhuge)
by mwmnj
assigning varibles within a loop in order to exit?
 
I am trying to make the exit condition for a do ... while loop become true by assigning variables within the loop. As of right now, im stuck in an infinite. N...
[4 replies] Last: That's because in that case, loanAmount * monthlyRate > monthlyPaymen... (by Zhuge)
Pointer as private member data
 
Hello. I'm currently having issues with a program that has a pointer of type double as a private member data of a class. I took a snippet of the code and create...
[3 replies] Last: Not having a copy constructor/assignment operator are a different prob... (by Zhuge)
Printing a vector in the main function using get and set Functions
 
So I'm trying to program a game for my C++ class, dealing with subclasses and polymorphism. This is using Object Oriented Programming of course. Here is the ...
[19 replies] Last: so apparently, playing sound is really easy... http://www.flexbeta.... (by ERanz21)
by Sean 1
Quick question
 
If a program where to have a "typedef double Etype", what would something like storageM(new EType ) do (storageM is also of type Etype(this means storageM is ...
[1 reply] : Yeah that sounds right. This is called polymorphism and is a fancy\con... (by Computergeek01)
by mwmnj
loop executes regardless of conditions validity.
 
For some reason this while loop executes regardless of whether the condition is true or false.I even changed the condition to something very simple like (paymen...
[2 replies] Last: bingo. Thanks a lot (by mwmnj)
what(): std::bad_alloc
 
Hi everyone! I'm writing a program that requires tensors. Managed to make it work for a small test (small tensor size), but as soon as I made the tensor size ...
[5 replies] Last: @quirkyusername (111) You are right, I think I'm going to modify th... (by jovillal)
Problems with String.replace
 
Hey folks, i tried to manipulate my strings a bit but have a few problems after being abstinent for a few years in things like coding. My Line is: str...
[3 replies] Last: @Snarky with erase i have a similar problem @coder777 this is rig... (by StringBoy)
Can't get correct output.
 
So, I'm writing a program for C++ class assignment. The program works except for one little thing. I can't figure out why it will not show the total cost. C...
[2 replies] Last: That worked perfectly. It was so simple that I completely overlooked i... (by Zeppfan)
Finding palindromes using a stack
 
I am currently working on a program to test if a word is a palindrome, using the stack, and I am having trouble figuring out how to do this with the stack. As t...
[2 replies] Last: Ohh, yeah, I guess I overlooked that. Thanks. (by meeztered)
by nels15
Why doesn't this work?
 
#include <iostream> #include <string> #include "Animal.h" #include "Liger.h" using namespace std; int main() { //Animal MyAnimal; Liger Leo; ...
[4 replies] Last: Sounds like you need header guards. (by firedraco)
Passing Variables by Reference
 
I was going through the c++ tutorial form this website, the pdf version, and came to the functions section. It talked about passing variables by reference. I ...
[2 replies] Last: Thanks! Glad to know I've got the right idea. -Ameobea (by Ameobea)
by PatIre
Clearing an array.
 
Hi there. I'm not 100% sure that the array is my problem but thats what i think it is. When i loop back to the top of my main code it seems the values from the ...
[2 replies] Last: Thanks for the hint mate :) I think i have it now but this is a total ... (by PatIre)
by rv2010
a exe in c++ boot at windows start but not working, run manually it works
 
Hello, I created a small application in C + + with Visual C++ 2010 Express. No error message. - Started manually: everything is OK (it wrote a text in a txt f...
[2 replies] Last: hi Shredded, it was indeed a problem of relative path, I put it in ab... (by rv2010)
Writing/reading class object to/from file
 
I have successfully stored an object that contains strings and numerical values in a file, but when I try to read and display from file the stored strings are n...
[11 replies] Last: I've managed to write and read from a binary file strings and integers... (by kkostas)
December 2010 Pages: 1... 303132333435
  Archived months: [nov2010] [jan2011]

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