Find Jobs
Hire Freelancers

c++ problem involving pointers and classes

$10-30 USD

Завершено
Опублікований over 7 years ago

$10-30 USD

Оплачується при отриманні
Need done in less than an hour! Use the following code segment for your answers to the questions below: template< class T > class Mystery {   public:     private:        T *what1;        T *what2;        int size;  // The size is for the two arrays(what1 and what2). }; int main( ) {   const int SIZE = 5;    int grades1[ ] = { 100, 90, 87, 89, 60}; // LINE 1    int grades2[ ] = { 98,56,90,90,100}; //LINE 2    Mystery < int > object1( grades1, grades2, SIZE); // LINE 3    cout << object1[3] << endl; // LINE 4    return 0; } Questions: 1. The code on LINE 3 in the main is supposed to copy all array elements of grades to the *what that is used as an array.   ( 5 points) What is missing in the class Mystery? Come up with the implementation inside the class. 2. Come up with the implementation inside the class to make the code on LINE 4 work when executed in a complete program.  (3 points) 3. Where should you delete the pointers of the class?  Modify the class.  (2 points) 4.  What should be done to the main ( ) if the main contains the following statement below LINE4 ?   ( 2 points)    Mystery < double > object2( grades4, grades5, SIZE);
ID проекту: 12193350

Про проект

3 пропозицій(-ї)
Дистанційний проект
Активність 7 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Hello, my name is Kostas and I am an expert c/c++ developer with an extensive knowledge of algorithms and data structures. I can have your program ready within an hour. Please send me a message to discuss the details. Thank you in advance, Kostas.
$30 USD за 0 день
5,0 (15 відгуки(-ів))
3,0
3,0
3 фрілансерів(-и) готові виконати цю роботу у середньому за $23 USD
Аватарка користувача
hello,how are you. i read your bid carefully. i am c/c++ expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please contact me. Then, I will give you good result to the proposals. hire me.
$25 USD за 1 день
5,0 (9 відгуки(-ів))
4,3
4,3
Аватарка користувача
Hello, sir. I have read your project description in details. I have enough experiences with your required skills. I have worked as software developer in desktop with C, C++, C#, java. And in .NET & ASP.NET and Database exploits. And I have enough experiences in android with android studio and eclipse - java. Then in iPhone with Objective C and Swift. I have been working in your required skills for 6 years now. I have knowledge and experiences in there. I want good job and success, but not money. If you award me, I will be very happy and will start and finish our project compeletely as soon as possible. If you want my skill and experience yourself, I recommend you see my profile. I will wait your good news...
$25 USD за 1 день
5,0 (1 відгук)
0,5
0,5
Аватарка користувача
I have looked at it and can help you out. Let me know if you are interested on my bid. ......................
$15 USD за 1 день
5,0 (27 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
West Richland, United States
4,4
3
Спосіб оплати верифіковано
На сайті з жовт. 28, 2016

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.