Did you write that yourself?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
Wanna know how I knew that. You have a function but with no actual declaration of it. (no Sh*t sherlock!)
Word of advice. Don't try cheating. Try it yourself from the beginning. You'll get a lot more out of it.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
this way:
int N;
cout<<"Please input n";
cin>>N;
for(j=0;j<N;j++){
temp=temp+temp+1)
}for(i=temp;i<n;i++){
i=i+i+1;
cout>>num;
}
hope u don't mind i used ur code jimmymerchant...
but that's the way it will work with an user input...
Nichito
Posting Virtuoso
1,602 posts since Mar 2007
Reputation Points: 424
Solved Threads: 57
Nichito
Posting Virtuoso
1,602 posts since Mar 2007
Reputation Points: 424
Solved Threads: 57