The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 2D char array

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
j@y Posted - 07/09/2015 : 4:29:17 PM
Hi all,
I'd like to use a 2D char array in OriginC, but it seems impossible. When declaring, e.g.,

char charray[10][10]; (or char *charray[10][10];)

I always get:

:Error, invalid identifier, check using as name:

Do I need to include some extra *.h file or the multi-dimensional char arrays are simply unsupported?
Thanks for your help.
2   L A T E S T    R E P L I E S    (Newest First)
j@y Posted - 08/29/2015 : 01:18:33 AM
Thanks, Castiel. StringArray is the answer!
Best wishes, Jiri
Castiel Posted - 07/09/2015 : 6:55:45 PM
quote:
Originally posted by j@y

Hi all,
I'd like to use a 2D char array in OriginC, but it seems impossible. When declaring, e.g.,

char charray[10][10]; (or char *charray[10][10];)

I always get:

:Error, invalid identifier, check using as name:

Do I need to include some extra *.h file or the multi-dimensional char arrays are simply unsupported?
Thanks for your help.


Use matrix<char> instead.

©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000