Questions tagged as 'string'

0
answers

Condition error in string vector in C [duplicate]

I'm having difficulty with a specific exercise: #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <windows.h> #include <ctype.h> #include <string.h> /* run this program using the console...
asked by 06.09.2018 / 21:19
1
answer

Why is not my string converted to lowercase?

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> /* Lucas Correia Síntese Objetivo:Ler o nome de duas pessoas e colocar o primeiro letras maiúsculas e o segundo, em letras minúsculas Entrad...
asked by 30.08.2018 / 02:05
2
answers

How to count how many substrings are in a string in C? [duplicate]

link This exercise I thought it best to read as string or not ... #include <stdio.h> int main(void) { char N1,quantidadesdeN1; while(scanf("%s",&N1)!=EOF) { scanf("%s",&quantidadesdeN1); /*Como faço pra ver...
asked by 13.08.2018 / 19:08
2
answers

How can I check if there are others inside one string? [duplicate]

In javascript, I want to check on a string for at least one of the other strings: .com, .edu, .uk, etc ... if one of these strings exist in the main string, I want to return true.     
asked by 05.08.2018 / 21:43
3
answers

(Python) Find words with total vowels being par

Hello, I would like to ask your help. I have a python code where it is necessary to analyze one thing: analyze the words of a sentence and save the ones with an even number of vowels. Example: "I got home and went to play video games". The word...
asked by 12.08.2018 / 16:25
1
answer

How to make a request and search for a string

I would like to know how to give a request and look for a string, for example: * www.site.com / index.php? id = '(SQL Error) (look for or error)
asked by 08.08.2018 / 23:01
0
answers

How to return a dynamically allocated two-dimensional array?

In a generic formulation, I have a function that places a value in an array of strings; just as an example: char **matrizExemplo() { char **vet; char tamVetor = 1; vet = malloc(sizeof(char*)*tamVetor); vet[0] = malloc(sizeof(c...
asked by 26.06.2018 / 17:29
2
answers

Problem replacing strings

Hi, I'm starting to create an interpreter of equations, I want to replace operators with words, but things are not going well ... main.cpp #include <string> #include <iostream> #include <fstream> #include <vector&...
asked by 19.06.2018 / 04:19
0
answers

Copy a string into a noh in a list in c

I have a linked list and I want a two-character string, which will be entered by the user via the keyboard, to be inserted into the value field of the list. When I do this using integers as value, it works normally. However, with string the v...
asked by 24.06.2018 / 22:32
1
answer

Separate string by number of characters

I'm developing a component to read the file submitted by DataPrev with the list of monthly obituaries. This file is a TXT and every 210 characters is a different person. The documentation can be seen at this link : SISOBI . I'm used...
asked by 13.03.2015 / 16:09