I'd like to make a string be split with .Split() every time there is a letter. Example:
The string : 97A96D112A109X115T114H122D118Y128
A array would come with 9 values: { 97 96 112 109 115 114 122 118 128 }
How...
We have 4 teams:
Time 1 | Time 2 | Time 3 | Time 4
I would like to know how to automatically build a list of possible match combinations between these teams.
Example:
Time 1 x Time 2 | Time 1 x Time 3 | Time 1 x Time 4 | ...
I'm...
I have a string like this: ~/Areas/Teste/Views/home/index.cshtml
I only need the word next to ~/Areas/ , in the case Teste (remembering that word may vary in size). How do I?
I use Resharper and a few days ago I started using some C # 6 features.
In several parts of the code I use string.Format() and I noticed that the Resharper suggests that these snippets be replaced by string interpolation .
The ques...
Apparently I'm having problems with strings :
public partial class Form1 : Form
{
private int _adicionar;
private int _retirar;
public Form1()
{
InitializeComponent();
}
private void _Random_Click(object send...
I came across the following questions:
What is the difference between the expressions strcpy (s, t) e s = t ?
What is the difference between the expressions if (strcmp (s, t) < 0) e if (s < t) ?
I tried to compile...
Is there any difference between using printf and format ?
Example 01:
float nota = 5.3f
System.out.printf ("Sua nota: %.2f", nota)
Example 02:
float nota = 5.3f
System.out.format ("Sua nota: %.2f", nota)
In the following code:
first_part = 46
last_part = 57
guess = f'{first_part}{last_part}'.encode()
print(guess)
print(type(guess))
But I did not understand the code snippet:
guess = f'{first_part}{last_part}'.encode()
I need an explana...
Why these two classes are different, as it seems to me that they could be a single class.
For example, the method Append , it seems to me that it does the same thing as the + operator.