如何在C ++中将字符数组分成两个独立的数组?

时间:2017-10-21 04:21:15

标签: c++ arrays

我只是在学习字符数组。 据我所知,在C ++中,字符数组将空格存储为NULL。有没有办法可以用它将数组分成两个?

    char Full_Name[14] = {Henry Ford};

  /*how would I go about separating that into two character arrays? I have 
    an idea more or less, but surely there's something simple that I haven't 
    learned yet. */

    char First_Name[7], Last_Name[7];

    strcpy(First_Name, )
    strcpy(Last_Name, )

0 个答案:

没有答案