• 欢迎访问废江's博客 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏本站吧

人事管理系统(数据结构课程设计)

算法笔记 站点默认 12个月前 (12-15) 1153次浏览 已收录 98个评论

数据结构课上完了,我们需要自己选一个课程设计,我们小组选了如下的人事管理系统

11.png

这道题目中,我多加了一个板块,是系统板块,大致是原本我们只需要设计一个人事管理系统,但我觉得系统应该多个,所以我在外层加了一个系统菜单,其次这道题目比较麻烦的有两点,一点是员工的信息太多了,敲的手都酸死,第二点是按薪水进行排序,我用的直接快速排序,时间复杂度为0n(2)。其次我还学到一个新的知识点:为什么不能给结构体指针中的string变量用“=”赋值(更新),也不能输出,但能通过编译??这个问题我在题目中遇到一模一样的,答案是:这里得用new,因为里面有string需要初始化malloc只是申请内存,是无法调用string类型里的初始化函数没有经过初始化的string,在程序执行到这里时出错:node->name =”a”;,所以,在代码中我放弃了malloc,而直接用new,关于new也是新学到的知识点,这里有必要写个笔记。

new关键字

C++中new运算符用于动态分配和撤销内存的运算符。

1、开辟单变量地址空间

new int; //开辟一个存放数组的存储空间,返回一个指向该存储空间的地址.int *a = new int 即为将一个int类型的地址赋值给整型指针a. 2)int *a = new int(5) 作用同上,但是同时将整数赋值为5。

2、开辟数组空间

要访问new所开辟的结构体空间,无法直接通过变量名进行,只能通过赋值的指针进行访问。用new可以动态开辟,撤销地址空间。在编程序时,若用完一个变量,下次需要再用,可以在每次开始使用时开辟一个空间,在用完后撤销它。


接下来把我写的代码贴出来,如果有写的不好的地方,欢迎大家指正。


