一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術(shù)|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務(wù)器之家 - 編程語言 - C/C++ - C++實現(xiàn)圖書管理系統(tǒng)

C++實現(xiàn)圖書管理系統(tǒng)

2021-08-09 12:27素心暮年 C/C++

這篇文章主要為大家詳細介紹了C++實現(xiàn)圖書管理系統(tǒng),文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下

閑來無事,用C++做了一個圖書管理系統(tǒng),主要有借書、還書、圖書管理、用戶管理等功能,主要用到的技術(shù)有容器和文件,以及類的封裝

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
#include <iostream>
#include <list>
#include <algorithm>
#include <string.h>
#include <fstream>
#include <stdlib.h>
 
using namespace std;
class Mybook;
class Book;
 
class Book{
public:
 int id;              //書號
 char book_name[20];        //書名
 int state;            //圖書狀態(tài)
 char place[20];          //圖書所在位置
 char stu_number[20];       //學(xué)號
 char stu_name[20];        //學(xué)生姓名
public:
 Book();
 friend class Mybook;
};
 
class User{
public:
 char stu_number[20];        //學(xué)號
 char stu_name[20];         //學(xué)生姓名
public:
 User()
 {
  strcpy(stu_number,"000");
  strcpy(stu_name,"0");
 }
 friend class Mybook;
};
 
class Mybook{
private:
 list<Book> link_book;       //保存書本信息
 list<User> link_user;       //保存用戶信息
public:
 int main_menu();          //主菜單
 void getmenu();          //獲取菜單
 int menu();            //圖書管理菜單
 void getchoice();         //輸入選擇
 void add_book();          //添加圖書
 void display_book();        //顯示圖書信息
 void del_book();          //刪除圖書信息
 void search_book();        //搜索圖書信息
 void update_book();        //修改圖書信息
 void borrow_book();        //借書
 void return_book();        //還書
 int menu_user();         //管理用戶菜單
 void add_user();          //添加用戶
 void del_user();          //刪除用戶
 void display_user();        //查看用戶
 void update_user();        //修改用戶
 void look_borrow();        //查看借閱圖書情況
 void get_user();          //用戶管理
 void recv_file();         //將數(shù)據(jù)保存到文件中
 void read_file();         //將數(shù)據(jù)從文件中讀取
 void recv_user();         //將用戶信息保存到文件
 void read_user();         //將用戶信息從文件讀取
};
 
Book::Book()
{
 state = 0;
 strcpy(stu_number,"000");
 strcpy(stu_name,"0");
}
//保存圖書信息到文件
void Mybook::recv_file()
{
 ofstream outfile("library.txt",ios::out);
 if(!outfile)
 {
 cout<<"文件打開失敗"<<endl;
 return ;
 }
 sleep(1);
 list<Book>::iterator p = link_book.begin();
 while(p != link_book.end())
 {
 outfile<<p->id<<endl;
 outfile<<p->book_name<<endl;
 outfile<<p->state<<endl;
 outfile<<p->place<<endl;
 outfile<<p->stu_number<<endl;
 outfile<<p->stu_name<<endl;
 p++;
 }
 cout<<"保存完成!"<<endl;
 outfile.close();
}
 
