| manutmac (7) | |
|
I have to do this exercise: Data Structure about shopping. Information on the sale and purchase of a company will be saved in a data structure. Struct consists of the name of the shopping company, the shopping type (buy or sell), the amount of shopping, date of shopping and shopping description (like discount). 1. Define the data structure to keep the information about 1000 companies. 2. This data structure was assumed that the necessary information has been entered in advance, please write the function that calculate how much the sale and purchase of the company are. (do not write main() function…) And I don´t know what I have to do exactly. Furthermore, I don´t know much about c. Anyone can help me or solve my problem. Thank you so much | |
|
|
|
| hamsterman (4327) | |
|
http://cplusplus.com/doc/tutorial/structures/ You'll have a structure with some strings and ints and another with an array of the first. | |
|
|
|
| Catfish2 (666) | |||
http://cplusplus.com/doc/tutorial/
We can help you solve your problem... after you tried it yourself first, and posted your own code, for us to fix and improve. | |||
|
|
|||
| manutmac (7) | |
| ok sorry, It is because I don´t understand what the exercise means. I am spanish | |
|
|
|
| Catfish2 (666) | |||
http://translate.google.com/#en/es/
| |||
|
|
|||
| manutmac (7) | |
| something to start with, I think I can do the structure but the function... | |
|
|
|