《C语言外语》
Lab Schedule and Policy
Every Wednesday or by appointment;
Totally 24 hours, 2 hours per week;
Please be surent #5
Input several numbers, and output its reverse.
*
Assignment #5
Input a string, output the number of words it contains.
*
Assignment #5
Write a program to accept a string and a character, and then delete each element which is equal to the character from the array.
*
Assignment #5
Write a program to implement the following questions:
Define a function void input(int s[], int n) to get ten integers into an array;
Define a function void sort(int s[], int n) to sort these integers in the array;
Define a function void print(int s[], int n) to output the sorted numbers in the array;
Finally, write appropriate main function to test your program.
*
Assignment #6
Use the arrays of structures to store five students’ information including id, name and score, input the information from the keyboard, output the information of the student with the maximum score, then sort these students by scores from low to high, finally, output information of these students.
*
*
Assignment #6
Write a function void decrement(int* a) to decrease the value of the argument in the main function by 1. You should use pointer as parameter to the function decrement
*
Assignment #7
Write a function void decrement(int* a) to decrease the value of the argument in the main function by 1. You should use pointer as parameter to the function decrement.
Similarly, write a function swap to exchange the values of two variables outside the function
*
Assignment #7
Input n from the keyboard
Input n numbers from the keyboard and store them to a dynamically allocated array
Sort these numbers using any of the sorting algorithms
Output the sorted numbers to the screen
Finally, output these sorted numbers to a file named “”
*
Assignment #8
Input n from the keyboard
Input n students' data from the keyboard and store them to a dynamically allocated array of s
《C语言外语》 来自淘豆网www.taodocs.com转载请标明出处.