Hola a todos espero que alguien pueda ayudarme, no se como puedo hacer para que introduzca el usuario los barcos, esto es con un solo jugador y la funcion que carga los barcos no funciona hace cosas rarisimas. Si alguno puede explicarme como introducirlos estaria muy agradecida.

#include <stdio.h>
#include <stdlib.h>

#define TAM 8

void menu();
void tirada(int i, int j);
void tablero(int i, int j);
void cargabarcos(int f, int c);


main(){
int opcion, salida;
int i,j;
int f, c;


while(salida != 0){
menu();

scanf("%d",&opcion);
switch(opcion)
{
case 1:
cargabarcos(f,c);
break;
case 2:
tirada(i,j);
break;
case 0:
salida=0;
break;
default:
printf("Opcion no valida\n");
break;
}
system("pause");
}
}

void menu()
{
printf(" HUNDIR LA FLOTA \n");
printf("\n");
printf("1.-Cargar el tablero con barcos.\n");
printf("2.-Comenzar a jugar.\n");
printf("0.-Salir.\n");
printf("\n");
return;
}

void tablero(int i, int j)
{
char matriz[TAM][TAM];
for (i=0; i<TAM; i++){
for (j=0; j<TAM; j++){
printf (" #");
}
printf("\n");
}
return ;
}

void tirada(int i, int j)
{
printf("Introduce coordenadas\n");
scanf("%d ,%d" ,&i,&j);
return;
}

void cargabarcos(int f, int c)
{
char matriz1[TAM][TAM];
int orientacion;
int fila,columna;

printf("Cargando barcos...\n");
printf("Portaviones\n");
printf("Indique orientacion:\n");
printf("horizontal = 1 , vertical = 2\n");
scanf("%d",&orientacion);
printf("Introduzca coordenas:\n");
scanf("%d,%d",&f,&c);

for (f=0; f<TAM; f++){
for(c=0; c<TAM; c++){
matriz1[f][c] = '#';

if (orientacion == 1){

if (c>4){
for (c=4; c<8; c++){
matriz1[f][c] = 'x';
}
}else{
for (c=4; c<0; c--){
matriz1[f][c] = 'x';
}
}
}
if (orientacion == 2){
if (f>4){
for (f=4; f<8; f++){
matriz1[f][c] = 'x';
}
}else{
for (f=4; f<0; f--){
matriz1[f][c] = 'x';
}
}
}
}
}
for (f=0; f<TAM; f++){
for(c=0; c<TAM; c++){
printf("%c" ,matriz1[f][c]);
}
printf("\n");
}

return;
}