Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
60% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
~936 People Reached
Favorite Forums
Favorite Tags
c++ x 39
Member Avatar for KRal

/* 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 …

Member Avatar for WaltP
0
148
Member Avatar for KRal

/*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 << …

Member Avatar for mrnutty
0
134
Member Avatar for KRal

/*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 …

Member Avatar for jonsca
0
108
Member Avatar for KRal

[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 …

Member Avatar for dusktreader
0
118
Member Avatar for KRal

/*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 …

Member Avatar for KRal
0
94
Member Avatar for KRal

// 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 …

Member Avatar for KRal
0
175
Member Avatar for KRal

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 () …

Member Avatar for Clinton Portis
0
111
Member Avatar for KRal

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 () { …

0
48