c# - Write every value inside a char list -


I am trying to create a list of previous estimates in my execution session: it works, but as My game asks for another guess either life == 0 or victory = true, due to this, the foreach loop is made to create a new line for every previous estimate:

Approximate character: / P>

Approximate character: B

round 3

Guess the character: of

Guess the character: B

an estimate Character: P

I want to be able to print this way:

Approximate character: KBP

  list & lt; Char & gt; Lista_f_gissning = New list & lt; Char & gt; (); Forresh (lista_f_gissning in list item) {string s = item.ToString (); Console Write ("Gisda Bokehst:" + s + '\ n'); Take out the loop and delete "\ n":    

 < Code> console. Write ("Gisda Bokehst:"); Forresh (lista_f_gissning in list item) {string s = item.ToString (); Console Type ("{0}", s); }    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -