- 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
4 Posted Topics
The error of ur code is in line 11. First of all u didn't initialize the value of k. secondly when u are putting the mod value in k its changing the value up to the last round of the loop so in last when its not becoming the 0 …
As Excizted said u should describe ur problem. Here u wrote [QUOTE]But i want to know the working of this program[/QUOTE] what does it mean??? R u asking the purpose of this program or asking that how does the program working?? if u want to know how does the program …
[CODE]#include <iostream> #include <iomanip> //using std::cout; // istade of using std again and again u can use using namepasce std; //using std::cin; //using std::endl; using namespace std; int main() { int highestInt = 0; int lowestInt = 0; int integer=1; // set a value which is not 0 int counter …
At first on line 24 set the value of s=5 or some value greater then 3. 2ndly change 2 line(line 29 and line 31) before the [B]while[/B] loop. [CODE] while ( s!= '\0' ) { cout << "Your Gender: "; cin >> s; being.setGender(s); cout << "\n\nYour selected gender was: …
The End.
mahmud.2345