How can i declare 2 or more dimension array as function parameter???

I am new to Objective-C and Cocoa. and now I have a problem.
I want to send 2 dimension array to function but it cannot compile the error is "array type has incomplete element type" Please help me
This is my Interface
+ (void) reValueInArray: (int[][] ) labelValue replaceValue: (int) oldValue withValue: (int) newValue;
and one more question
How can i get length of array
1. array that declare as array at first (int a[5] for example)
2. array that declare as pointer at first (int a* for example)
Thank you Very much

Satake wrote:
a 2 dimension array is just an array of arrays correct?
No. It isn't.
so it'd be something like
- (void)arrayManipulator:(NSArray *)aTwoDimensionArray;
You're mixing metaphors. The original poster isn't using NSArray, but, rather, C arrays.
+ (void) reValueInArray: (int[][] ) labelValue replaceValue: (int) oldValue withValue: (int) newValue;
In C, a multi-dimensional array is just one big, single-dimensioned array that uses fixed sizes for all but one of the component arrays to find a particular element. That means that you can't ever do something like:
There are several workarounds.
1) Use NSArray, as suggested in the first reply. That will solve this problem and lots more. With NSArray, you really an have arrays inside of arrays.
2) Treat the array as just a plain old pointer in the function signature, then cast it back to the properly dimensioned array.
3) Create a true array of arrays in C, using dynamic allocation. More trouble than it's worth.
4...N) Other options that are probably more trouble than they're worth.

