- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
/* When I run this code the random numbers that are supposed to be generated will not cout. Any suggestions would be a great help!*/ [CODE]int main() { Fraction operand1, operand2, resultant; int a, b, c, n, d; char op, choice; //char opchar: srand(time(0)); system("cls"); //a.setAll(1); //1 indicates that it's … |
|
/*The Fraction + and Fraction / are not being allowed to access private members declared in class Fraction. Any suggestions? */ [CODE]class Fraction { public: Fraction(); Fraction(int, int); void setNum(int); void setDen(int); int getNum(){return num;} int getDen(){return den;} void reduce(); void print(){cout << num <<"/"<< den;} friend ostream& operator << … |
|
/*I am a noob and can not seem to be able to pass a random number to cout. I have tried everything amd am looking for a little guidance*/ [CODE]#include <iostream> #include <ctime> using namespace std; class Fraction { private: int num; // Numerator int den; // Denominator public: int … |
|
[CODE]#include <iostream> #include <ctime> using namespace std; class Fraction { private: int Num; int Denom; public: void Reduce(); //will reduce the fraction to lowest terms void AddFraction(); //will add the two fractions together void print(); //will print the fraction in the form: numerator / denominator }; void Reduce(int &Num, int … |
|
/*This is an assignment for school. The main is part of the assignment. The program will work sometimes, sometimes it will not count the longest word if it is at the end of a sentence.*/ #include<iostream> using std::cout; using std::cin; // Prototype for the longest_word function that you need to … |
|
// I am new to C++ and can not seem to get the falling man to output to the screen. Any help would be greatly appreciated. [code] #include <iostream> #include <windows.h> using namespace std; void DrawBar(char guess); int main() { char solution[8]; //holds solution char blank[8]; //holds "*"'s for unsolved … |
|
I am trying to get this program to return a value, but it will not work. Can anyone help? 1. #include <iostream> 2. #include <iomanip> 3. using namespace std; 4. 5. int number_right (char let1, char let2, char let3, char let4, char let5, char let6); 6. 7. int main () … |
|
I am trying to return the number of letter matches. No matter the number of matches, I get a return of no matches. Can anyone help???[code]#include <iostream> #include <iomanip> using namespace std; int number_right (char let1, char let2, char let3, char let4, char let5, char let6); int main () { … |