I have a struct
struct MyStruct
{ string Airline_Node; // Name of up to 20 letters
int Flight_Node;
string City1_Node;
string City2_Node;
int Cost_Node;
int Passangers_Node;
};
In my main I made a dynamic array of structs and now I want to compare the variables
I tried
bool Compare_Flights( struct *Mystruct1, struct *MyStruct2){
//compare code
return true; //true or false depending on compare code
}
but I keep getting
error C2332: 'struct' : missing tag name
any help would be greatly apreciated :)
2007-04-27
18:58:38
·
2 answers
·
asked by
dragongml
3
in
Computers & Internet
➔ Programming & Design
By the way im using C++
2007-04-27
18:59:14 ·
update #1