void Mybook::read_file()
{
 ifstream infile("library.txt",ios::in);
 Book new_book;
 if(!infile)
 {
 cout<<"read fail"<<endl;
 return ;
 }
 char temp[20];
 while(!infile.eof())
 {
 infile.getline(temp,'\n');
 new_book.id = atoi(temp);
 memset(temp,0,20);
 infile.getline(new_book.book_name,'\n');
 infile.getline(temp,'\n');
 new_book.state = atoi(temp);
 memset(temp,0,20);
 infile.getline(new_book.place,'\n');
 infile.getline(new_book.stu_number,'\n');
 infile.getline(new_book.stu_name,'\n');
 if(infile.eof())
 {
  break;
 }
 link_book.push_back(new_book);
 }
 infile.close();
}
//保存用戶信息
void Mybook::recv_user()
{
 ofstream outfile("user.txt",ios::out);
 if(!outfile)
 {
 cout<<"文件打開失敗"<<endl;
 return ;
 }
 sleep(1);
 list<User>::iterator p = link_user.begin();
 while(p != link_user.end())
 {
 outfile<<p->stu_number<<endl;
 outfile<<p->stu_name<<endl;
 p++;
 }
 cout<<"保存完成!"<<endl;
 outfile.close();
}
//讀取數(shù)據(jù)至用戶
void Mybook::read_user()
{
 ifstream infile("user.txt",ios::in);
 if(!infile)
 {
 cout<<"文件打開失敗!"<<endl;
 return ;
 }
 User new_user;
 while(!infile.eof())
 {
 infile.getline(new_user.stu_number,'\n');
 infile.getline(new_user.stu_name,'\n');
 if(infile.eof())
 {
  break;
 }
 link_user.push_back(new_user);
 }
 infile.close();
}
//主菜單
int Mybook::main_menu()
{
 int choice = 0;
 cout<<"\t\t\t\t===================================================="<<endl;
 cout<<"\t\t\t\t*       歡迎來到圖書管理系統(tǒng)        *"<<endl;
 cout<<"\t\t\t\t*--------------------------------------------------*"<<endl;
 cout<<"\t\t\t\t*         1、借書             *"<<endl;
 cout<<"\t\t\t\t*         2、還書             *"<<endl;
 cout<<"\t\t\t\t*         3、圖書管理           *"<<endl;
 cout<<"\t\t\t\t*         4、用戶管理           *"<<endl;
 cout<<"\t\t\t\t*         0、保存并退出          *"<<endl;
 cout<<"\t\t\t\t*__________________________________________________*"<<endl;
 cout<<"\t\t\t\t\t請輸入選擇:";
 cin>>choice;
 while(!(choice >= 0 && choice <= 4))
 {
 cout<<"輸入錯誤,請重新輸入:";
 cin>>choice;
 }
 return choice;
}
//執(zhí)行主菜單
void Mybook::getmenu()
{
 int choice = 0;
 read_user();
 read_file();
 while(1)
 {
 system("clear");
 choice = main_menu();
 switch(choice)
 {
  case 1:
  {
  borrow_book();
  break;
  }
  case 2:
  {
  return_book();
  break;
  }
  case 3:
  {
  getchoice();
  break;
  }
  case 4:
  {
  get_user();
  break;
  }
  case 0:
  {
  cout<<"正在保存,請稍后....."<<endl;
  recv_file();
  exit(0);
  }
 }
 cout<<endl<<endl<<endl;
 cout<<"按任意鍵返回...";
 getchar();
 getchar();
 }
}
//借書
void Mybook::borrow_book()
{
 int flag = 0;
 int flag1 = 0;
 int flag2 = 0;
 char id[20];
 char name[20];
 char book_name[20];
 cout<<"請輸入學(xué)號:";
 cin>>id;
 list<User>::iterator it = link_user.begin();
 while(it != link_user.end())
 {
 if(strcmp(it->stu_number,id) == 0)
 {
  strcpy(name,it->stu_name);
  flag2 = 1;
  break;
 }
 it++;
 }
 if(flag2 == 0)
 {
 cout<<"你沒有借書權(quán)限!借書失敗"<<endl;
 return ;
 }
 cout<<"請輸入書名:";
 cin>>book_name;
 list<Book>::iterator p = link_book.begin();
 while(p != link_book.end())
 {
 if(strcmp(p->book_name,book_name) == 0)
 {
  cout<<"======================================="<<endl;
  cout<<"書號:"<<p->id<<endl;
  cout<<"書名:"<<p->book_name<<endl;
  if(p->state == 0)
  {
  cout<<"圖書狀態(tài):未借閱!"<<endl;
  }
  else
  {
  cout<<"圖書狀態(tài):已借閱!"<<endl;
  }
  cout<<"所在書架"<<p->place<<endl;
  flag1 = 1;
 }
 p++;
 }
 if(flag1 == 0)
 {
 cout<<"你所借閱的書不存在,借書失敗!";
 return ;
 }
 p = link_book.begin();
 cout<<"已查找該圖書,請輸入書號進行借閱:";
 int book_id;
 cin>>book_id;
 while(p != link_book.end())
 {
 if(strcmp(p->book_name,book_name) == 0 && p->id == book_id && p->state == 0)
 {
  strcpy(p->stu_number,id);
  strcpy(p->stu_name,name);
  p->state = 1;
  cout<<"借書成功!"<<endl;
  flag = 1;
  break;
 }
 p++;
 }
 if(flag == 0)
 {
 cout<<"該書已被借閱,借書失敗!";
 }
 
}
//還書
void Mybook::return_book()
{
 char stu_id[20];
 cout<<"請輸入學(xué)號";
 cin>>stu_id;
 int flag = 0;
 int flag1 = 0;
 list<Book>::iterator p = link_book.begin();
 while(p != link_book.end())
 {
 if(strcmp(p->stu_number,stu_id) == 0)
 {
  cout<<"==========================================="<<endl;
  cout<<"書號:"<<p->id<<endl;
  cout<<"書名:"<<p->book_name<<endl;
  flag = 1;
 }
 p++;
 }
 if(flag == 0)
 {
 cout<<"當(dāng)前沒有您沒有借書"<<endl;
 return ;
 }
 else if(flag == 1)
 {
 cout<<"已經(jīng)查詢到你借閱的圖書,請輸入書號進行歸還:"<<endl;
 }
 int id;
 cin>>id;
 p = link_book.begin();
 while(p != link_book.end())
 {
 if(strcmp(p->stu_number,stu_id) == 0&&p->id == id)
 {
  strcpy(p->stu_name ,"000");
  strcpy(p->stu_number , "0");
  p->state = 0;
  cout<<"還書成功!"<<endl;
  flag1 = 1;
  break;
 }
 p++;
 }
 if(flag1 == 0)
 {
 cout<<"輸入書號錯誤,還書失敗!"<<endl;
 }
}
//用戶管理菜單
int Mybook::menu_user()
{
 int choice = 0;
 cout<<"\t\t\t\t=========================================="<<endl;
 cout<<"\t\t\t\t*       用戶管理          *"<<endl;
 cout<<"\t\t\t\t*----------------------------------------*"<<endl;
 cout<<"\t\t\t\t*     1、添加用戶          *"<<endl;
 cout<<"\t\t\t\t*     2、顯示用戶          *"<<endl;
 cout<<"\t\t\t\t*     3、刪除用戶          *"<<endl;
 cout<<"\t\t\t\t*     4、修改用戶          *"<<endl;
 cout<<"\t\t\t\t*     5、顯示圖書借用信息      *"<<endl;
 cout<<"\t\t\t\t*     6、保存并返回上一層      *"<<endl;
 cout<<"\t\t\t\t*----------------------------------------*"<<endl;
 cout<<"\t\t\t\t\t請輸入選擇:";
 cin>>choice;
 while(!(choice >= 1 && choice <= 6))
 {
 cout<<"輸入錯誤,請重新輸入:";
 cin>>choice;
 }
 return choice;
 
}
//執(zhí)行用戶管理
void Mybook::get_user()
{
 int choice = 0;
 while(1)
 {
 system("clear");
 choice = menu_user();
 system("clear");
 switch(choice)
 {
  case 1:
  {
  add_user();
  break;
  }
  case 2:
  {
  display_user();
  break;
  }
  case 3:
  {
  del_user();
  break;
  }
  case 4:
  {
  update_user();
  break;
  }
  case 5:
  {
  look_borrow();
  break;
  }
  case 6:
  {
  recv_user();
  return ;
  }
 }
 cout<<endl<<endl<<endl;
 cout<<"按任意鍵返回...";
 getchar();
 getchar();
 }
}
//添加用戶
void Mybook::add_user()
{
 User new_user;
 cout<<"請輸入學(xué)號:";
 cin>>new_user.stu_number;
 cout<<"請輸入姓名:";
 cin>>new_user.stu_name;
 
 link_user.push_back(new_user);
 cout<<"添加成功!";
 cout<<"是否繼續(xù)添加(y/n)";
 char ch;
 cin>>ch;
 while(!(ch == 'Y'||ch == 'y'||ch == 'N'||ch == 'n'))
 {
 cout<<"輸入有誤,請重新輸入:";
 cin>>ch;
 }
 if(ch == 'Y'||ch == 'y')
 {
 system("clear");
 add_user();
 }
}
//顯示用戶
void Mybook::display_user()
{
 list<User>::iterator it = link_user.begin();
 while(it != link_user.end())
 {
 cout<<"====================================="<<endl;
 cout<<"學(xué)號:"<<it->stu_number<<endl;
 cout<<"姓名:"<<it->stu_name<<endl<<endl;
 it++;
 }
}
//刪除用戶
void Mybook::del_user()
{
 char id[20];
 cout<<"請輸入你要刪除的學(xué)生學(xué)號:";
 cin>>id;
 int flag = 0;
 list<User>::iterator it = link_user.begin();
 while(it != link_user.end())
 {
 if(strcmp(it->stu_number,id) == 0)
 {
  link_user.erase(it);
  flag = 1;
  break;
 }
 it++;
 }
 if(flag == 1)
 {
 cout<<"刪除成功!"<<endl;
 }
 else
 {
 cout<<"你刪除的用戶不存在,刪除失敗!"<<endl;
 }
}
//修改用戶信息
void Mybook::update_user()
{
 cout<<"請輸入你要修改的學(xué)號:"<<endl;
 char number[20];
 cin>>number;
 int flag = 0;
 list<User>::iterator it = link_user.begin();
 while(it != link_user.end())
 {
 if(strcmp(it->stu_number,number) == 0)
 {
  cout<<"請更新學(xué)號:";
  cin>>it->stu_number;
  cout<<"請更新姓名:";
  cin>>it->stu_name;
  flag = 1;
  break;
 }
 it++;
 }
 if(flag == 1)
 {
 cout<<"修改成功!"<<endl;
 }
 else
 {
 cout<<"修改失敗!"<<endl;
 }
}
//查看已借閱圖書情況
void Mybook::look_borrow()
{
 int flag = 0;
 list<Book>::iterator p = link_book.begin();
 while(p != link_book.end())
 {
 if(p->state == 1)
 {
  cout<<"==================================================="<<endl;
  cout<<"姓名:"<<p->stu_name<<endl;
  cout<<"學(xué)號:"<<p->stu_number<<endl;
  cout<<"書名:"<<p->book_name<<endl;
  cout<<"書架號:"<<p->place<<endl;
  flag = 1;
 }
 p++;
 }
 if(flag == 1)
 {
 cout<<"已查詢圖書相關(guān)借閱信息"<<endl;
 }
 else
 {
 cout<<"目前暫時沒有相關(guān)圖書借閱!"<<endl;
 }
}
//圖書管理菜單
int Mybook::menu()
{
 int choice = 0;
 cout<<"\t\t\t\t\t============================================"<<endl;
 cout<<"\t\t\t\t\t*       圖書管理      *"<<endl;
 cout<<"\t\t\t\t\t*------------------------------------------*"<<endl;
 cout<<"\t\t\t\t\t* 1、添加圖書信息   2、顯示圖書信息   *"<<endl;
 cout<<"\t\t\t\t\t*------------------------------------------*"<<endl;
 cout<<"\t\t\t\t\t* 3、刪除圖書信息   4、搜索圖書信息   *"<<endl;
 cout<<"\t\t\t\t\t*------------------------------------------*"<<endl;
 cout<<"\t\t\t\t\t* 5、更新圖書信息   6、返回上一層    *"<<endl;
 cout<<"\t\t\t\t\t*------------------------------------------*"<<endl;
 cout<<"\t\t\t\t\t請輸入選擇:";
 cin>>choice;
 while(!(choice >= 1 && choice <= 6))
 {
 cout<<"輸入錯誤,請重新輸入:";
 cin>>choice;
 }
 return choice;
 
}
//實行圖書管理
void Mybook::getchoice()
{
 int choice = 0;
 while(1)
 {
 system("clear");
 choice = menu();
 system("clear");
 switch(choice)
 {
  case 1:
  {
  add_book();
  break;
  }
  case 2:
  {
  display_book();
  break;
  }
  case 3:
  {
  del_book();
  break;
  }
  case 4:
  {
  search_book();
  break;
  }
  case 5:
  {
  update_book();
  break;
  }
  case 6:
  {
  return ;
  }
 }
 cout<<endl<<endl<<endl;
 cout<<"按任意鍵返回....."<<endl;
 getchar();
 getchar();
 }
}
//增加書本
void Mybook::add_book()
{
 Book new_book;
 cout<<"請輸入書號:";
 cin>>new_book.id;
 cout<<"請輸入書名:";
 cin>>new_book.book_name;
 cout<<"請輸入圖書書架:";
 cin>>new_book.place;
 
 link_book.push_back(new_book);
 cout<<"添加成功!";
 cout<<"是否繼續(xù)添加(y/n)";
 char ch;
 cin>>ch;
 while(!(ch == 'Y'||ch == 'y'||ch == 'N'||ch == 'n'))
 {
 cout<<"輸入有誤,請重新輸入:";
 cin>>ch;
 }
 if(ch == 'Y'||ch == 'y')
 {
 system("clear");
 add_book();
 }
}
//顯示書本信息
void Mybook::display_book()
{
 list<Book>::iterator p = link_book.begin();
 while(p != link_book.end())
 {
 cout<<"======================================="<<endl;
 cout<<"書號:"<<p->id<<endl;
 cout<<"書名:"<<p->book_name<<endl;
 if(p->state == 0)
 {
  cout<<"圖書狀態(tài):未借閱!"<<endl;
 }
 else
 {
  cout<<"圖書狀態(tài):已借閱!"<<endl;
 }
 cout<<"所在書架"<<p->place<<endl<<endl;
 p++;
 }
}
//刪除書本信息
void Mybook::del_book()
{
 list<Book>::iterator p = link_book.begin();
 int num = 0;
 int flag = 0;
 cout<<"請輸入你要刪除的書號:";
 cin>>num;
 while(p != link_book.end())
 {
 if(p->id == num)
 {
  link_book.erase(p);
  flag = 1;
  break;
 }
 p++;
 }
 if(flag == 1)
 {
 cout<<"\n\n刪除完成!";
 }
 else
 {
 cout<<"\n\n該書不存在,刪除失敗!"<<endl;
 }
}
//搜索書本信息
void Mybook::search_book()
{
 list<Book>::iterator p = link_book.begin();
 char book_name[20];
 int flag = 0;
 cout<<"請輸入你要查找的書名:";
 cin>>book_name;
 while(p != link_book.end())
 {
 if(strcmp(p->book_name,book_name) == 0)
 {
  cout<<"======================================="<<endl;
  cout<<"書號:"<<p->id<<endl;
  cout<<"書名:"<<p->book_name<<endl;
  if(p->state == 0)
  {
  cout<<"圖書狀態(tài):未借閱!"<<endl;
  }
  else
  {
  cout<<"圖書狀態(tài):已借閱!"<<endl;
  }
  cout<<"所在書架"<<p->place<<endl;
  flag = 1;
 }
 p++;
 }
 if(flag == 1)
 {
 cout<<"\n\n查找完成!";
 }
 else
 {
 cout<<"\n\n目前圖書館暫無此書!"<<endl;
 }
}
//修改書本信息
void Mybook::update_book()
{
 list<Book>::iterator p = link_book.begin();
 int num = 0;
 int flag = 0;
 cout<<"請輸入你要更新的書號:";
 cin>>num;
 while(p != link_book.end())
 {
 if(p->id == num)
 {
  cout<<"請輸入書名";
  cin>>p->book_name;
  cout<<"請輸入圖書書架號:";
  cin>>p->place;
  flag = 1;
 }
 p++;
 }
 if(flag == 1)
 {
 cout<<"\n\n更新完成!";
 }
 else
 {
 cout<<"\n\n該書不存在,更新失敗!"<<endl;
 }
}
int main()
{
  Mybook b;
 b.getmenu();
 
 return 0;
}

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持服務(wù)器之家。

