Click here to Skip to main content
15,890,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This:
C#
string player1name = Console.ReadLine();
string player2name = Console.ReadLine();
Console.Title = ???

How do I put the player names in the title?
I tried:
C#
Console.Title = "{0}  vs. {1}", player1name, player2name;

etc. etc. but nothing works, any help?
Posted
Updated 20-Dec-11 19:20pm
v2

1 solution

 
Share this answer
 
Comments
Joel Whatley- 21-Dec-11 1:25am    
I have but it doesn't help, I want the player names as strings from ReadLine to start with to use them later
Joel Whatley- 21-Dec-11 1:29am    
Nevermind, sorted it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900