• 0
Sign in to follow this  

funções strlwr e strupr: "não funcionam..."


Olá a todos!

O código:

#include <stdio.h>
#include <ctype.h>
#include <cstdlib>
#include <string.h>
using namespace std;

int main()
    printf(strlwr("Rafael Bezerra\n"));
    printf(strupr("Rafael bezerra"));

O código é compilado, mas saem duas mensagens de advertência, referentes a linha de strlwr e strupr: "warning: deprecated conversion from string constant to 'char*'".

O programa é aberto, mas não executado... travado...

Uso codeblocks 10.05, com gnu gcc compiler.

O que é preciso ser feito para que eu possa usar as funções strlwr e strupr?

Share this post

Link to post
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.

Sign in to follow this