Click here to Skip to main content
14,387,205 members

C / C++ / MFC

 
GeneralRe: C++ Callback process is dea Pin
Victor Nijegorodov13-Jun-19 11:24
MemberVictor Nijegorodov13-Jun-19 11:24 
QuestionProblem using strings Pin
Rodrigo Lourenço7-Jun-19 12:01
MemberRodrigo Lourenço7-Jun-19 12:01 
AnswerRe: Problem using strings Pin
Victor Nijegorodov7-Jun-19 12:26
MemberVictor Nijegorodov7-Jun-19 12:26 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:55
MemberRodrigo Lourenço8-Jun-19 0:55 
GeneralMessage Closed Pin
11-Jun-19 3:34
MemberMember 1449432111-Jun-19 3:34 
AnswerRe: Problem using strings Pin
k50547-Jun-19 12:39
Memberk50547-Jun-19 12:39 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:03
MemberRodrigo Lourenço8-Jun-19 1:03 
SuggestionRe: Problem using strings Pin
David Crow7-Jun-19 17:50
MemberDavid Crow7-Jun-19 17:50 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:02
MemberRodrigo Lourenço8-Jun-19 1:02 
AnswerRe: Problem using strings Pin
Joe Woodbury7-Jun-19 19:47
professionalJoe Woodbury7-Jun-19 19:47 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:59
MemberRodrigo Lourenço8-Jun-19 0:59 
AnswerRe: Problem using strings Pin
Richard MacCutchan7-Jun-19 22:52
mveRichard MacCutchan7-Jun-19 22:52 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:00
MemberRodrigo Lourenço8-Jun-19 1:00 
AnswerRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:05
MemberRodrigo Lourenço8-Jun-19 1: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 5:36
Memberjschell8-Jun-19 5:36 
GeneralRe: Problem using strings Pin
CPallini9-Jun-19 23:41
mveCPallini9-Jun-19 23:41 
JokeRe: Problem using strings Pin
Peter_in_278010-Jun-19 2:41
professionalPeter_in_278010-Jun-19 2:41 
GeneralRe: Problem using strings Pin
CPallini10-Jun-19 6:51
mveCPallini10-Jun-19 6:51 
GeneralRe: Problem using strings Pin
John R. Shaw11-Jun-19 18:47
MemberJohn R. Shaw11-Jun-19 18:47 
QuestionProblem in binary search using C++ Pin
Member 144829306-Jun-19 0:01
MemberMember 144829306-Jun-19 0:01 
AnswerRe: Problem in binary search using C++ Pin
CPallini6-Jun-19 0:27
mveCPallini6-Jun-19 0:27 
GeneralRe: Problem in binary search using C++ Pin
Member 144829306-Jun-19 0:44
MemberMember 144829306-Jun-19 0:44 
GeneralRe: Problem in binary search using C++ Pin
CPallini6-Jun-19 0:47
mveCPallini6-Jun-19 0:47 
AnswerRe: Problem in binary search using C++ Pin
Victor Nijegorodov6-Jun-19 8:20
MemberVictor Nijegorodov6-Jun-19 8:20 
QuestionGlobal Event in C++ Pin
Member 142210415-Jun-19 22:29
MemberMember 142210415-Jun-19 22:29 

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.