Computer Science > Research Paper > University of South FloridaCOP 3503lab4.cpp (All)
#include <iomanip> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <stdexcept> #include <vector> using namespace std; // Note: This is different implementa ... tion than the previous code I had submitted. This uses functions and makes the menu function neater! class Legos { int setNumber; string theme; string setName; int minifigs; int pieces; double price; public: Legos(int setNumber, string theme, string setName, int minifigs, int pieces, double price) { this->setNumber = setNumber; this->theme = theme; this->setName = setName; this->minifigs = minifigs; this->pieces = pieces; this->price= price; } string GetSetName() { return setName; } int GetSetNumber() { return setNumber; } string GetTheme() { return theme; } double GetPrice() { return price; } int GetMiniFigs() { return minifigs; } int GetPieceCount() { return pieces; } }; Legos breakString(string line) { string B; stringstream A(line); int setNumber; string theme; [Show More]
Last updated: 3 years ago
Preview 1 out of 7 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jun 28, 2021
Number of pages
7
Written in
All
This document has been written for:
Uploaded
Jun 28, 2021
Downloads
0
Views
66
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·