个人博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:人事管理系统(数据结构课程设计)
喜欢 (12)
[]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到
(98)个小伙伴在吐槽
  1. [url=http://prozac365.com/]buy fluoxetine no prescription[/url] buy fluoxetine order prozac
    匿名2020-12-03 07:19 (5小时前)回复 Windows 10 | Chrome 83.0.4103.61
  2. Hello there! [url=https://buyeddrugs.com/#purchase-ed-meds]buy viagra cheap[/url] good site.
    匿名2020-12-01 21:00 (2天前)回复 Windows 7 | Chrome 83.0.4103.61
  3. Hi there! [url=https://trustnlinepharmacy.us/#buy-clomid-online-australia]pharmacy technician certification online[/url] beneficial internet site.
    匿名2020-12-01 14:31 (2天前)回复 Windows 10 | Chrome 83.0.4098.0
  4. Hi there! [url=https://pharmacycanadafb.com/#best-canadian-online-pharmacy]ritalin online pharmacy[/url] good internet site.
    匿名2020-12-01 08:01 (2天前)回复 Windows 10 | Chrome 83.0.4103.61
  5. Hi there! [url=https://buyeddrugs.com/#ed-pills-online]buy tadalafil no prescription[/url] very good web page.
    匿名2020-11-30 19:39 (3天前)回复 Windows 10 | Chrome 83.0.4098.0
  6. Hello! [url=https://trustnlinepharmacy.us/#buy-clomid-over-the-counter-uk]caremark best online pharmacy[/url] excellent web page.
    匿名2020-11-30 13:01 (3天前)回复 Windows 10 | Chrome 83.0.4103.34
  7. Hello! [url=https://pharmacycanadafb.com/#accredited-online-pharmacy-technician-programs]canada pharmacy[/url] great web site.
    匿名2020-11-30 06:31 (3天前)回复 Windows 10 | Chrome 83.0.4103.61
  8. cheap sildenafil https://sildgeneric100.com/ sildenafil online
    匿名2020-11-28 18:30 (5天前)回复 Windows 7 | Chrome 83.0.4103.61
  9. speedy cash payday loans online speedy cash payday loans online
    匿名2020-11-27 21:52 (6天前)回复 Windows 10 | Chrome 83.0.4103.34
  10. cheapest sildenafil sildenafil online
    匿名2020-11-27 17:18 (6天前)回复 Windows 10 | Chrome 83.0.4098.0
  11. Howdy! [url=https://buyeddrugs.com/#buy-ed-pills-usa]cheap viagra online 100mg[/url] good site.
    匿名2020-11-26 16:24 (7天前)回复 Windows 7 | Chrome 83.0.4103.61
  12. Hi there! [url=https://trustnlinepharmacy.us/#buy-chlamydia-treatment-online-usa]health pharmacy online[/url] beneficial web site.
    匿名2020-11-26 11:46 (1周前)回复 Windows 7 | Chrome 83.0.4103.61
  13. Hi there! [url=https://pharmacycanadafb.com/#prescription-online-pharmacy]russian pharmacy online[/url] excellent web page.
    匿名2020-11-26 07:10 (1周前)回复 Windows 10 | Chrome 83.0.4089.0
  14. Howdy! [url=https://buyeddrugs.com/#erectile-dysfunction-drugs-online]cheap viagra usa[/url] very good internet site.
    匿名2020-11-25 16:20 回复 Windows 10 | Chrome 83.0.4103.24
  15. Hi! [url=https://trustnlinepharmacy.us/#buy-clomid-bodybuilding]best online pharmacy no prescription[/url] beneficial site.
    匿名2020-11-25 11:34 回复 Windows 10 | Chrome 83.0.4103.34
  16. Hi there! [url=https://pharmacycanadafb.com/#overseas-online-pharmacies]vyvanse online pharmacy[/url] very good web site.
    匿名2020-11-25 06:54 回复 Windows 10 | Chrome 83.0.4096.0
  17. cheap sildenafil buy sildenafil
    匿名2020-11-20 18:53 回复 Windows 7 | Chrome 67.0.3396.87
  18. Hi there! [url=https://dapoxetine4.com/#buy-priligy-cheap]priligy generic[/url] beneficial web page.
    匿名2020-11-20 16:06 回复 Windows 7 | Chrome 67.0.3396.87
  19. Hi! [url=http://propecia.ru.com/#buy-clomiphene-citrate-50-mg]mexico pharmacy online[/url] excellent internet site.
    匿名2020-11-20 12:01 回复 Windows 10 | Chrome 67.0.3396.99
  20. best place to buy generic drugs online pharmacy
    匿名2020-11-20 08:45 回复 Windows 10 | Chrome 67.0.3396.79
  21. Hi there! [url=http://finasteride-propecia.com/#hair-growth-treatments]generic propecia[/url] great website.
    匿名2020-11-20 07:53 回复 Windows 7 | Chrome 68.0.3440.106
  22. online pharmacy buy generic drugs from canada medications
    匿名2020-11-19 21:55 回复 Windows 7 | Chrome 67.0.3396.99
  23. personal loans for bad credit instant online payday loans
    匿名2020-11-19 09:57 回复 Windows 10 | Chrome 68.0.3440.106
  24. Howdy! [url=https://canadian-drugstorerx.com/#online-mexican-pharmacy]canadianpharmacy/viagara[/url] good internet site.
    匿名2020-11-18 07:02 回复 Windows 7 | Chrome 67.0.3396.87
  25. Howdy! [url=https://clomid7.com/#buy-clomid-uk]buy clomid fast delivery[/url] beneficial web site.
    匿名2020-11-18 02:44 回复 Windows 7 | Chrome 67.0.3396.87
  26. Hi! [url=http://rxpharmacyfi.com/#viagra online canadian pharmacy]walmart pharmacy online[/url] beneficial internet site.
    匿名2020-11-17 22:12 回复 Windows 7 | Chrome 68.0.3440.106
  27. [url=https://canadian-drugstorerx.com/]on line pharmacy[/url] canada pharmacies online online pharmacy canada
    匿名2020-11-17 17:47 回复 Windows 10 | Chrome 67.0.3396.99
  28. [url=https://clomid7.com/]buy clomid pills online[/url] buy clomid generic buy clomid online cheap
    匿名2020-11-17 13:31 回复 Windows 7 | Chrome 67.0.3396.87
  29. [url=http://rxpharmacyfi.com/]canadian pharmacies online[/url] online pharmacy tramadol online pharmacy oxycontin
    匿名2020-11-17 09:18 回复 Windows 8.1 | Chrome 67.0.3396.87
  30. Hello! [url=https://canadian-drugstorerx.com/#best-online-pharmacy-viagra]canadianpharm365.com[/url] good website.
    匿名2020-11-17 05:21 回复 Windows 10 | Chrome 67.0.3396.87
  31. Hi! [url=https://clomid7.com/#buy-clomiphene-citrate-50-mg]buy clomid for women[/url] very good site.
    匿名2020-11-17 01:14 回复 Windows 8.1 | Chrome 67.0.3396.87
  32. Hi! [url=http://rxpharmacyfi.com/#safe online pharmacy]canadian pharmacy online[/url] excellent internet site.
    匿名2020-11-16 20:54 回复 Windows 10 | Chrome 66.0.3359.170
  33. [url=https://canadian-drugstorerx.com/]online drugs no prescriptions[/url] cvs canada prescription online buy antibiotics online without a prescription
    匿名2020-11-16 16:37 回复 Windows 10 | Chrome 68.0.3440.106
  34. [url=https://clomid7.com/]buy clomid without prescription[/url] buy clomid online uk Best site to buy clomid?
    匿名2020-11-16 12:21 回复 Windows 7 | Chrome 68.0.3440.84
  35. [url=http://rxpharmacyfi.com/]online pharmacy forum[/url] no prescription online pharmacy online canadian pharmacy
    匿名2020-11-16 08:14 回复 Windows 7 | Chrome 67.0.3396.87
  36. erection pills ed medications online ways to treat erectile dysfunction
    匿名2020-11-14 12:58 回复 Windows 10 | Chrome 67.0.3396.87
  37. male ed drugs buy ed pills online cure for ed
    匿名2020-11-14 00:23 回复 Windows 7 | Chrome 67.0.3396.87
  38. warnings for cialis buy cialis online what is cialis cialis vidalista
    匿名2020-11-12 07:06 回复 Windows 10 | Chrome 67.0.3396.99
  39. [url=http://pharmacyonline.ru.com/]mexico pharmacy drugs[/url] walmart pharmacy online online mexican pharmacies
    匿名2020-11-12 06:12 回复 Windows 7 | Chrome 68.0.3440.84
  40. where to bay cialis (tadalafil) pills 80mg buy tadalafil does cialis lower your blood pressure cialis lowest price 20mg
    匿名2020-11-12 04:26 回复 Windows 7 | Chrome 66.0.3359.170
  41. when will cialis go generic cialis for sale warnings for cialis cialis dosages
    匿名2020-11-11 22:50 回复 Windows 7 | Chrome 68.0.3440.106
  42. cialis without a doctor's prescription generic cialis is cialis generic available does viagra or cialis help with pe
    匿名2020-11-11 20:14 回复 Windows 8.1 | Chrome 67.0.3396.79
  43. fastest delivery of cialis buying online buy tadalafil buy cialis online canadian generic names for cialis and viagra
    匿名2020-11-11 16:52 回复 Windows 10 | Chrome 68.0.3440.75
  44. coupon for cialis by manufacturer generic cialis for sale legitimate cialis by mail
    匿名2020-11-11 07:05 回复 Windows 10 | Chrome 58.0.3029.110
  45. free cialis generic cialis for sale cialis for daily use cialis at a discount price
    匿名2020-11-10 23:48 回复 Windows 10 | Chrome 67.0.3396.99
  46. does viagra or cialis help with pe tadalafil cialis canada
    匿名2020-11-10 20:35 回复 Windows 7 | Chrome 67.0.3396.99
  47. ed causes and treatment cheap ed pills ed pills for sale
    匿名2020-11-10 02:11 回复 Windows 10 | Chrome 67.0.3396.62
  48. pharmacy drugs cheap ed pills cheap drugs online
    匿名2020-11-08 20:56 回复 Windows 7 | Chrome 67.0.3396.87
  49. natural pills for ed how to get prescription drugs without doctor ed treatment options
    匿名2020-11-08 07:54 回复 Windows 8.1 | Chrome 67.0.3396.87
  50. Hi there! [url=https://buyeddrugs.com/#where-buy-priligy]cheap viagra usa[/url] good internet site.
    匿名2020-11-08 05:31 回复 Windows 10 | Chrome 67.0.3396.99
  51. Howdy! [url=https://buyeddrugs.com/#buy-dapoxetine-no-prescription]buy ed pills[/url] very good web site.
    匿名2020-11-07 20:47 回复 Windows 7 | Chrome 68.0.3440.106
  52. natural ed remedies cheap pills online buy anti biotics without prescription
    匿名2020-11-07 19:02 回复 Windows 7 | Chrome 68.0.3440.106
  53. [url=https://buyeddrugs.com/]buy cialis no prescription[/url] cheap viagra usa best erectile dysfunction drugs
    匿名2020-11-07 16:27 回复 Windows 10 | Chrome 68.0.3440.84
  54. Hello there! [url=https://buyeddrugs.com/#dapoxetine]erectile dysfunction drugs online[/url] very good website.
    匿名2020-11-07 12:06 回复 Windows 10 | Chrome 65.0.3325.181
  55. [url=https://buyeddrugs.com/]cialis cheap[/url] treatment for erectile dysfunction order cheap viagra online uk
    匿名2020-11-07 07:53 回复 Windows XP | Chrome 49.0.2623.112
  56. Hello there! [url=https://trustnlinepharmacy.us/#order-dapoxetine]best online pharmacy no prescription canada[/url] good internet site.
    匿名2020-11-07 05:04 回复 Windows 10 | Chrome 68.0.3440.84
  57. Hello there! [url=https://trustnlinepharmacy.us/#generic-priligy]pharmacies online[/url] good web page.
    匿名2020-11-06 23:33 回复 Windows 10 | Chrome 67.0.3396.87
  58. Hello! [url=https://trustnlinepharmacy.us/#buy-priligy-pills-online]best online pharmacy technician training[/url] excellent internet site.
    匿名2020-11-06 18:06 回复 Windows 7 | Chrome 68.0.3440.84
  59. Hello there! [url=https://trustnlinepharmacy.us/#buy-priligy-uk]percocet best online pharmacy[/url] great website.
    匿名2020-11-06 12:50 回复 Windows 7 | Chrome 66.0.3359.170
  60. Hi there! [url=https://trustnlinepharmacy.us/#buy-priligy-uk]online indian pharmacy[/url] great website.
    匿名2020-11-06 07:43 回复 Windows 8.1 | Chrome 66.0.3359.181
  61. viagra walmart buy generic drugs generic viagra cost
    匿名2020-11-05 16:58 回复 Windows 10 | Chrome 67.0.3396.79
  62. where can i buy viagra over the counter buy viagra online generic viagra india
    匿名2020-11-05 04:43 回复 Windows 7 | Chrome 67.0.3396.79
  63. Howdy! [url=https://pharmacycanadafb.com/#legitimate-canadian-online-pharmacies]steroids online pharmacy[/url] beneficial site.
    匿名2020-11-04 23:20 回复 Windows 7 | Chrome 68.0.3440.106
  64. [url=https://pharmacycanadafb.com/]online compounding pharmacy[/url] online pharmacy with doctor consultation fioricet online pharmacy
    匿名2020-11-04 17:34 回复 Windows 7 | Chrome 68.0.3440.106
  65. viagra over the counter usa 2020 canadian pharmacy viagra how to get viagra
    匿名2020-11-04 17:02 回复 Windows 7 | Chrome 67.0.3396.87
  66. [url=https://pharmacycanadafb.com/]cvs pharmacy online refill[/url] hydrocodone online pharmacy safe online pharmacies
    匿名2020-11-04 06:53 回复 Windows 8.1 | Chrome 67.0.3396.99
  67. Hi! [url=https://canadian-drugstorerx.com/#drug-price-comparisons]order priligy[/url] beneficial website.
    匿名2020-11-04 05:22 回复 Windows 10 | Chrome 67.0.3396.79
  68. Hi there! [url=https://erectiledysfunctionpills-365.com/#ed-pills-online]ed pills cheap[/url] beneficial website.
    匿名2020-11-03 23:45 回复 Windows 10 | Chrome 58.0.3029.110
  69. Hi there! [url=https://imitrex-sumatriptan.com/#priligy-cheap]buy imitrex no rx[/url] good internet site.
    匿名2020-11-03 17:05 回复 Windows 10 | Chrome 67.0.3396.87
  70. legal to buy prescription drugs from canada cheap pills online best ed medication
    匿名2020-11-03 16:28 回复 Windows 10 | Chrome 68.0.3440.106
  71. Hi there! [url=https://canadian-drugstorerx.com/#pharmacy-rx]order dapoxetine[/url] very good website.
    匿名2020-11-03 11:30 回复 Windows 8 | Chrome 68.0.3440.106
  72. Howdy! [url=https://erectiledysfunctionpills-365.com/#ed-pills-online]buy ed pills cheap[/url] great web site.
    匿名2020-11-03 06:04 回复 Windows 7 | Chrome 66.0.3359.170
  73. erection pills how to get prescription drugs without doctor canadian pharmacy
    匿名2020-11-03 04:05 回复 Windows 7 | Chrome 66.0.3359.170
  74. [url=http://prednisone8.com/]buy prednisone uk[/url] buy generic prednisone buy prednisone pills online
    匿名2020-11-02 06:43 回复 Windows 7 | Chrome 66.0.3359.181
  75. [url=http://pnnpharmacy.com/]canada pharmacy drugs prices[/url] canadian government approved pharmacies canadian online pharmacies reviews
    匿名2020-11-02 02:05 回复 Windows 7 | Chrome 68.0.3440.84
  76. buy viagra viagra viagra prices
    匿名2020-11-02 00:15 回复 Windows 10 | Chrome 65.0.3325.181
  77. [url=http://prednisone8.com/]deltasone[/url] order deltasone order deltasone
    匿名2020-11-01 21:30 回复 Windows 7 | Chrome 66.0.3359.170
  78. [url=https://dapoxetine4.com/]buy priligy pills[/url] buy priligy uk priligy online
    匿名2020-11-01 17:09 回复 Windows 7 | Chrome 68.0.3440.106
  79. [url=http://pnnpharmacy.com/]canadian cdc pharmacy generic viagra[/url] how to viagra from canada pharmacy without a prescription calisi canadian pharmacy
    匿名2020-11-01 12:46 回复 Windows 8.1 | Chrome 67.0.3396.87
  80. [url=http://prednisone8.com/]buy generic prednisone[/url] buy prednisone buy prednisone cheap
    匿名2020-11-01 08:18 回复 Windows 7 | Chrome 67.0.3396.87
  81. 5 mg cialis coupon printable buy cialis taking l-citrulline and cialis together
    匿名2020-10-31 16:28 回复 Windows 7 | Chrome 67.0.3396.87
  82. mexican viagra sildenafil viagra 100mg price
    匿名2020-10-30 17:17 回复 Windows 7 | Chrome 68.0.3440.84
  83. [url=http://pnnpharmacy.com/]canadian pharmacies for cialis 5 mg[/url] canadian drug stores that cialis goodrx drug prices
    匿名2020-10-30 06:32 回复 Windows 10 | Chrome 64.0.3282.140
  84. viagra prices buy viagra best place to buy viagra online
    匿名2020-10-28 21:40 回复 Windows 7 | Chrome 67.0.3396.99
  85. [url=http://prednisone8.com/]purchase deltasone[/url] buy deltasone pills where buy prednisone
    匿名2020-10-28 14:35 回复 Windows 7 | Chrome 66.0.3359.170
  86. [url=https://dapoxetine4.com/]generic priligy[/url] dapoxetine buy priligy
    匿名2020-10-28 10:40 回复 Windows 7 | Chrome 67.0.3396.87
  87. [url=http://pnnpharmacy.com/]drug pharmacy[/url] canadian drug pharmacies canandian pharmacy without prescriptin
    匿名2020-10-28 06:52 回复 Windows 10 | Chrome 67.0.3396.79
  88. [url=http://canadadrugpharmacyl.com/]cvs online pharmacy[/url] online canadian pharmacy Fda Approved Canadian Pharmacies
    匿名2020-10-27 15:09 回复 Windows 7 | Chrome 66.0.3359.181
  89. [url=http://dxpharmacyx.com/]online pharmacies[/url] canadian pharmaceuticals online reviews discount pharmacies
    匿名2020-10-27 11:14 回复 Windows 10 | Chrome 67.0.3396.87
  90. [url=https://clomid7.com/]buy clomid amazon[/url] buy clomiphene online 2019 buy clomid for women
    匿名2020-10-27 07:30 回复 Windows 7 | Chrome 67.0.3396.99
  91. [url=http://www.mexicanonlinepharmacy.bid/]trusted online pharmacy reviews[/url] costco online pharmacy online pharmacy forum
    匿名2020-10-24 07:12 回复 Windows 10 | Chrome 68.0.3440.75
  92. [url=http://www.mexicanonlinepharmacy.bid/]indian pharmacy online[/url] cvs pharmacy online cialis online pharmacy
    匿名2020-10-24 05:19 回复 Windows 7 | Chrome 67.0.3396.99
  93. [url=https://pharmacycanadafb.com/]pharmacy degree online[/url] online pharmacies usa online pharmacy
    匿名2020-10-23 18:15 回复 Windows 7 | Chrome 67.0.3396.87
  94. [url=http://onlinepharmaciescanada.bid/]canada pharmacy online[/url] alprazolam online pharmacy online pharmacy with doctor consultation
    匿名2020-10-23 06:25 回复 Windows 10 | Chrome 67.0.3396.99
  95. [url=http://finasteride-propecia.com/]buy propecia online[/url] buy propecia usa buy finasteride pills
    匿名2020-10-22 06:42 回复 Windows 7 | Chrome 66.0.3359.170
  96. 太强了 :mrgreen:
    匿名2019-12-19 15:00 回复 Windows 10 | 未知浏览器
    • 站点默认
      我菜鸡,哈哈=。=
      站点默认2019-12-21 11:09 回复 Windows 10 | Chrome 75.0.3770.100
  97. 流批流批
    匿名2019-12-16 10:27 回复 Windows 10 | Chrome 68.0.3440.75