Find Jobs
Hire Freelancers

Creating A Table From Two Structs

$30-100 USD

Closed
Posted over 18 years ago

$30-100 USD

Paid on delivery
I've got a two structs with information destined for 4 processors. Upon receipt of the two structs (which is part of an 'overall' struct) each processor will create a vector of 'storable' objects (see source). So lets assume I'm processor 0. The struct LSP_Input_Def_T is a two dimensional struct such that: LSP_Input_Def_T LSP_Input_Def [ max_seg ] [ max_processors ]; Could be viewed as: LSP_Input_Def_T LSP_Input_Def [ 5 ] [ 4 ]; The header overall is transmitted to all 4 processors. Again, I'm processor 0 so I only care about: LSP_Input_Def_T LSP_Input_Def [ 0 ] [ 0 ]; LSP_Input_Def_T LSP_Input_Def [ 1 ] [ 0 ]; LSP_Input_Def_T LSP_Input_Def [ 2 ] [ 0 ]; LSP_Input_Def_T LSP_Input_Def [ 3 ] [ 0 ]; LSP_Input_Def_T LSP_Input_Def [ 4 ] [ 0 ]; Note the second dimension (all zeros) of the two dimensional array refers to the processor. Now the header - in main - is 'tailored towards processor 0'. i.e LSP_Input_Def is only filled out for processor 0. In essence, if I could simulate 0. I could simulate the reaminder. At issue: Notice the two cases ran. Two separate objects. ov and ov2. The 'order field' in ov2 is incorrect. I was trying to determine a _nicer_ way if you will to do the search. The linear search shown in the code doesn't make sense. The file [login to view URL] contains my attempt. Need assistance in fixing the 'order' field. My results from the source is as follows: /* (sid)0 (order)1 0 100 (sid)3 (order)2 1 200 result 2 (sid)3 (order)1 1 100 (sid)0 (order)2 0 200 Press any key to continue */ The information pertaining to (result 2) (sid)3 (order)1 1 100 (sid)0 (order)2 0 200 is incorrect. Should read: (sid)3 (order)2 1 100 (sid)0 (order)1 0 200 See file for details - file is best viewed with notepad. NOTE: strict C++ desired. i.e container usage is appropriate.
Project ID: 41392

About the project

6 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $81 USD for this job
User Avatar
Hi, I can try to do this. But need comments from you. Regards.
$100 USD in 1 day
5.0 (1 review)
3.0
3.0
User Avatar
I have very much wide experience of programming with included simulation programs. I can guarantee high quality of work. I can send the additional information by inquiry. Terms and working costs should be specified after the agreement on the detailed specification.
$100 USD in 2 days
0.0 (0 reviews)
2.0
2.0
User Avatar
Hi, I have come up with solution to the problem with ordering. And need extra information for implementing priority mechanism if needed. My Regards.
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Orlando, United States
5.0
123
Payment method verified
Member since Jan 26, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.