Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MyNamespace
- {
- class MyClass
- {
- static void Main()
- {
- // String VS Char
- string str = "";
- // Can not set ''
- // Only can set single character
- char ch = ' ';
- // Print on Console
- // H
- // A
- // !
- // ...
- //for (int i = 0; i < str.Length; i++)
- //{
- // System.Console.WriteLine(str[i]);
- //}
- System.Console.WriteLine(ch);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement