use console.readline to assign a value to an index in an array c# -


i'm making hangman game , want able take user input console , assign values in array.

string hangword; char[] hangarray;  console.writeline("please enter hangman word."); hangword = console.readline(); char[] hangarray = {hangword} 

how do if user enters word "shower" indexes hangarray[] = {"s","h","o","w","e","r"}; automatically?

char[] hangarray = hangword.tochararray() 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -