Author Topic: Question about list Processing  (Read 1841 times)

0 Members and 1 Guest are viewing this topic.

alex

  • Guest
Question about list Processing
« on: June 13, 2009, 10:47:45 AM »
I have 1 lists.
1 c1 5
1 c2 6
2 c2 3
2 c3 1
3 c4 6
3 c1 2
……

What i want is :

   1 2 3  total
c1 5   2  7
c2 6 3    9
c3   1    1
c4     6  6
……

Thank you.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question about list Processing
« Reply #1 on: June 13, 2009, 10:49:23 AM »
Hi Robert.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Question about list Processing
« Reply #2 on: June 13, 2009, 10:51:40 AM »
Maybe its just me, but I can't see how you get from list1 to list2...

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question about list Processing
« Reply #3 on: June 13, 2009, 11:05:51 AM »
I can (find unique cars, list and sum items associated with the former ...), but sorry, I'm done doing his homework. Sharing techniques and knowledge is great, and principally what the swamp is based upon, but he continues to post questions that appear to come straight from class assignments. Providing solutions in this context is essentially helping the OP cheat, and cheating is not what the swamp is about. Could I be wrong? Absolutely, but the OP has not responded to these challenges in the past so I have to assume I'm right. Pass.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

alex

  • Guest
Re: Question about list Processing
« Reply #4 on: June 13, 2009, 11:13:57 AM »
Thanks.
I will work hard to figure it out by  myself.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question about list Processing
« Reply #5 on: June 13, 2009, 11:16:54 AM »
See? Again the challenge that this is a class assignment is neither acknowledged or refuted, nor does the OP ante up his efforts to solve the problem (until prodded).
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Question about list Processing
« Reply #6 on: June 13, 2009, 11:26:18 AM »
You can't progress without putting a effort into solving these sorts of problems yourself - and we aren't here just to serve up the answers.

Good point Michael.

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Question about list Processing
« Reply #7 on: June 13, 2009, 02:03:04 PM »
The answer is eleven.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Question about list Processing
« Reply #8 on: June 15, 2009, 02:05:35 PM »
I can (find unique cars, list and sum items associated with the former ...), but sorry, I'm done doing his homework. Sharing techniques and knowledge is great, and principally what the swamp is based upon, but he continues to post questions that appear to come straight from class assignments. Providing solutions in this context is essentially helping the OP cheat, and cheating is not what the swamp is about. Could I be wrong? Absolutely, but the OP has not responded to these challenges in the past so I have to assume I'm right. Pass.

I've seen this on other forums.  In most circumstances where it is thought to be an assignment answers are posted a week (or several) later - well past any deadlines.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}