LOL, it's late where you are? let's go with that ;)
Type: Posts; User: hex_dump
LOL, it's late where you are? let's go with that ;)
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.
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",...
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...
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...
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]);
}...