0
int main(void)
{
    long long cardnumber = 0, calc;
    //string credit[1];
    //string lengthkey[1];
    string credit[1];
    string lengthkey[1];
    int countcardcharacters = 0;

    //user input
    do
    {
        credit[0] = get_string("Card number: ");
    }
    while ((credit[0] <= 0));
    //to check if condition works
    printf("%s credit\n", credit[0]);

    //copy string
    strcpy(lengthkey[0], credit[0]);
    printf("%s", lengthkey[0]);
}

You must log in to answer this question.

Browse other questions tagged .