Similar Messages

  • How can I create a variable size array?

    How can I create a variable size array?

    ok then how can i create a new vector object?If you don't know that, you need to go back to your text book and study some more. Or read the tutorial on the basics of Java: http://java.sun.com/docs/books/tutorial/java/index.html
    After reading that you can move on to: http://java.sun.com/docs/books/tutorial/collections/index.html
    Anyway, the answer to your question is, of course:
    Vector v = new Vector();(But you should probably use ArrayList instead of Vector.)

  • How can I declare shared folder in SAP transaction AL11

    Hi,
    In Application Adapters Guide for ODI (downloaded from Oracle Homepage) have a paragraph:
    "the shared folder needs to be declared in SAP transaction AL11 and the folder opens successfully in AL11"
    if my folder for share is: C:\ABCFolder
    how can I declare the shared folder in SAP transaction AL11, and how to open it ?
    Thanks for reply.

    Hi,
    Once you delete the session in SM35, it is not possibel to restore it back.
    Check if you have also deleted the logs? Logs can exists after deleting the Session, provide you have not deleted the logs too.
    It is not possible to create one more session using AFAB.
    still if you want to do it, then in the selection screen at least change one of the parameter (Company code, Fiscal year, Posting period).
    IF you still do not want to change the above input parameters, then there is another option, i.e. create a new assest and then run the AFAB with the radio button in REPEAT RUN.
    Hope this is clear
    BR
    Sree

  • How can I manage access to dimension members in a layout?

    Hello,
    I have a dimension member list of materials (400) on a "material" dimension. But some people have access to one portion of the whole group and others may have access to other groups. But the materials can be shared between groups so I cannot group them in differents hierarchies.
    The problem is in the layout you need to select a hierachy to show various rows (the whole group of materiales). The layout shows all the list of materials. Even if the user only have access to 10 of them. I don't know how is the best way for presenting this to the user? It should presents only the 10 rows corresponding to his materials.
    One way that I found (but I don't find it acceptable because of the hard effort that represents the maintenance) is to create differents member access profiles and denied the access to each material (dimension member - 390) that the user cannot modified. Then in excel I have to run a macro that hides all the rows that have an empty description in the cell of the material name.
    How can I achive this?
    Is there a function in BPC to see if a user have access or not to a dimension member?
    The only way to show in a layout various rows is to set in the view a hierarchy?
    Thanks & Regards
    SU

    hi
    pl. verify whether this will suit your requirements:
    Material           UG1           UG2
    MAT1               Y
    MAT2                                 Y
    MAT3               Y
    MAT4                                 Y
    MAT5               Y               Y
    Now UG1,UG2 diff user groups and property in Material. Assignment of Y is one time job.
    At the time of accessing the dimension members can restrict on the basis of UG1="Y" or UG2="Y" property
    Here MAT5 is common in both UG1 and UG2
    (Hardly may have 3-4 set of users: Accordingly can have UG1,UG2,UG3,UG4 etc.)
    sri

  • How can you set up more than one device on iTunes. I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices.

    How can you set up more than one device on iTunes? I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices. I have all my music/videos on iTunes on my mac book pro. Can you set up separate folders for each device and drop in what ever music/videos from the main iTunes library?

    In itunes it is called syncing and you can choose exactly what content to sync to all devices and it can be different for all of them
    How to sync

  • How can i declare a single radio button field in selection-screen ?

    How can i declare a single radio button field in selection-screen ?

    >
    Rob Burbank wrote:
    > And how will you turn it off once it is turned on??
    >
    > Rob
    Thats correct ;)...See ravi if users will ask so many things its our Job to convay the correct solution ....
    Just post your org requirement..SOo some body guide you better//
    Sas

  • How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    For my part you are welcome, sdowers.
    Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
    I just came to remember a warning that needs to be given:
    The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25.

  • How can i print out more that one invoice ?

    Hello All,
    How can i print out more that one invoice?
    Regards,
    Luke

    Hi,
    When you are in billing document & click on "issue output to", you get a window having tab"print options"
    click on this by selecting your output type. In the feild "Number of messages" you enter how many times you want the print to be printed.
    This will help you.
    Additionally you can also write logic in your print program if you want the print to be fired some fixed number of times. (eg 4 times), this can be done by your ABAPer.
    Hopw this helps you
    Regards,
    Dhananjay

  • How can I scale just one dimension of a pic? I need to shrink the width only, to fit the frame.

    HELP!  How can I shink only one dimension?  I need to shrink the width slightly to fit the frame; the program only allows scaling that is proportional, so when I shrink the width the heigh becomes too short.  Father Mike

    I'd recommend using the rectangular marquee and the crop command. This will crop the image to an exact size without any resampling or distortion. Cropping without constraint can cause distortion...like giving someone a cone head.
    Check the size of the image first by either looking in the Image<Resize<Image Size. Make a notation of the height since you don't want to change that in this case. (While you are there, change the resolution to the desired output...make notation of height after this step if you changed the resolution.)
    Select the Rectangular Marquee tool. Change the setting in the options bar to "Fixed Size" and input the desired size. (Along with the numbers, specify in this box in what units you desire...px, in, etc.
    Drag the marquee to the desired location. (As long as the marquee tool is selected, this selection box can be moved around).
    Go up to the menu bar and select Edit<Crop.
    Reading material on Image<Resize<Image Size:
    http://help.adobe.com/en_US/PhotoshopElements/7.0_Win/WSae2ea3b149d0c3591ae939f103860b3d59 -7ee8.html
    Reading material on Crop Command:
    http://help.adobe.com/en_US/PhotoshopElements/7.0_Win/WSae2ea3b149d0c3591ae939f103860b3d59 -7eed.html

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • How can I talk with more then one person at a time?

    How can I talk with more then one person at a time? With Faxe time? Is thier software needed to do this or can it be done with the basic package?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • When my site comes up it is half way across the screen and I lose data on the right. How can I move it more to the left.

    When I log onto a site, the material is over to the right too far. I lose data on the right side of the screen How can I move it more to the left.

    This issue can be caused by the Babylon Toolbar 1.1.8 extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How can i declare a selection screen in a DP program with transaction code.

    hi friends,
    How can i declare a selection screen in a DP program with transaction code. What are the events and flow logic..

    Search in SCN/Google for Module-pool programming basics.

  • HT1473 how can I download an more than one audio cd to itunes, scramble all and then transfer all back to a R/W cd?

    how can I download an more than one audio cd to itunes, scramble all and then transfer all back to a R/W cd?

    Import the CDs to iTunes one at a time, following these instructions.
    Once the tracks are in your iTunes library, put them into a playlist, and get them into the order you want.  Or if you by "scramble" you mean a randomly shuffled order, use the crossing arrows at the lower left to do so.
    When you are ready, insert a blank CD, use the command File > Burn Playlist to Disc, and create an audio CD.  I strongly suggest using CD-Rs rather than CD-RWs, since the latter often have trouble in normal CD players.

  • How can i create a more detailed map in aperture?

    How can i create a more detaled map in Aperture- Book?

    There are no templates for more detailed maps in Aperture.
    You might consider to add more detailed maps as photos to the photo boxes in the book. I sometimes simply take a screenshot of the map in "Places" view to get a more detailed map with the pins marking the places.

Maybe you are looking for

  • How to change default save as location

    hi, how to change default save as location in acrobat 7.0?

  • Down Payment Processing in SD

    How can i set block delivery when i create the SO with item category TAO? User just can create DO after do post Down Payment.

  • Confirmation by the external vendor: attaching document?

    Dear experts, We are on an SRM 5.0 classic scenario. We want to use the vendor role SAP_EC_BBP_VENDOR to give the external vendors the opportunity to confirm goods. One of the requirements is that they need to be able to attach documents. However, wh

  • Dock no longer transparent

    Hello all, Suddenly my dock is no longer transparent. Can anyone suggest a reason why and how I can get it back to "normal" transparency? (without third-party apps) Thanks, Shari

  • CSS question on sidebar heights

    Just going back to a site I started a while ago, and am going to have pages with a centre section and two sidebars - but don't think I'm sure on the best way to ensure the sidebars and the main content are the same height. I've been trying with putti