Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Campus Tour Guide system by C++

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to realize the campus tour guide system by C++". In the daily operation, I believe many people have doubts about how to realize the campus tour guide system by C++. The editor has consulted all kinds of materials and sorted out the simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to realize the campus tour guide system by C++". Next, please follow the editor to study!

Campus tour guide system

Problem description: design a campus tour guide program to complete the maintenance of campus information and provide information query and other service functions for visitors.

Basic requirements:

Design the campus plan of the school, which contains not less than 10 scenic spots. Each scenic spot in the school is represented by the vertices in the map. The vertex information includes: scenic spot name, code name, brief introduction, etc., and the road is represented by edges. The edge information includes: distance between two points, time required and other related information. (note: data input can be keyboard input or file input)

Provide the function of editing campus scenic spot information (such as: add, delete, modify, etc.)

Provide visitors with information about any scenic spot in the picture (can provide a variety of query methods)

Provide visitors with directions from the school gate to any scenic spot in the picture (shortest path)

Provide visitors with directions inquiries between any scenic spots in the picture.

# includeusing namespace std;int main () {int n; const int MAX=1000 Static int r [MAX] [MAX] = {{0mine100pr] [MAX] = {{0pr é t] [MAX] = {{0pct] [MAX] = {{0pct] [MAX] = {{0ret] max] [max] = {{0pcr] [max] [max] = {{0ret] [max]] = {{0ret] [max] = {100pr] [max]] = {{0mint] [max] = {{0ret] [max] [max] = {{0ret] [max] [max] {MAX,MAX,MAX,MAX,300,0,50,MAX, MAX,MAX}, {MAX,MAX,200,MAX,MAX,50,0,MAX,MAX,400}, {MAX,90,MAX,70,MAX,MAX,MAX,0,50,50}, {MAX,MAX,MAX,MAX,MAX,MAX,MAX,50,0,70}, {MAX,MAX,MAX,50,60,MAX,400,50,70,0}} Struct vertex {string name; int number; string introduction } ver [MAX] = {{"school gate", 0, "school main gate"}, {"stadium", 1, "place where the school holds sports activities"}, {"apartment 6", 2, "campus dormitory", {"meditation square", 3, "big grass", {"knowledge source pavilion", 4, "small pavilion"}, {"library", 5 "Habitat of the Book", {"Comprehensive Experimental Building", 6, "Laboratory"}, {"University Hall", 7, "place for holding meetings and activities"}, {"Pengyuan apartment", 8, "Pengyuan Student dormitory"}, {"Engineering Hall", 9, "Bishop Building"}} Int b; for (bachelorette)

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report