@Asmodi:
You can only use the { } style of setting the value when you instaniate the object. But you instaniate the object with this line:
history_row convert3[30];
So, after that, it is too late. Try changing your struct to look like this:
struct history_row {
enum curr history_from;
enum curr history_to;
float value;
float result;
void SetValues( enum curr from, enum curr to, float val, float res )
{
history_from = from;
history_to = to;
value = val;
result = res;
}
};
Then you can use this code to set the values:
convert3[history_count].Se
Hope That Helps,
Dex*
Main Topics
Browse All Topics





by: jkrPosted on 2004-02-13 at 14:43:28ID: 10356936
Try
history_row row = {
convert1,
convert2,
amount,
to_rate / from_rate * amount
};
convert3[history_count] = row;