cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
I am totally lost on this question
Page 2
I am totally lost on this question
Pages:
1
2
Nov 21, 2010 at 12:12am UTC
Browni3141
(578)
the total for n days is pow(2,days)-1.
Almost, try .01*(pow(2,days)-1) to get it in dollars.
Nov 21, 2010 at 12:13am UTC
qwertyasdfgh
(70)
red line under pow..can't use it
Nov 21, 2010 at 12:13am UTC
rocketboy9000
(562)
right, I keep forgetting that. include "math.h"
Last edited on
Nov 21, 2010 at 12:14am UTC
Nov 21, 2010 at 12:19am UTC
qwertyasdfgh
(70)
i included cmath already still
Nov 21, 2010 at 12:25am UTC
Browni3141
(578)
I tried it with math.h and it works. However, I don't know why it won't work with cmath.
Nov 21, 2010 at 12:26am UTC
rocketboy9000
(562)
are you using namespace std?
Topic archived. No new replies allowed.
Pages:
1
2