Click here to Skip to main content
15,881,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:03
Rodrigo Lourenço8-Jun-19 0:03 
SuggestionRe: Problem using strings Pin
David Crow7-Jun-19 16:50
David Crow7-Jun-19 16:50 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:02
Rodrigo Lourenço8-Jun-19 0:02 
AnswerRe: Problem using strings Pin
Joe Woodbury7-Jun-19 18:47
professionalJoe Woodbury7-Jun-19 18:47 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço7-Jun-19 23:59
Rodrigo Lourenço7-Jun-19 23:59 
AnswerRe: Problem using strings Pin
Richard MacCutchan7-Jun-19 21:52
mveRichard MacCutchan7-Jun-19 21:52 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:00
Rodrigo Lourenço8-Jun-19 0:00 
AnswerRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:05
Rodrigo Lourenço8-Jun-19 0:05 
Thank you, for all, it was a great help.
The problem was solved by:

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

#define false 1
#define true 0


char* my_strdelupper(char* s){

      int i,j, len;
      char aux[100];
      char debuging;

      len = strlen(s);
      j = 0;
      for (i = 0; *(s + i) != '\0'; i++){
          if (!isupper(*(s+i))){
              debuging = *(s + i);
              *(aux + j) = debuging;
             j++;
          }
      }
      *(aux + j) = '\0';

      strcpy(s, aux);
      return s;
}

int main()
{
  char s3[]="Maria, TU sabes que TU éS o meu \"Grande Amor\"";
  printf("%s\n",my_strdelupper(&s3[0])); /* aria, sabes que é s o meu "rande mor " */

  return 0;
}

GeneralRe: Problem using strings Pin
jschell8-Jun-19 4:36
jschell8-Jun-19 4:36 
GeneralRe: Problem using strings Pin
CPallini9-Jun-19 22:41
mveCPallini9-Jun-19 22:41 
JokeRe: Problem using strings Pin
Peter_in_278010-Jun-19 1:41
professionalPeter_in_278010-Jun-19 1:41 
GeneralRe: Problem using strings Pin
CPallini10-Jun-19 5:51
mveCPallini10-Jun-19 5:51 
GeneralRe: Problem using strings Pin
John R. Shaw11-Jun-19 17:47
John R. Shaw11-Jun-19 17:47 
QuestionProblem in binary search using C++ Pin
Member 144829305-Jun-19 23:01
Member 144829305-Jun-19 23:01 
AnswerRe: Problem in binary search using C++ Pin
CPallini5-Jun-19 23:27
mveCPallini5-Jun-19 23:27 
GeneralRe: Problem in binary search using C++ Pin
Member 144829305-Jun-19 23:44
Member 144829305-Jun-19 23:44 
GeneralRe: Problem in binary search using C++ Pin
CPallini5-Jun-19 23:47
mveCPallini5-Jun-19 23:47 
AnswerRe: Problem in binary search using C++ Pin
Victor Nijegorodov6-Jun-19 7:20
Victor Nijegorodov6-Jun-19 7:20 
QuestionGlobal Event in C++ Pin
Member 142210415-Jun-19 21:29
Member 142210415-Jun-19 21:29 
AnswerRe: Global Event in C++ Pin
Stefan_Lang5-Jun-19 22:05
Stefan_Lang5-Jun-19 22:05 
GeneralRe: Global Event in C++ Pin
Member 142210415-Jun-19 23:40
Member 142210415-Jun-19 23:40 
GeneralRe: Global Event in C++ Pin
Stefan_Lang6-Jun-19 21:28
Stefan_Lang6-Jun-19 21:28 
GeneralRe: Global Event in C++ Pin
Member 142210416-Jun-19 23:15
Member 142210416-Jun-19 23:15 
AnswerRe: Global Event in C++ Pin
CPallini5-Jun-19 22:50
mveCPallini5-Jun-19 22:50 
GeneralRe: Global Event in C++ Pin
Member 142210415-Jun-19 23:45
Member 142210415-Jun-19 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.