stringtypesuint32

uint32_t equivalent for strings and other data types


my problem is regarding types of variables/values in a file that defines a message which can be exchanged and should be understood by code in multiple programming languages. The example I received was the following:

uint32_t x
uint32_t y

The explanation for this was that uint32_t type will be adapted automatically from the java/python/c++ code. As I am a new programmer, I am now confused how to do this for other types of variables, especially for exchanging Strings. As it isn't obvious to my to which programming language this might belong or what to research, I am glad for every hint on how to search for this and how to exchange Strings. I already tested it with a char like this

char test

Thank you in advance


Solution

  • I don't know how specific the question was to this coding project or if someone else will ever have this issue but nevertheless here is was worked for me in the end after searching trough other messages of this type in other projects related to mine.

    For a string you simply have to use

    char* test
    

    I fount this question afterwards so it seems like this char* is something frequently used in C++.