ok. I finished up the code finally, but i'm still having the same problem. I don't see how these counters aren't working right. If someone can help me out i'd appreciate it. thanks.
/*...
Type: Posts; User: gunshipolitico
ok. I finished up the code finally, but i'm still having the same problem. I don't see how these counters aren't working right. If someone can help me out i'd appreciate it. thanks.
/*...
i keeps looping the same name and data. i must've put it in the wrong spot.
This is what the .dat file looks like
4
MBanner 35 35 35 35 35 35 35 35 34 35 35 35 36
BHunter 40 20 40 70 35 45 78 34 56 73 15 41 55
GJorgensen 60 62 47 68 40 53 62 88 18 15 72 12 19...
The counter counts right the first time. But not the next 3 times. A little confused on how this happened.
#include <iostream>
#include <string>
#include <fstream>
#include...
how do you find this? i tried this:
fyards = (area ^ (1/3)); //cube root
but i came up with this:
Heres the beginning of the loop:
for (roomCount = 1; roomCount <= rooms; roomCount++)
{
cout << "Enter length for Room " << roomCount << " : ";
cin >> length;
...
I'm trying to find the grand total from two totals inside a loop. I'm getting some crazy numbers. Any help would be great. Thanks.
installCost = yards * 5;
carpCost = yards...
oops....well the fixed everything. Thanks!
ok. I have an error that I think is the main problem:
38 C:\Dev-Cpp\PROG1B.cpp `If' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it...
I'm trying to convert a double to a long int, but i keep getting a warning message saying :
34 C:\Dev-Cpp\PROG1B.cpp [Warning] converting to `long int' from `double'
How do i ignore the warning...
Everything works fine now. Thanks!
ok...im new to this c++ stuff and i was wondering why the last prompt wont come up.
here is my code:
#include <iostream>
#include <iomanip>
using namespace std;