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

Search:

Type: Posts; User: Lindley

Search: Search took 2.22 seconds.

  1. Replies
    9
    Views
    8,593

    Re: Newbie needing assistance!

    Well, I was slightly wrong about the "replace if larger" bit since I was misreading the problem, but yeah.

    If you're trying to use C rather than C++, then sorting your array may be the best move...
  2. Replies
    9
    Views
    8,593

    Re: Newbie needing assistance!

    Showing a bit of the test data might be helpful.

    Are you allowed to use a std::map? If so, that would probably be the easiest way to handle the problem. For instance, a map<int,int> could map...
  3. Replies
    9
    Views
    8,593

    Re: Newbie needing assistance!

    Well, my first question is, why does your struct contain arrays? I see no need for that in the problem description. I'm assuming each measured_data_t would have only 1 site_id_num, not 4, for...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured