Menu

allocate a 2dim char* field

keltas
2011-03-13
2012-09-26
  • keltas

    keltas - 2011-03-13

    Hi all,
    "...
    char str1 = "constant string";
    char *lc;
    ...
    lc=&str1;
    ..."

    this seems to be valid and compiles.
    How can space be dynamicaly allocated to an 2dim char-pointer field lc, where
    m and n represent nbs of rows and columns needed?

    Thanks
    keltas

     
  • keltas

    keltas - 2011-03-21

    Hi,
    meanwhile I picked up a solid starting point from here: "http://www.cplusplus
    .com/forum/general/9762/
    " -
    probably the better place for topics on C++. So I retire. Anyway thanks to all
    those who read.
    keltas

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.