Search Results

Showing results 1 to 30 of 30
Search took 0.01 seconds.
Search: Posts Made By: cl3m0ns
Forum: C++ Dec 2nd, 2007
Replies: 7
Views: 3,057
Posted By cl3m0ns
the .txt file is...

Joe Cruise E1111
Bill Bones E2222
Sue Smith E3333
Tom Turpin E4444
Ron Stewart E5555
Mindy Sweet E7777

and the class file employee has string firstName, string...
Forum: C++ Dec 2nd, 2007
Replies: 4
Views: 972
Posted By cl3m0ns
I was just trying to figure out how powerful or useful pointers are because they just seem worthless to me...thanks for your help though.
Forum: C++ Dec 2nd, 2007
Replies: 7
Views: 3,057
Posted By cl3m0ns
Also thanks for changing the code
Forum: C++ Dec 2nd, 2007
Replies: 7
Views: 3,057
Posted By cl3m0ns
Thanks for that but do you know how to write the information into an array? Or for that matter how to split this string into individual parts for the structure?
Forum: C++ Dec 2nd, 2007
Replies: 4
Views: 972
Posted By 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...


int main()
{...
Forum: C++ Dec 2nd, 2007
Replies: 7
Views: 3,057
Posted By 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.
...
Forum: C++ Nov 19th, 2007
Replies: 2
Views: 452
Posted By cl3m0ns
twomers yet again you have helped me.


Thanks alot!
Forum: C++ Nov 19th, 2007
Replies: 2
Views: 452
Posted By 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


int num;
cout << "enter number of employees: " ;
cin...
Forum: C++ Nov 19th, 2007
Replies: 12
Views: 3,726
Posted By cl3m0ns
so which one of these methods should i use? Which is better?
Forum: C++ Nov 19th, 2007
Replies: 12
Views: 3,726
Posted By cl3m0ns
Well changing it to protected work. I guess I just thought that you could use private variables if it were a parent child class thing. Anyway thanks again for your help twomers
Forum: C++ Nov 19th, 2007
Replies: 12
Views: 3,726
Posted By cl3m0ns
Twomers I will try to make it protected instead of private and see if that fixes it but I though with parent/child classes they could use each others private variables.

Thanks again for your help
Forum: C++ Nov 19th, 2007
Replies: 12
Views: 3,726
Posted By cl3m0ns
Here is the code for my parent class.


#include <iostream>
#include <string>

using namespace std;


#ifndef EMPLOYEE_H
Forum: C++ Nov 19th, 2007
Replies: 12
Views: 3,726
Posted By 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...
Forum: C++ Nov 11th, 2007
Replies: 5
Views: 5,790
Posted By cl3m0ns
thanks you maxmaxwell
Forum: C++ Nov 11th, 2007
Replies: 5
Views: 5,790
Posted By 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...
Forum: C++ Oct 26th, 2007
Replies: 2
Views: 805
Posted By 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.
...
Forum: C++ Oct 26th, 2007
Replies: 5
Views: 574
Posted By cl3m0ns
thanks alot guys that worked perfectly!!
Forum: C++ Oct 26th, 2007
Replies: 5
Views: 574
Posted By cl3m0ns
i thought i did sorry
Forum: C++ Oct 26th, 2007
Replies: 5
Views: 574
Posted By 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...
Forum: C++ Oct 26th, 2007
Replies: 6
Views: 1,159
Posted By cl3m0ns
I have an idea but I'm pretty new to the whole array thing so in that sense i'm clueless.

I know what I want to do just not what exactly to type to get it to do it.
Forum: C++ Oct 26th, 2007
Replies: 6
Views: 1,159
Posted By 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
...
Forum: C++ Oct 26th, 2007
Replies: 7
Views: 1,521
Posted By cl3m0ns
twomers,

thanks for your help.
Forum: C++ Oct 26th, 2007
Replies: 7
Views: 1,521
Posted By cl3m0ns
Error 1 error C2446: '==' : no conversion from 'const char *' to 'std::string *' c:\documents and settings\kyle\desktop\purdue\fall 2007\cit 267\lab assignments\lab06\lab06.cpp 26


This is the...
Forum: C++ Oct 26th, 2007
Replies: 7
Views: 1,521
Posted By cl3m0ns
umm...I really didn't understand any of that stuff that i read here is the code i have so far

#include <iostream>
#include <string>
#include <math.h>
using namespace std;

int main()
{ ...
Forum: C++ Oct 26th, 2007
Replies: 7
Views: 1,521
Posted By 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...
Forum: C++ Oct 17th, 2007
Replies: 5
Views: 2,333
Posted By cl3m0ns
Nope just did the lowest number in the range basically the same way. I pretty much have grasped the concept of random arrays and finding out things about them. Thanks alot for all your help!
Forum: C++ Oct 17th, 2007
Replies: 5
Views: 2,333
Posted By cl3m0ns
Thanks alot Narue you are incredibly good C++
Forum: C++ Oct 17th, 2007
Replies: 5
Views: 2,333
Posted By 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...
Forum: C++ Oct 17th, 2007
Replies: 3
Views: 3,091
Posted By cl3m0ns
Thanks for you help I don't know why I didn't think of that I think it's just the array thing threw me off or something.

Anyways Thanks alot
Forum: C++ Oct 17th, 2007
Replies: 3
Views: 3,091
Posted By 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...
Showing results 1 to 30 of 30

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC