- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[code=cplusplus] /////////interface //appication.h #ifndef APPLICATION_MAIN_H #define APPLICATION_MAIN_H #include<string> using std::string; class appliance { protected: string Manufacturer; string Type; public: appliance(string a,string b); ~appliance(); void setManufacturer(string a); string getManufacturer(); void setType(string b); string getType(); void showDetails(); }; #endif [/code] [code=cplusplus] ///////implementation//////////////////// //appication.cpp #include<iostream> using std::cout; using std::cin; using std::endl; #include<string> using … |
|
this is suppose to be a binary search to return the number of times a number is found in the array.............but for some reason it isnt calculating the correct number of times the number is found....already had my paper and pen out trying to find the error but it aint … |
|
hey can anyone explain this code to me, i am trying to understand it for days now but i still cant figue it out its the code of "the towers of hanoi"........it goes like this... [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h>[/COLOR] [COLOR=#800000] [/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] hanoi([/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] n,[/COLOR][COLOR=#0000ff]char[/COLOR][COLOR=#000000] from,[/COLOR][COLOR=#0000ff]char[/COLOR][COLOR=#000000] aux,[/COLOR][COLOR=#0000ff]char[/COLOR][COLOR=#000000] to) {[/COLOR] [COLOR=#0000ff]if[/COLOR] (n==0){ [COLOR=#0000ff]return[/COLOR];} hanoi(n-1,from,to,aux); printf([COLOR=#800000]"\nMove … |
|
the problem with this is that after it accepts the four (4) integers it stop and dont go on to find the average. IS THERE ANYONE OUT THERE THAT CAN HELP. NUFF RESPECT TO ALL WHO TRY TO HELP. [code=c] //to calculate the average of 4 numbers #include<stdio.h> int get4ints(){//function … |