CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: shyy

Search: Search took 0.03 seconds.

  1. Re: Help cleaning code for better console presentation

    For our class its good that we show bunch of functions. Thanks for the info, I will dissect and study from this.
  2. Re: Help cleaning code for better console presentation

    Thanks for the suggestion, I replaced what with what you put and got a bunch of errors that dealth with Agency. I replaced both the top and bottom to match void TalentsByJob(const Agency Talents[],...
  3. Re: Help cleaning code for better console presentation

    Got it working! Thanks guys!



    void TalentsByJob(Agency Talents[], int limit)
    {
    system("CLS");

    string show;
    cout << "Enter the Job: ";
  4. Re: Help cleaning code for better console presentation

    Why is it if I put if(found == true) I get not found for both if its found and not found?
  5. Re: Help cleaning code for better console presentation

    What I have so far



    void TalentsByJob(Agency Talents[], int limit)
    {
    system("CLS");

    string show;
    cout << "Enter the Job: ";
  6. Re: Help cleaning code for better console presentation

    is it how I am implementing the found? My biggest problem is with the header, how to not get it to repeat but only show if the show is found. I don't know how to implement that, since the for loop...
  7. Re: Help cleaning code for better console presentation

    Am I getting close with the syntax?



    void TalentsByJob(Agency Talents[], int limit)
    {
    system("CLS");

    string show;
    cout << "Enter the Job: ";
  8. Re: Help cleaning code for better console presentation

    Where I am getting confused is when I put in the for loop in the beginning. If I put both


    cout << "List of Talents for the Job: " << show << endl;
    cout << "\nTalent\t\t" << "\tPay\n" <<...
  9. Re: Help cleaning code for better console presentation

    The function works its just I don't want so much output if the job is not found.

    displaying the max, min and avg and total is not necessary since the job is not found in the database.
  10. Help cleaning code for better console presentation

    Hi guys,

    I have this function and it works, the problem is that it couts a bunch of stuff that I don't need. What this functions does asks the user to input a job (show) and if the show is found...
  11. Replies
    15
    Views
    3,778

    Re: C++ Sum multiple group to find the max

    We always dealt with situations dealing with a set of numbers but never by group. We havn't really talk about designing of the program more life like situations. All those situations didn't deal...
  12. Replies
    15
    Views
    3,778

    Re: C++ Sum multiple group to find the max

    I have another question, more to deal with the syntax and structure of a function, should I open a new thread?

    I have the function and it works just need to clean it up for better presentation.
  13. Replies
    15
    Views
    3,778

    Re: C++ Sum multiple group to find the max

    Thanks so much! it worked!!

    D-Drmmr, we havn't learned unordered_map<std::string, int> this in class.
  14. Replies
    15
    Views
    3,778

    Re: C++ Sum multiple group to find the max

    Not sure what you mean, I did this



    void findMaxJob(Agency Talents[], int limit)
    {
    system("CLS");

    string curJob = Talents[0].job;
    double sum1 = 0;
  15. Replies
    15
    Views
    3,778

    Re: C++ Sum multiple group to find the max

    I have a final on Saturday, but this example was from a previous final. Trying to study for this. We never had this type of question where we dealt with groups. This function doesn't ask for any...
  16. Replies
    15
    Views
    3,778

    Re: C++ Sum multiple group to find the max

    Thanks, the data is actually sorted. The code I used is to find the max within a set of individual numbers but I am not sure how to do this if groups are involved. This code works if I have the...
  17. Replies
    15
    Views
    3,778

    C++ Sum multiple group to find the max

    Hey everyone,

    Does anyone know how to sum groups in C++? I have a class with 2 attributes (Group and Price). I need to find the group with the highest amount. I can find the max when it comes to...
  18. Re: C# with Access DB link a tuple to represent a picture box

    Hi David,

    This is honestly not a homework, it is a project. My professor is okay for us to seek help, we are taking a beginning course in C++ and the last 2 week has been C#. He displayed the...
  19. Re: C# with Access DB link a tuple to represent a picture box

    http://forums.codeguru.com/

    http://forums.codeguru.com/

    Uploaded with ImageShack.us
  20. C# with Access DB link a tuple to represent a picture box

    Hi everyone,

    New to the board,

    I am working on a C# project and completely lost. I am trying to create a restaurant POS system. Each tables (8 in total) would represent a tuple in a database....
  21. C# with Access DB link a tuple to represent a picture box

    Hi everyone,

    I am working on a C# project and completely lost. I am trying to create a restaurant POS system. Each tables (8 in total) would represent a tuple in a database. Basically the employee...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured