Comments (1)
I have completed this task. I now have a value-returning function which allows me to input data into a variable of tourType.
string changeCity(tourType a) {
cout << "Please enter the city of the tour...\n";
cin >> a.cityName;
return a.cityName;
}
destination.cityName=changeCity(destination)
from sdi.
Related Issues (20)
- task_1
- Declare the variable destination of type tourType. HOT 1
- Write C++ statements to store the data HOT 1
- Write the definition of function to output that data stored in a variable of type tourType HOT 1
- Write void function with reference parameter of type tourType HOT 2
- Fix missing functionality in card & deck HOT 1
- Fix initialisation for card HOT 1
- Tidy up impementation file HOT 1
- Card constructor accessibility HOT 1
- Decide whether destructors are needed HOT 1
- Making deck call shuffle automatically HOT 2
- Add query functionality to the Deck class. HOT 1
- Make first attempt at creating the hand class
- Modify the linked list from task 1 HOT 4
- Create a method that returns the second element of the stack HOT 1
- Determine the outcomes of the given scenarios for task 3
- Task 1 - Construct the binary tree HOT 3
- Task 2 - Complete algorithm questions
- Task 3 - Implement the shown binary tree
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdi.