Jump to content
Fórum Script Brasil
  • 0

Funcão Que conta Letras

Leonardo Prass


eu preciso de uma funcao que conte o numero de letras digitadas eu a fiz porem em sua ultima linha ocorre um erro alguém poderia explicar o porque?

using namespace std;
int conta_letras(char[]); //protótipo
int main() {
char palavra[50];
int nro = conta_letras(palavra); //chamada da função
//definição da função
int conta_letras(char vetor[]){
for(int i=0, cont=0; vetor[i]!='\0'; i++)
// Aqui da o erro


Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...