Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 30
Member Avatar for cl3m0ns

I am writing a program and I have a .txt file that has a some information about people. I would like to write that information into an array and then display that information about the person. The problem is that I don't know how many names will be in the …

Member Avatar for WaltP
0
156
Member Avatar for cl3m0ns

i have a class called Employee and a method in that class called display(). When that method is called it displays a first name and a last name. In my int main() i have... [CODE] int main() { Employee emp; Employee* ptr; return 0 ; } [/CODE] I was wondering …

Member Avatar for WaltP
0
97
Member Avatar for cl3m0ns

If I were to ask the user to enter the number of employee. Could I put that user entered number into an array? If so how? for example [CODE] int num; cout << "enter number of employees: " ; cin >> num; array[num]; [/CODE] this code doesn't actually work because …

Member Avatar for cl3m0ns
0
95
Member Avatar for cl3m0ns

I am writing a program and one of my classes is called Employee the private variables for Employee class are string firstName; string lastName; I have a child class called StaffEmployee and for its private variables I would like to use int employeeID; I want to create an object in …

Member Avatar for twomers
0
329
Member Avatar for cl3m0ns

I have int x I would like to fill it with a randomly generated number between lets say 6 and 10 I know that x = 1 + rand() % maxRange; will limit the maximum range but i would also like to limit the minimum range. How do i put …

Member Avatar for joshua.tilson
0
146
Member Avatar for cl3m0ns

I have a program that takes two separate arrays one of all the peoples names and the other of their test scores. I am not sure how to display the scores in a table view. here is my code so far [code=cplusplus] #include <iostream> #include <string> #include <math.h> using namespace …

Member Avatar for tracethepath
0
82
Member Avatar for cl3m0ns

I have this program it allows the users to enter a name and a score it saves all the names to one array and all the scores to another. The program then displays all the names and scores in a list. I want to have the code for displaying the …

Member Avatar for WaltP
0
153
Member Avatar for cl3m0ns

I have a program that takes two arrays. One is a persons name. the other is their test score and displays it. I have an if statement nested in the for loop used to fill the array that allows you to enter stop as a name and it will put …

Member Avatar for cl3m0ns
0
123
Member Avatar for cl3m0ns

I am trying to write a program with two separate arrays in it. In the first array I will store all my Dads clients names. In the second array I will store all their address. If I wanted to do this how would I go about storing the arrays so …

Member Avatar for twomers
0
133
Member Avatar for cl3m0ns

Okay, so I just got some help on how to find the average of 30 randomly generated numbers. The next thing I would like to do however is a little trickier, I think. I would like to display the highest randomly generated number in the equation. Here is what i …

Member Avatar for cl3m0ns
0
92
Member Avatar for cl3m0ns

I am trying to write a program that takes a specif range from the user and generates 30 random numbers in that range. I have that part worked out and the code works fine but I have no clue how to take the average of those 30 random numbers. Could …

Member Avatar for cl3m0ns
0
91