Questions tagged as 'string'

2
answers

How to delete a keyword from a text in C?

I have an exercise that says: Encode a program that reads through a keyboard a keyword of up to 15 characters and a text of up to n lines (n being a constant value). The program should eliminate from the text those lines that contain the ke...
asked by 03.01.2017 / 12:58
3
answers

determine the position of a character in a string

hello my question is how can I determine the position of the question mark in this string * and then separate it with the function substr() string = [Catálogo en línea?http://ur_prueba/index.jsp ]     
asked by 26.09.2018 / 22:31
4
answers

Go through 2 lists in java

List<String> DiasSemana = new ArrayList<>(); DiasSemana.add("Lunes"); DiasSemana.add("Martes"); DiasSemana.add("Miércoles"); DiasSemana.add("Jueves"); DiasSemana.add("Viernes"); DiasSemana.add("Sábado");...
asked by 20.04.2018 / 04:35
3
answers

Convert a float or an integer to string in c ++

I wanted to know a simple way to convert a variable float or int in data type string in C++ . Because look in several places and talk about using sprintf , from the library stdio.h but it does not work w...
asked by 21.04.2018 / 16:36
2
answers

Delete two or more blank spaces regular expression

I need your help because I have a regular expression to delete two or more blank spaces, but I have tried in several ways and I can not get the expected result, you can guide me please. Case No. 1 String texto = " 95716 B VO 21513836...
asked by 18.08.2018 / 20:04
2
answers

how do I eliminate the last character of an impression made by FOR in java?

I have: for(i=0; i<vector.length; i++) { System.out.print(Integer.toString(vector[i]) + " < "); } Example: The exit would be    1 < 2 < 3 < 4 < This last sign I would like to eliminate from printing, try substring...
asked by 29.10.2017 / 06:07
1
answer

Change a string of a string to bold

I'm doing a program in VB and I have a text string, which I add to a RichTextBox , but I want to add some things to it. What I want to achieve is that the text be like the following: " More than most of the measurements that...
asked by 21.06.2017 / 02:15
2
answers

Assign operable values to the letters of the alphabet

Like this: a=4 b=2 c=8 ... ... h=6 i=3 ... var palabra=prompt("di lo que quieras"); Input del usuario: "Hi!" I do not know how to approach this: var result= h+i?????? alert(result); And depending on the string obtained, then add these...
asked by 10.02.2016 / 20:40
1
answer

How to extract a number from an almost random string in C ++ using regular expressions [closed]

How to extract a specific number from a string that can have almost any shape, I explain: My string can be: cualquiercosa+CH+number+cualquiercosa that is: TEST-13?:41CH12f:A1345 I just need to extract the number that f...
asked by 19.01.2017 / 12:17
2
answers

Extract integers from a JAVA string

I have this string ( LIXA ABIMERHI JUAN JOSE,DISEÑO DE INTERFACES,90,88,81,90 ) and they are asking me: Read the data by lines using the split method of the class String separate the fields. Convert the 4 strings of gra...
asked by 24.11.2017 / 15:21