Matsui17 Posted July 22, 2013 at 06:58 PM Report #519584 Posted July 22, 2013 at 06:58 PM (edited) Boas pessoal, estou outra vez com uns problemas. Estou a escrever uma função que me leia uma string e a guarde, no entanto estou com alguns erros. Poderiam ver e dar a vossa opinião? Aqui está o código neste link: http://pastie.org/private/odxa15k6shpztbfwr6n5pa Desde já obrigado. Edited July 22, 2013 at 06:59 PM by Matsui17
HappyHippyHippo Posted July 22, 2013 at 07:12 PM Report #519585 Posted July 22, 2013 at 07:12 PM onde está o código que lê a string ? onde está o código que guarda a string ? que erros é que aparecem ? IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
Matsui17 Posted July 22, 2013 at 07:26 PM Author Report #519587 Posted July 22, 2013 at 07:26 PM O le_linha le a string e guarda-a (essa é a ideia). Os erros que aparecem sâo: EX8.c:11:38: warning: comparison between pointer and integer EX8.c:11:38: warning: comparison with string literal results in unspecified behavior
thoga31 Posted July 22, 2013 at 07:57 PM Report #519592 Posted July 22, 2013 at 07:57 PM Ficamos na mesma... onde está o código que lê a string ? onde está o código que guarda a string ? Knowledge is free!
HappyHippyHippo Posted July 22, 2013 at 08:09 PM Report #519594 Posted July 22, 2013 at 08:09 PM O le_linha le a string e guarda-a (essa é a ideia). o que estou a ver é que a função recebe uma string, e conta o número de caracteres dessa string. nada mais IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
Matsui17 Posted July 23, 2013 at 10:42 PM Author Report #519719 Posted July 23, 2013 at 10:42 PM Sim, tens razao vou tentar fazer uns ajustes e colocar aqui um update. Obrigado pelo feedback 😉
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now