Im trying to figure out my errors in the following code. Any help or advice would be great.
***********************************************************************
*// Write a program to calculate the total weight of the rebar used **
*// The input specifications are these: **
*// Use a 2-D array named bar_data [20] [3] to read the ASTM **
*// standard reinforcing bars' size, weight, and diameter. **
*// Use a 2-D array named bar_used [10] [2] to read the bar used **
*// and length for the basement. **
*// **
***********************************************************************
#include <iostream>
using namespace std;
const int MAX_NUM_ROWS = 20, MAX_NUM_COLS = 20;
Did you include the comments in front of the #include <iostream>? Those are not legal C++ comments and would confuse the compiler when it tries to read <iostream> which presumably includes the Dev-C++ specific config.h header.
The last two warnings are from your assigning a double to an int, which I pointed out in my earlier response.
Thanks for the heads up. Ive placed comments in my codes before and never had a problem. But that cleared it all up. As for the double and int, should i be using int instead of double?
the program compiles and runs like it should even with the warnings. The only thing i could do would be lining up the rows so the centered. Thanks again for your help. This isn't easy while deployed.