Answer the question
In order to leave comments, you need to log in
How to correctly copy the value of one structure to another?
There are two structures Login and CoWorker. You need to copy the co_name value to the username of the login structure
struct CoWorker {
char co_name[90];
double co_salary;
};
struct Login {
char username[90];
char password[90];
};
strcpy(login_struct[i].username, co_worker[i].co_name);
expression must have pointer-to-object or handle-to-C++/CLI-array type
Answer the question
In order to leave comments, you need to log in
You obviously need to understand how interest is calculated. If you need to calculate the percentage of $win[1] from $win[2], then you need to write$percent = $win[1] / ($win[2] / 100)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question