2 / 2 / 4
Регистрация: 13.02.2011
Сообщений: 163
|
||||||
1 | ||||||
Классы. Implement the two functions of the class.10.07.2012, 16:37. Просмотров 2862. Ответов 0
Метки нет Все метки)
(
Ребята, суть такая вообщем, я проходил когда-то C++, но классы я не затрагивал, помогите с заданием, мне лишь бы разоьраться в этом было бы неплохо.
Task description: 1. Implement the two functions getNiCount and replaceNiWithNI of the class MyClass: - getNiCount should return the number of occurrences of "Ni" within szTestString1/2 (case sensitive) - replaceNiWithNI should replace all occurrences of "Ni" in szTestString1/2 with "NI" (case sensitive) 2. Invoke the two functions getNiCount and replaceNiWithNI. 3. Display the string given in the last comment on screen. X and Y should be replaced with the real values. 4. The class MyClass should be able to deal with both szTestString1 (ASCII) and szTestString2 (Unicode). General requirements: The code should be - easy to understand and maintain (Priority 1) - technically elegant (Priority 2) - as (CPU) efficient as possible (Priority 3) You’re allowed to use all technics, toolkits and frameworks which are based on the C++ language.
0
|
|
10.07.2012, 16:37 | |
Create a programm that creates an object of created class Time and tests the member functions of class Не получается расширить интерфейс - Fatal error: Class Zaporojets cannot implement previously implemented interface Fatal error: Class user contains 1 abstract method and must therefore be declared abstract or implement the remaining Классы с виртуальными функциями. Class Student |
|
10.07.2012, 16:37 | |
Заказываю контрольные, курсовые, дипломные и любые другие студенческие работы здесь. Разъясните код пжлст(выдает ошибку:cannot convert from 'class std::list<class c_bullet *,class std::allocator<class c_bullet *> >::iterator' to 'int') bad class file: C:Program FilesJavajre1.5.0_02lib t.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Зачем введено ключевое слово Implement? Does not implement interface member 'IService1.GetCommandString(int)' Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |