Questions tagged as 'string'

0
answers

Remove accentuation of a string in C language [closed]

I'm having a college work on Threads and competition control (OpenMP) in C, which is giving me a bit of a headache. The work consists of taking text from any file and separating it from% cos_de% producers and consumers, where consumers...
asked by 05.12.2018 / 19:16
1
answer

Excluding symbol from the last position of a string, optimally with PHP [closed]

I would like to delete the last character of a string if it is a symbol. I know I could do it in a complex way like the following function: $string = "minha_string_com_simbolo_no_final_"; function excluir($string){ $simbolos = ["'","\"",...
asked by 06.07.2016 / 22:47
1
answer

How to do auto-complete / incremental script

There was a need to create a text field that might be given city names, however, if you completed the word in the field when you started the first digits. I need some idea, function with Arrays literals, something like this: <...
asked by 17.04.2016 / 00:01
1
answer

How to convert string to double without rounding error?

Because the following command: Convert.ToDouble("199998,99") Results in:    199998.98999999999 Already the command: Convert.ToDouble("199998,98") Results in:    199998.98000000001 ?     
asked by 31.07.2015 / 14:47
0
answers

PHP syntax highlighter - DOM object does not update HTML

I've been developing a code to do syntax highlighting , but the code is failing to update the HTML. The code is extensive, and unfortunately all of it is needed. I have a main file named highlight.php : <?php final class highl...
asked by 18.05.2015 / 22:28
1
answer

Save information from a form [closed]

Hello, I'm developing an online proofing system as follows: Thequestionscomestraightfromthedatabase(MYSQL)andsoIputtheproofshowingquestionbyquestion,whentheusermarkstheanswerandclicks"Next" advances to the next question. My question is: ho...
asked by 11.12.2014 / 17:59
3
answers

Allow only letters, numbers and hyphen

How to validate a string in php so that it contains only letters, numbers, and hyphen (-) Thank you     
asked by 01.04.2016 / 00:22
2
answers

problems with string and split C # [closed]

I have the following function: string str = "1 2 3 4 5"; //string para separar string[] ArrayValor = str.Split(" "); //nesse caso o array seria {"1","2","3","4","5"} But I wanted something more generic, for example, if the user entered "1-2...
asked by 18.07.2017 / 22:09
1
answer

What is the Print Flush In Python? [closed]

I can not understand how the flush works in python's print.     
asked by 16.04.2018 / 23:07
2
answers

Mineration of text with R (stringr)

I have a lenght 15 string and I want to remove the first 70 charac. and the last 200 charac. of each. I tried the following code to remove the beginnings and it did not work: texto2009a <- texto2009 %>% map(str_sub(., 1, 72) <- "...
asked by 25.08.2018 / 22:22