Questions tagged [chararray]

51 questions
-1
votes
1 answer

How can I remove this "" from the character array?

This returned to me as a string: result: vier­hundert­sieben­und­achtzig I cast the string in Array. self.randomNumberText = Array(self.numberConfig.numberString) print("\(self.randomNumberText)") ["v", "i", "e", "r", "­", "h", "u", "n", "d", "e",…
Ufuk Köşker
  • 1,288
  • 8
  • 29
-1
votes
3 answers

Changing a char array without even calling the array?

I have studied c++ for about 2 weeks on cave of programming (while working full time :( ) and I just got an understanding for pointers. Point *pThis to &this to get the value out of this address and so on. Anyway, I just got to a video that flipped…
V mike
  • 11
  • 1
-2
votes
1 answer

How to convert weird output of an array which printed to a file to its original value?

I have a char array that wrote in a file without any converting. the printed value to my file is [C@252ccf04 now I'm reading the file and this thing is being read as a string. now the retrieved data is [C@252ccf04 but this time it's a string. my…
hamid
  • 9
  • 7
-3
votes
1 answer

Use variable instead of keycode unity

Okay so I'm trying to make a system that picks a random word then it turns that word into a char array. Then it will track if you type the characters. But the method that I'm trying to do hasn't been working. mainly because it won't let me use a…
-7
votes
1 answer

need help writing a char array

I have 3 users that need to choose between x and o. I ask user 1 for their choice and then genrate choice for user 2 and user 3. MY 3 chars are choice1, choice2, choice3. When called in my code the output is the letter…
L M
  • 1
  • 2
1 2 3
4