Search:

Type: Posts; User: hex_dump

Search: Search took 0.01 seconds.

  1. LOL, it's late where you are? let's go with that...

    LOL, it's late where you are? let's go with that ;)
  2. I think the comma is just a last name, first name...

    I think the comma is just a last name, first name delimeter. kinda like
    man,camel

    kal123456, are you on a windows machine? Please post your full code you have.
  3. give your printf statment the same specifier as...

    give your printf statment the same specifier as you did for scanf
    for(i=0;i<row;i++) {
    for(j = 0; j < col; j++){
    fscanf(fp,"%c", &namesArray[i][j]);
    printf("%c",...
  4. look up the scanf and fscanf function. What is...

    look up the scanf and fscanf function. What is the format specifier for reading characters?

    once you have that you can put your print statement to print out CHARACTERS, right after you read it in...
  5. Have you tried to compile this because even...

    Have you tried to compile this because even without the -Wall flag gcc has a number of complaints

    int getNames(char namesArray[][MAX_COLS_NAMES]); but then you pass it an int matrix
    int...
  6. If your name file contains characters, why are...

    If your name file contains characters, why are you trying to read integers?

    for(i=0;i<row;i++) {
    for(j = 0; j < col; j++)
    {
    fscanf(fp,"%d\n", &namesArray[i][j]);
    }...
Results 1 to 6 of 6