Questions tagged as 'string'

1
answer

I need help with this competitive programming question

I am asking the question Low Frequency I have already tested the Udebug cases but the judge online only returns me Runtime error, by what I know when this happens and when it tries to use memory location that was not allocated, however I have...
asked by 24.06.2018 / 15:52
1
answer

How to use quotation marks inside quotation marks and exchange word from within argument?

Running the os.system("reg add "caminho\caminho\caminho\caminho\"") And if there is more, how can I choose a word in the middle of this command and replace with another one?     
asked by 29.06.2018 / 19:46
2
answers

Doubt about functions in php

Does a function only work if we call it in some file or will it work anyway? For example, to pass the value from one variable to another in the rendering file, I know I should call the function to give value to the variable. But when I just want...
asked by 27.08.2018 / 16:57
2
answers

How to "break" a string in pure C to assign parts to other variables?

I'm making a bid for college and I'm lost to use C because I learned to program in Python. It's a simple question: If I have a string str, how can I "break" it in another 3 to assign to three different variables? Example: str[ ] = "Bom dia...
asked by 22.11.2018 / 18:10
1
answer

Convert value received as int to char type in C

I'm doing a college job where I have to convert a received value to char so I can write it in full for example. Help me create this function.     
asked by 08.12.2017 / 20:40
4
answers

C # WPF How to separate a long string in multiple positions from an Array?

I need to create a getter and a setter for 14 Model properties that will be used to make Binding on xaml. Properties come from here: I have a field from a database table where it loads a very long string that contains information for 14 textboxe...
asked by 17.07.2017 / 18:17
1
answer

Replacement of specific words

I want to create a code in PHP in which the user type, for example, "pedro went to the market" he replaced in a few words already registered type to exchange the syllable "mer" for copper and the syllable "went" for example. and give the text re...
asked by 12.02.2018 / 16:29
1
answer

How to get a correct value using the point?

preco_casa = float (input("Qual o preço do imóvel?")) seu_salario = input("Qual o seu salário mensal?:") anos_a_pagar = input("Quantidade de anos a pagar pelo imóvel:") valor_prestacao = preco_casa / (anos_a_pagar *12) print (" O valor da prestaç...
asked by 04.08.2017 / 17:40
2
answers

Scan more than one string

In C can I scan more than one string as it does with integers? Type: scanf("%s %s", pal1, pal2);     
asked by 18.09.2017 / 13:27
1
answer

Program to change a character by an asterisk to a string [closed]

Hello! I need to make a program that reads a string entered by the user with a maximum of 500 characters, and print this text by replacing the first letter of each word with an asterisk '*'. Can anyone help me?     
asked by 23.09.2015 / 01:41