Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 2
0 Endorsements
Ranked #25.0K
Test Scores #2 Modify the program of Programming Challenge 2 to allow the user to enter name-score pairs using two parralell arrays. For each student taking a test, the user types the student’s name followed by the student’s integer test score. Modify the sorting function so it takes an array … |
|
using 'strcpy_s' error c2660 void sortData(int size, char studentName[][6]) { bool swap; int temp[6]; do { swap = false; for (int count = 0; count < (size - 1); count++) { if (strcmp(studentName[count], studentName[count + 1]) > 0) { strcpy_s(temp, studentName[count]); strcpy_s(studentName[count], studentName[count + 1]); strcpy_s(studentName[count + 1], temp); swap … |