原文鏈接:https://blog.csdn.net/qq_38076413/article/details/76263505

延伸 · 閱讀

精彩推薦
  • C/C++C語言實現(xiàn)電腦關(guān)機程序

    C語言實現(xiàn)電腦關(guān)機程序

    這篇文章主要為大家詳細介紹了C語言實現(xiàn)電腦關(guān)機程序,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下...

    xiaocaidayong8482021-08-20
  • C/C++深入理解goto語句的替代實現(xiàn)方式分析

    深入理解goto語句的替代實現(xiàn)方式分析

    本篇文章是對goto語句的替代實現(xiàn)方式進行了詳細的分析介紹,需要的朋友參考下...

    C語言教程網(wǎng)7342020-12-03
  • C/C++詳解c語言中的 strcpy和strncpy字符串函數(shù)使用

    詳解c語言中的 strcpy和strncpy字符串函數(shù)使用

    strcpy 和strcnpy函數(shù)是字符串復(fù)制函數(shù)。接下來通過本文給大家介紹c語言中的strcpy和strncpy字符串函數(shù)使用,感興趣的朋友跟隨小編要求看看吧...

    spring-go5642021-07-02
  • C/C++C/C++經(jīng)典實例之模擬計算器示例代碼

    C/C++經(jīng)典實例之模擬計算器示例代碼

    最近在看到的一個需求,本以為比較簡單,但花了不少時間,所以下面這篇文章主要給大家介紹了關(guān)于C/C++經(jīng)典實例之模擬計算器的相關(guān)資料,文中通過示...

    jia150610152021-06-07
  • C/C++c++ 單線程實現(xiàn)同時監(jiān)聽多個端口

    c++ 單線程實現(xiàn)同時監(jiān)聽多個端口

    這篇文章主要介紹了c++ 單線程實現(xiàn)同時監(jiān)聽多個端口的方法,幫助大家更好的理解和學(xué)習(xí)使用c++,感興趣的朋友可以了解下...

    源之緣11542021-10-27
  • C/C++C++之重載 重定義與重寫用法詳解

    C++之重載 重定義與重寫用法詳解

    這篇文章主要介紹了C++之重載 重定義與重寫用法詳解,本篇文章通過簡要的案例,講解了該項技術(shù)的了解與使用,以下就是詳細內(nèi)容,需要的朋友可以參考下...

    青山的青6062022-01-04
  • C/C++學(xué)習(xí)C++編程的必備軟件

    學(xué)習(xí)C++編程的必備軟件

    本文給大家分享的是作者在學(xué)習(xí)使用C++進行編程的時候所用到的一些常用的軟件,這里推薦給大家...

    謝恩銘10102021-05-08
  • C/C++C語言中炫酷的文件操作實例詳解

    C語言中炫酷的文件操作實例詳解

    內(nèi)存中的數(shù)據(jù)都是暫時的,當(dāng)程序結(jié)束時,它們都將丟失,為了永久性的保存大量的數(shù)據(jù),C語言提供了對文件的操作,這篇文章主要給大家介紹了關(guān)于C語言中文件...

    針眼_6702022-01-24
