Thanks dwks for taking the time to help me improve.
Type: Posts; User: mejv3
Thanks dwks for taking the time to help me improve.
Here is my final code that I am turning in. I know it's a mess, but I have to turn it in just a few hours from now. Their was a lot of stuff I threw in because of problems with 0's and '0''s.
Thank...
How do I find how many digits are in the string after the user inputs them?
The compiler won't let me use strlen because they are numbers. I"m not firing any other function to use.
I'm having a tuff time figuring out how to pad the numbers with zeros after the user has input them. I was going to use strncpy and copy the string to itself, but the compiler doesn't like that.
...
Thank you for your help so far, my program has come a long way. It is currently working except when the last number has a carry or the number isn't the same length of digits.
I know I"m going to...
I posted a previous thread but it is pretty much dead, so here is a new one.
I'm trying to add to very large numbers digit by digit that the user inputs.
I have it working as long as the numbers...
Here is my code now:
int main(int argc, char* argv[])
{
unsigned char number1 [256] = {0};
unsigned char number2 [256] = {0};
unsigned char result [256] = {0};
int i, y=0, x=0, sum=0,...
Hi, I need to write a program where the user inputs 2 numbers and the program will add these two numbers together digit by digit because it has to be able to handle huge numbers. I am storing the...
the stdafx placement helped me out a bit
I was able to fix all the problems from there
thanks
Is there a way to make visual c++ express do that?
Here are my instructions:
Create an “Animal” base class. This class will have size, weight, and eyeColor as instance variables. It will have walk() and print() as methods.
Create a “Dog”...
Thanks. That actually helps alot.
I will get back and let you know if I have any problems.
By putting the rabbit class together with the main.cpp, you mean just make sure the names are the same,...
I have an assignment where I hav eto use a string. I kinda know how to use the pointer based string, but don't really know how to use class based string, so thats the reason for this post...
This...
thanks
RF:
This is an online class and I only have the textbook to go by, which is
confusing to me. The teacher doesn't post any lectures to help us out.
Enahs: I just need to know to build the...
Whoa, that just confused me so much. I'm a newbie at this stuff.
Here are my directions:
Construct a C++ class named “Cruncher” that implements a “factorial” method. The “factorial” method shall take an integer parameter, validate the parameter’s value as...