Vote count:
0
I just saw in one sorce code something like this:
char[] letters = { 'k', 'n', 'p', 's' };
for (int d1 = 0; d1 < letters.Length; d1++)
{
for (int d2 = 0; d2 < letters.Length; d2++)
{
for (int d3 = 0; d3 < letters.Length; d3++)
{
for (int d4 = 0; d4 < letters.Length; d4++)
{
string left = ""+ letters[d1] + letters[d2] + letters[d3] + letters[d4];
What I am realy wondering is how exactly is that string strName = "" +....
what are these ""
for? I looked wherever I could, but didnt find answer. Sorry if answer is very easy, I am new in programming, so I will appreciate your understanding.
asked 57 secs ago
Specific(exact) characters from char array to string C#
Aucun commentaire:
Enregistrer un commentaire