Estoy empezando en el C++ y estoy aprendiendo sobre funciones lógicas, Necesito ayuda con este codigüito, Los errores dicen: 24 18 [Error] invalid conversion from 'char*' to 'char' [-fpermissive] 4 8 [Error] initializing argument 1 of 'bool vocal(char)' [-fpermissive]
El código es el siguiente:
#include<stdio.h> #include<conio.h>
bool vocal(char letra) { bool tipo; if(letra=='a' or letra=='e' or letra=='i' or letra=='o' or letra=='u') { tipo=true; } else { tipo=false; } return tipo; } main() { bool resp; char letra[1]; printf("\nBienvenido ingrese un caracter: \n"); scanf("%c",&letra); resp=vocal(letra); (resp==false)?printf("\n\tNo es una vocal"):printf("\n\t Es una vocal");