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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 2D char array
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

j@y

Germany
29 Posts

Posted - 07/09/2015 :  4:29:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Castiel

343 Posts

Posted - 07/09/2015 :  6:55:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

妾+   午旦  妹罕妾  妾伊    用仇  妾/     岫ㄞ
 妾京用 仍巨  件 侈   件戶' 甘岫平   /欠  白岫妹
   併             艮          岫  奈 白   岫
                              岫
Go to Top of Page

j@y

Germany
29 Posts

Posted - 08/29/2015 :  01:18:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, Castiel. StringArray is the answer!
Best wishes, Jiri
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000