下载此文档

《C语言外语》.ppt


文档分类:外语学习 | 页数:约33页 举报非法文档有奖
1/33
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/33 下载此文档
文档列表 文档介绍
《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转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息