Questions tagged as 'string'

1
answer

What is the use of the .isidentifier () method in Python?

I came across the string .isidentifier() method and also the .isprintable() . Why use them? On what occasions would I use this?
asked by 13.08.2018 / 23:39
3
answers

How do I add or subtract a digit in the TextBox with a button?

I want to add a number to a TextBox by generating a number when the user clicks the "+" button and subtracts when clicking "-". For example: the random number was 2. If I click on the +, it appears 3. If I click on -, the 1 appears. It...
asked by 25.08.2015 / 16:54
3
answers

How to use a value from a dictionary to call a specific function in Python?

I'm trying to use a dictionary to identify each function to a value, and call them through the program. My code is below (example): #!/usr/bin/env python menuOpt = { 1 : "valor", } #Main if __name__ == "__main__": print "Valor" men...
asked by 28.11.2015 / 00:41
2
answers

How to use special characters in strings?

What are the ~ and @ characters in the path string in ASP.NET. Example: StreamReader srFile = new StreamReader(@"\server\pasta\arquivo.html");     
asked by 04.02.2014 / 14:01
1
answer

Problem in coding Strings Qt

I'm having a problem encoding strings in Qt . When I show something in a QMessageBox or give drawText to paintEvent , my strings are badly formatted, as if they were not in the correct encoding. Here's how it appears...
asked by 15.06.2014 / 04:17
1
answer

How to replace characters in a String?

I have a small problem. My application receives a numeric String from the server representing a value. But the server sends, for example "100.00" and I need to put a comma in place of that point. 100.00 = > 100,00...
asked by 27.09.2014 / 22:13
1
answer

How to use escape characters in a C # string?

I am not able to scan a file containing the EICAR (Standard File for Anti-Virus Scanning) characters, because it contains escape characters such as "\", "()", "[]". I need help identifying these characters in my program as being normal inside a...
asked by 17.10.2014 / 02:49
3
answers

Difference of StringBuffer.equals and String.equals in Java

The behavior of method equals of class StringBuffer of Java is different from equals of class String ? If yes, how would I overwrite it?     
asked by 06.11.2014 / 05:18
4
answers

Empty input can not receive zero value

I have a form with more or less 5 inputs , at any given time any of these inputs will be worthless, and I want to find out the lowest value between them, but whenever it has one or more empty inputs it returns the value 0 and indicates that...
asked by 10.11.2016 / 12:21
1
answer

How do I declare a library within a class in C ++?

I need to use variables of type string , the problem is that I can not include libraries within my classes in Code :: Blocks, is there anyway to include the string / string.h library in my C ++ class ? The code for my clas...
asked by 23.08.2016 / 21:06