Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void addArticle(article storage[N], int articleCounter) {
- int numberArticle;
- cout << "Amount of articles to add: ";
- cin >> numberArticle;
- int start = articleCounter;
- int end = articleCounter + numberArticle;
- if (end > N)
- end = N;
- articleCounter = end;
- for (int i = start; i < end; i++) {
- cout << "Article name: " << endl;
- cin >> storage[i].articleName;
- cout << "Code of article: " << endl;
- cin >> storage[i].articleCode;
- cout << "Price of article: " << endl;
- cin >> storage[i].articlePrice;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement