Questions tagged as 'string'

1
answer

How to Assign a Phrase to a row in an array of chars?

I want to modify standard phrases from a theoretical game. For example, the game has the phrase "Choose a command" and, over a given state, you would like to change all the letters "o" and "a" by an @. For this, I thought about implementing a...
asked by 04.10.2018 / 18:26
1
answer

Pointers in C language

I created a simple code with the function void where there is a passage by reference. However, it is giving the following error at compile time:    lala.c: In function 'main':       lala.c: 19: 12: warning: passing argument 2 of 'test...
asked by 24.10.2018 / 04:16
2
answers

Count letter and pick up initials of name

The program does not print the first letter of each name. nome[i]=nome[i+1]; I need to make a program that enters the name of the person, say how many letters A has that person's name and say the first letter of their names, for exam...
asked by 22.11.2017 / 21:37
1
answer

Where is it used and what is the importance of the string type?

I'm starting to program, though, I wanted to know more about the value and importance of type string in programming. In general: Some general aspects of type string ? A little bit about its use, where and how are they used? Would you...
asked by 24.08.2017 / 19:56
2
answers

String comparison in C

How could I print the variable sex out of if-else (it has to be OUT of it). This code is printing blank and I can not understand why. #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string....
asked by 20.10.2017 / 00:47
2
answers

How do I remove a part of a string?

I have text saved in a string and need to copy a portion of this text to the find a certain word in it. Eg: I need to remove my name and age from this text, I know they always come after: and in quotation marks. String texto = "Meu nome: "+...
asked by 08.09.2017 / 21:46
1
answer

Concatenate strings in Javascript [duplicate]

I have the following function, which changes the numeric value of a string when found: var original = "Este aqui é o valor do cliente 000.000.00 01"; var original = str.match(/\d\d\d\.\d\d\d\.\d\d \d\d/) var novo = "129.000.000 02"; original...
asked by 24.05.2014 / 00:45
1
answer

Convert Cell type to String in Apache POI

How can I convert a type Cell to String ? String datateste = row.getCell(5);     
asked by 13.09.2018 / 21:09
2
answers

Remove half of file name [closed]

I have a page to get a path, which is Folder Browser Dialog and the path that is saved is like this: "C: \ ana \ Updates \ 2017 \ 2017_04 \" I wanted from the path to save in a variable only the result: 2017 \ 2017_04.     
asked by 29.05.2017 / 16:33
2
answers

How to insert space in CamelCase string?

I'm looking for a way to separate string from an array object, coming from an API, for example: PageViews, Page Views, I'm using VUEJS.     
asked by 23.10.2018 / 16:03