User Profile
Collapse
-
well that solves the problem.... but i thought i would have fun making this program. i havent much idea as to the code part of what im doing. -
and NeoPa ..... HOW DID YOU FIND THAT? did you compare the entire number?........ ....Leave a comment:
-
@_@ hmmmm
so how would i begin writing a program with a vector/array? i dont quite know the code just yet. but if you do tell me a line of code i would also like to understand it, so please tell me what it means.......>.>Leave a comment:
-
well i did take a look at it before you took it off.... but it didnt help. at all. it was compleat and total giberish to me. i dont want somone to tell me the code and expect me to understand. i want to know what im doing AS I DO IT........peace by peace.Leave a comment:
-
-
i see... so i would need a more advanced compiler to get a bigger number? or a better computer?Leave a comment:
-
curent updated version:
[code]
#include<iostre am.h>
#include<iomani p.h>
#include<iostre am>
#include<iomani p>
int main ()
{
long double bfn=0;
long int m=0;
char pause;
cout<<setiosfla gs(ios::fixed|i os::showpoint|i os::right)<<set precision(0);
cout<<"type what you want a factorial of"<<endl;...Leave a comment:
-
i totaly understand the magnetude of 3000! thats why i want to find it. as for conio, it was for some function or another that i am useing. now the reson that i am posting here is because i WANT TO KNOW. i want to see how i can do this. everyone says that stuff is wrong and that its too big and that i need more code. well? what is that code? im a beginer! i want to see this happen! 3000! will solve how many posabilitys as to how many DIFFERENT humans...Leave a comment:
-
curent program:
Code:#include<iostream.h> #include<iomanip.h> #include<conio.h> int main () { long double bfn=0; long int m=0; char pause; cout<<setiosflags(ios::fixed|ios::showpoint|ios::right)<<setprecision(0); cout<<"type what you want a factorial of"<<endl; cin>>bfn; m=bfn-1; while
Leave a comment:
-
so can anyone help me actualy write this code? im not far enough to actualy understand a vector thing...... and once again: what would slove the exponents and what would solve the overflow? as for the main () i will change it to intLeave a comment:
-
my teacher says that void main () works with our compiler. int main () also works but thats irrelevent to the solving of the problem.
i havent realy goten into strings yet so im lost there.
i compleatly realize what factorial is and how big it is. the thing is is that there must be a way to:
A) get rid of the exponents and just show the number and
B) expand it so that i can show the whole number without...Leave a comment:
-
Getting Floating point: overflow error in factorial code
i have a program that i made in my class in Turbo C++ on windows 95or98 i belive. it is made to solve for factorials. th problem is that :
A) it puts it in exponents
B) theres too many numbers to count so i need a way to put commas every 3 digits and i dont know how to do that.
C) any factorials over 1754 give the computer an error that says:
Floating point: overflow
here is my program:
Code:
No activity results to display
Show More
Leave a comment: