Through the study of Student information management system software, c program, how to design and write an application system

Source: Internet
Author: User


Contemporary College students are a special group, they have higher knowledge accomplishment and strong comprehensive quality, but most of them do not have the ability to match their abilities and the ability to compete in employment. College graduates are part of the emerging workforce,improving the development level of college graduates ' employment work,the process of sustainable development of our country's economy and society, university as the cradle of cultivating college students,we must shoulder the responsibility of improving the employability of college students. Improving the employability of college students,not only does the teacher have to pay hard work,a scientifically sound system is also needed as a guarantee,and the basic situation of college graduates database management system is undoubtedly a good attempt. This set of database management system designed in this paper,It is a comprehensive database system of comprehensive daily management, practice examination, subject achievement statistics, employment management and so on. Designing students to manage such a system can involve most of theCimportant database objects, important functions, and features of a database, such as views, triggers, and stored procedures. This course is designed to deepen students 'CThe learning and understanding of database knowledge enables students to master the basic methods of developing database management system using application software development tools. In the practical aspect, the student management system is a very common application, the choice of this system as a course design can also provide reference for the actual development that students may encounter later.

Summary of Curriculum Design

Previously, I had little knowledge of computers and had no interest in programming and thought it was boring. But my attitude has changed a lot since I took the C language course. Not only learned that C language is a widely used language at home and abroad, but also know that its function is rich, expressive ability, flexible and convenient use, wide application, high efficiency of the target program. Especially suitable for writing system software. Through the independent completion of each homework, I learned the program debugging success after the joy, and has learned a further understanding of the knowledge. In a word, I'm changing, and I've changed a lot from not interested in liking this course.

In the process of this program, I encountered a number of problems, in just finished, there are many errors, the most important of which is the function of formal parameters and argument types do not match, after several rewriting, finally the formal parameter-struct pointer changed to the structure of the array, so that the error is reduced a lot. At the same time there have been some careless mistakes, but finally after careful examination have been solved. The most difficult to find the number of logic errors, in the calculation of the results, forget the array of processing, the results after the operation did not get the expected results. Also, in writing to delete and add functions to cover the previous results are not sure, but after reference to some information, determined that my idea or the line of the pass. Overall, the programming of the errors encountered is still relatively small, after their own efforts or to overcome.



Student Information Management System program code:

int main ()

{

Inti,sum;

Pagedis ();

Check ();

menu ();

}

The first one is to display the Welcome page, the second is to verify the user name and password, the third is to display the menu, and to perform the appropriate action based on the user's input selection.

There are also some other functions, which are sub-functions called by the menu function, respectively.

This is the approximate form of a structured-speech program.

#include <stdio.h>

void Pagedis ();

void check ();

void menu ();

int main ()

{

Pagedis ();

Check ();

menu ();

}

void Pagedis () {

printf ("I am the module that displays welcome interface, the concrete content also needs to be perfected!") \ n ");

}

void Check () {

printf ("I am the module that verifies the legality of the user, the specific content should be perfected!") \ n ");

}

void menu () {

printf ("I am the module that directs the user to perform each function, the concrete content also needs to be perfected!") \ n ");

}

This is structured programming, putting functions into functions, and the next step is to concentrate and refine the contents of the function.

Student Performance Management System:

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#define SIZE 3/* Define constant size for later modification */

struct Student/* Defines an array of structures to hold students ' information */

{

int number; /* Study Number */

Char name[20];/* name */

Char xueyuan[20];/* College * *

int cla;/* class */

int score[3];/* Score */

int sum;/* Total Score */

int average;/* Average */

}stu[size];

void menu ();/* Call the Menus function */

void write ();/* Read in Information */

void Save (int x);/* Save Stud.dat File function */

void saveonestudent (int i);/* Save a student's information */

void saveallstudent (int n);/* Save all Student information */

void Inturn (struct student c[]);/* function to sort students ' information by student number */

void Save2 ();/* Stores sorted information in the Student.dat file */

int addstudent (int n);/* Increase student information */

void inputonestudent (int i);/* Enter a classmate's information */

int delstudent (int n);/* Delete Student information */

void modifystudent (int n);/* Modify Student Information */

void outputonestudent (int i);/* Query A student's information */

void Searchmenu (int n);/* Query Student information operation */

void Searchnumber (int n);/* Query Student information by study number */

void Searchname (int n); * * Query Student information by name */

void Searchxueyuan (int n); * * Check student information at your college * *

void Searchcla (int n); * * Check student information in your class * *

void Tongji ();/* Student Information statistics Operation */

void Tongji2 ();/* Statistical failure rate Operation */

void ZFSC ();/* Total sorting operation */

void Avecz (); */* According to the average number of statisticians operation */

void Avecz (); */* According to the average number of statisticians operation */

void search ();/* Find top performance Action */

void Tongji2 ();/* Statistical failure rate Operation */

void read (); * * Read Student.dat file file information for secondary students * *

/* Main function ************************************************************************************/

void Main ()

{

int n=size;

int choice;/* User Selection variable */

printf ("*******************************************************************************\n");

printf ("* *\n");

printf ("* Hwadee & Student Performance Document management & Hwadee *\n");

printf ("* *\n");

printf ("*******************************************************************************\n\n\n");

printf ("****************************** Welcome to use *********************************");

while (1)

{

Menu ()//* Call the function to form the operator interface */

printf ("Please select:");

scanf ("%d", &choice);

if (choice==0)

{

printf ("\t\t\t\t Thank you for using!!!");

Break

}

Switch (choice)/* Multi-Select to implement different functions */

{

Case 1:

Write ();

Inturn (Stu);

Save (SIZE);

Break

Case 2:

Addstudent (n);

Break

Case 3:

Delstudent (n);

Break

Case 4:

Modifystudent (n);

Break

Case 5:

Searchmenu (n);

Break

Case 6:

Tongji ();

Break

Case 0:

printf ("\ n Thank you for using! Goodbye!\n");

Default

printf ("\ n key Error! Please re-select!\n");

}/* End switch*/

}/* End while*/

}

Partial program List

/* Menu Function *************************************************************************************/

void menu ()

{

printf ("************ Please enter the desired action ***********\n");/* Select the function menu */

printf ("*************************************\n");

printf ("1. Writing and sequencing of student grades \ n");

printf ("2. adding student information \ n");

printf ("3. Delete Student information \ n");

printf ("4. Modify student information \ n");

printf ("5. query student information \ n");

printf ("6. Student performance statistics operation \ n");

printf ("0. Exit system \ n");

printf ("**************************************\n");

}

/* Write function *************************************************************************************/

void Write ()

{

int i;/* Count Variable */

for (i=0;i<size;i++)

{

printf ("Study No.:");

scanf ("%d", &stu[i].number);

printf ("Name:");

scanf ("%s", &stu[i].number);

printf ("College:");

scanf ("%s", &stu[i].xueyuan);

printf ("Class:");

scanf ("%d", &STU[I].CLA);

printf ("High number:");

scanf ("%d", &stu[i].score[0]);

printf ("English:");

scanf ("%d", &stu[i].score[1]);

printf ("C language:");

scanf ("%d", &stu[i].score[2]);

Stu[i].sum= (stu[i].score[0]+stu[i].score[1]+stu[i].score[2]);/* Calculation of the total scores */

printf ("Total:%d", stu[i].sum);

Stu[i].average= (stu[i].score[0]+stu[i].score[1]+stu[i].score[2])/3;/* calculate average score */

printf ("Average score:%d\n", stu[i].average);

}

}




This article from "10967647" blog, declined reprint!

Through the study of Student information management system software, c program, how to design and write an application system

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.