I want to create the root pointer in my program not in the class
bst.h
--BSTtree class (no pointers)?
bst.cpp
bstprog.cpp
&&&&&&&
what does this line do/mean
Type: Posts; User: student2005
I want to create the root pointer in my program not in the class
bst.h
--BSTtree class (no pointers)?
bst.cpp
bstprog.cpp
&&&&&&&
what does this line do/mean
I think i have the push working .... at least no errors when I run it, but I am lost with the pop .... & in the program how do you 'push' & 'pop' the number to the stack????????
bool...
I have two classes (number and stack), I have to take a user input number and convert it into binary, hex, and octal. Im getting there but how do you 'push' the remainder on the stack? Do you do it...
program isn't working....I have been working on it and reading. Am I even close?
The program has two classes, one for the data, one for the stack. The program is supposed to get a number from the...
int number=0; //was me trying out something
the math is to convert a decimal # (user input) to a binary #
I have to write a program that converts a decimal # (user input) to a binary #,...
got any ideas on how to fix this one?
***I know that this is posted twice...I have tried to delete the other one, but the system will not let me***
What is this error?...this program is not working properly
#include <iostream>...
What is this error?...this program is not working properly
#include <iostream>
using namespace::std;
int binary (int num);
int main()
Can someone please explain recursive to me?! I know that recursion is a function calling itself, but when it says
n = 4
int funt1 (int n)
{
if (n == 0)
{
return 1;
}
Im confused. I need to write a program that takes a user input number and converts it into binary, octal, and hexidecimal.
The stack is to be set up as a class.
6/2 = 3 remainder = 0
3/2 =...
Thank you very much it works great now
please help me...the do-while loop will not work
It will go through properly the first time and then the "Want to enter another comes up but if you enter "1" it will ask again "Want to enter...
when I run it
the first line is the string I entered
the second line is a bunch of goop
the third line is the string I entered again
#include <iostream>
#include <iomanip>
#include <string.h>
using namespace::std;
void encrypt(char string[], char key[]);
void decrypt(char string[], char key[]);
int main()
{
user input - a sentence of up to 80 characters / spaces
got the user input to work but how do you take the user input and change the order of the characters? and maybe even input a number or ()&%#@...
nope need 2 functions
Can someone give me a hint on how to start. Im working within visual studio c++ 2003
obtain a word/sentence (up to 80 characters) with spaces from the user
2 fuctions:
1. encrypt the...
Anyone know how to create a datatable from the dataset? and where to put it in the program....I've got a C++ windows form program that is supposed to start displaying a small access db. I've got...
I didn't realize I was in the C board when I wanted into the C++ board and when I went to delete the C board I couldn't...
C++ database
With Visual Studio.Net's C++ windows form I have an Access database.
The db(access), the form, the dataadapter, and the connection is done.
The dataset is to be programmed through...
With Visual Studio.Net's C++ windows form I have an Access database.
The db(access), the form, the dataadapter, and the connection is done.
The dataset is to be programmed through the program not...
Can anyone tell me what is wrong with this....I keep getting one error about ..
'initializing' : cannot convert from 'Book ** ' to 'Book *[]'
Any help would be appreciated....
[code]
//class...
I think i made the structure right???, now I have to make it work with the functions....some by reference, some by value... the program works right without the structure (which gives me my first clue...
the first function works i can enter information, but when I call the second function it's supposed to display the information from the first function...do I 'by reference'? where do I put the & and...
the problem is that when i choose 1 and enter the information when I click enter after price it will show the calculate function information..
quantity = 0 & price = 0
#include "stdafx.h"...