1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#include <iostream>
#include <string>
//record for loads on beam
struct load_values
{
int service_class, //to store value of service calss type
gk_load, //to store value of either 1 or 0 - could use bool
qk_load, //to store vaule of either 1 or 0 -could use bool
load_no;
float unfactored_load, //to store value of unfactored load
factored_load, //decalre float variables for loads
duration_class; //to store details of duration class
}cases[50];
//record for member details
struct member_details
{
float member_length, //to store member length
member_width, //to store member width
member_depth, //to store member depth
member_qk_factored_load, //to store unfactored load
member_gk_factored_load, //to store factored load
member_max_moment, //to store moment
member_shear; //to store shear value
int member_type, //to store member type for quicker search
member_no; //to display record number
std::string member_name; //to store member name e.g. beam or column
}record[100];
//record for timber properties
struct timber_strength_properties
{
std::string timber_grade; //declare string variable
int values[13][18]; //declare integers to store value associated with grade
};
//record for sawn timber dimensions
struct timber_properties_sawn
{
int width,depth,area,Wyy,Wzz,Iyy,Izz,iy,iz; //decalre integers to store values for timber sawn
}table1[9][50];
//record for planed timber dimensions
struct timber_properties_planed
{
int width,depth,area,Wyy,Wzz,Iyy,Izz,iy,iz; //decalre integers to store values for timber planed
}table2[9][50];
|