Questions tagged as 'string'

2
answers

How to get snippets between () a string

I'm doing a program that reads any math expression such as x^(3*x+1) + (cos x) , does not necessarily have to be that expression, and I'd like to know how to get the specific snippet between strings in the string.  I know that with Inde...
asked by 24.08.2018 / 15:37
1
answer

How to handle reserved character in an .ini file in php?

I have a .ini file where I store some information outside of the directory tree of the site, it happens that in a password I have special characters. At the moment that php gets this content it gives problem, the impression I have is t...
asked by 01.08.2018 / 21:26
2
answers

Replace list with pattern in regex

Personally I need to transform a string into a list, in a peculiar way. I found in this post what I need to do. But I'm lost to the applied regex. I have numerous string in the following format: ["DECRETO Nº 76.326 DE 23 DE SETEMBRO D...
asked by 08.07.2018 / 20:56
1
answer

Read text file and store fields in variables

I need help with the following: I will make a b-tree to present a job in college, which consists of reading the data from a text file and passing it to the B tree. I will do it as follows: I created a struct with the data types (Batch, Plate, UF...
asked by 30.06.2018 / 01:18
1
answer

How to change a name of a string

I am making a question in uri tag replacement , which has to be replaced one name for another but I'm not having success, I can only get normal names with no characters My code #include <stdio.h> #include <stdlib.h> #include &l...
asked by 12.06.2018 / 18:34
1
answer

entire printf% s in C [duplicate]

I'm trying to get all the characters in the string to appear on the screen [0], but only the last letter of the string is coming out, does anyone help me with what I'm missing? #include <stdio.h> #include <stdlib.h> #include <...
asked by 29.05.2018 / 23:36
3
answers

Struct Strings Read with scanf Giving Wrong

Good luck, I'm developing a C code that performs data registration on files. However, I have a problem with the registerCustom function, which you will see below between the codes. Client struct: typedef struct { int idCliente;...
asked by 29.05.2018 / 02:10
2
answers

Create expressions in strings [closed]

Suppose I have the following string: const str = 'Eu sou @if (1 + 1 === 2): um dois @endif !'; How do I run expressions like that if ? I do not want a solution to that problem, just the right way to do it.     
asked by 19.03.2018 / 19:36
2
answers

How to convert a date (string) to another format using JavaScript?

I have the following string: 2016-06-08 - 10:08 I need to convert this string to the other format: 08-06-2016 10:08 How do I proceed? function dateFormat(date) { inputFormat = new java.text.SimpleDateFormat('dd-MM-yy...
asked by 08.06.2016 / 19:12
1
answer

characters and ASCII table

I'm trying to perform a URI exercise, and in 1 part it asks for the following:    In the first pass, only characters that are lowercase and   capital letters should be moved 3 positions to the right, according to   ASCII table: letter 'a' sho...
asked by 11.03.2018 / 22:17