Get the App
SLTechnology News&Howtos  ›  Development  › 

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

Shulou Source: shulou.com Published: 2022-06-01 05:14:13 09月30日 Update

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)

Tags: Campus Scenic spot Information Tour Guide query system School Gate Caterpillar Guest Learning success Sports name School Picture experiment input Hello two Guild Hall Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information macOS OPPO Reno MySQL