0

Can any body tell me how to convert the following Fortran arrays to C++?

CHARACTER ST1*10
CHARACTER ST*(*)

Thank you in advance!

3
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by WaltP
0

It's been too long and ForTran has changed. If you explain what the arrays mean in FTN, we can probably give you more exact answers.

0

>>CHARACTER ST1*10
probably char st1[10]; >>CHARACTER ST*(*)
My guess is char *st;

Thank Dragon!

I think you are right at the first one. For second one, it might be just a string: string ST?

0

It's been too long and ForTran has changed. If you explain what the arrays mean in FTN, we can probably give you more exact answers.

CHARACTER ST*(*) is just a string to be converted;

CHARACTER ST1*10 is used to save some characters which length is less than or equal 10.

0

CHARACTER ST*(*) is just a string to be converted;

String like a C++ string or a C-string? Be specific.

CHARACTER ST1*10 is used to save some characters which length is less than or equal 10.

I was asking what the declaration means, not how they are going to be used. We need to know the language definition.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.