主站蜘蛛池模板: a黄色| 久久热这里面只有精品 | 99热成人精品热久久669 | 特级一级全黄毛片免费 | 奇米影视中文字幕 | 午夜精品久久久久久久99蜜桃i | 爸爸的宝贝小说全文在线阅读 | 国产在线看片护士免费视频 | 糖心在线观看网 | 白丝打脚枪 | 天天排行网 | 陈峰姚瑶全集小说无删节 | 婷婷在线观看香蕉五月天 | 国产午夜永久福利视频在线观看 | 国产日韩一区二区三区在线播放 | 成人高辣h视频一区二区在线观看 | 亚洲图片 自拍偷拍 | 精品国产人成亚洲区 | 午夜精品久久久久久久2023 | 91久久综合| ova巨公主催眠1在线观看 | 亚洲区精品 | 国产日韩精品一区二区在线观看 | 超91精品手机国产在线 | 亚洲国产精品线在线观看 | 日本高清在线播放一区二区三区 | 日本私人影院 | 午夜片无码区在线观看 | 国产午夜免费不卡精品理论片 | 精品国产原创在线观看视频 | 久久全国免费观看视频 | 国产欧美日韩精品在线 | 欧美黑大吊 | 久久www免费人成_看片高清 | 九九热国产视频 | 久久久久嫩草影院精品 | 女色在线观看免费视频 | 麻豆网站视频国产在线观看 | 日本捏胸吃奶视频免费 | 精品视频 九九九 | 国产专区一va亚洲v天堂 |