Find Jobs
Hire Freelancers

LinkedBag Set C++

$10-30 USD

进行中
已发布大约 6 年前

$10-30 USD

货到付款
USING VISUAL STUDIO C++ Create a templated class called Set that will use LinkedBag as a data member to be a “has a” implementation. The Set will have the following public functions: int getCurrentSize() void isEmpty() bool add(const ItemType& newEntry) bool remove(const ItemType& anEntry) The above Set functions will invoke the data member LinkedBag. Note: there are no duplicates in the sets so the Set add should not allow duplicates (do NOT change the LinkedBag code). Also add to Set the following overloaded operator: Set operator+(const Set&) // do a union Set operator-(const Set&) // do an intersection friend ostream& operator<<(ostream&, const Set&) // print the set Put the class definition in Set.h, implementation in [login to view URL], and a main – 3 files all together. Have main create 3 Set objects that are unsigned integers then create a menu like so: [login to view URL] elements to set1 [login to view URL] elements to set2 [login to view URL] an element from set1 [login to view URL] an element from set2 [login to view URL] a union of set1 and set2 into set3 [login to view URL] an intersection of set1 and set2 into set3 [login to view URL] set1, set2, and set3 [login to view URL] Have the add elements loop and add positive integers until you enter a 0. You can create extra functions (separate from the Set class) to make it easier. Printing would look like: Which set to print? 1 Set 1 has 3 elements of: 11 5 33 With the overloaded operators, you should be able to do something like: set3 = set1 + set2;
项目 ID: 16670667

关于此项目

5提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价$84 USD来参与此工作竞价
用户头像
Hi there! I will deliver the completed Implementation within 24 hours (after you have awarded the project ofcourse). Let me know if you want me to handle this project for you. Thanks for reading!! Best, Maher
$50 USD 在1天之内
4.9 (129条评论)
6.3
6.3

关于客户

UNITED STATES的国旗
glendale, United States
5.0
3
会员自4月 8, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。