In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
< p->Next- > data.age) {temp- > data = p-> data; p-> data = p-> next- > data; p-> next- > data = temp- > data;} p = p-> next;} p = Q-> next; Q = p;} printf ("\ nThe sorted information is as follows:\ n") While (w! = NULL) {/ / output the sorted linked list printf ("% s\ t% s\ t% c\ t% d\ t% d\ t% s\ t% s\ n", w-> data.num,w- > data.name,w- > data.sex,w- > data.age,w- > data.clas,w- > data.mail,w- > data.number); w = w-> next;} system ("pause"); out (head); s * k; padded headline-> next While (paired empty null) {/ / empty the linked list, only head is left to facilitate the subsequent operation of kumbp-> next; free (p); pairk;} head- > next=NULL; printf ("return to the main menu in three seconds"); Sleep (3000); menu ();} void account () {int n; char date [25]; char item [40]; char S1 [45]; char count [12]; FILE * fp If ((fp=fopen ("account.txt", "at")) = = NULL) {printf ("Cannot open file strike any key exit!"); getch (); exit (1);} printf ("Please enter number of times"); scanf ("% d", & n); while (n) {printf ("Please enter name\ n"); scanf ("% s", & S1); fputs ("s", & S1); printf ("Please enter date\ n") Scanf ("% s", & date); fputs (date,fp); printf ("Please enter name\ n"); scanf ("% s", & item); fputs (item,fp); printf ("Please enter amount"); scanf ("% s", & count); fputs (count,fp); Nmurf;} fclose (fp); printf ("return to main menu in three seconds"); Sleep (3000); menu () } void print () {/ / print all financial data char str [10000]; FILE * fp; int qq; if ((fp=fopen ("account.txt", "rt")) = = NULL) {printf ("Cannot open file strike any key exit!"); getch (); exit (1);} fgets (str,1000,fp); / / get file content printf ("% s", str) / / print content printf ("\ n"); printf ("1 returns to main menu"); fclose (fp); / / close file scanf ("% d", & qq); if (qq==1) {menu ();}} void printall () {/ / print all student information functions char str [1000]; FILE * fp; int qq If ((fp=fopen ("student.txt", "rt")) = = NULL) {printf ("Cannot open file strike any key exit!"); getch (); exit (1); / / No file exit program} while ((fgets (str,1024,fp))! = NULL) {printf (str);} / / print content fclose (fp) / / close file printf ("1 returns to main menu"); scanf ("% d", & qq); if (qq==1) {menu ();}} void first () {/ / read file FILE * fp,*fp1; / * definition file pointer * / char s [9], S1 [9], S2 [9], S3 [9], ch,n; int I; ch='_' If ((fp=fopen ("file.txt", "r")) = = NULL) {printf ("\ nPlease initialize! \ n "); for
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.