fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8.  
  9. namespace 翻譯用
  10. {
  11. public partial class Form1 : Form
  12. {
  13. public Form1()
  14. {
  15. InitializeComponent();
  16. }
  17. public string strLeft(string s, int length)
  18. {
  19. return s.Substring(0, length);
  20. }
  21.  
  22. public string Rigth(string s, int length)
  23. {
  24. return s.Substring(s.Length - length);
  25. }
  26.  
  27. public string Mid(string s, int start)
  28. {
  29. return s.Substring(start);
  30. }
  31. public static byte[] FromHex(string str)
  32. {
  33. str = str.Replace(" ", "");
  34. byte[] raw = new byte[str];
  35. return raw;
  36. }
  37. private void button1_Click(object sender, EventArgs e)
  38. {
  39. byte[] data = FromHex(textBox1.Text);
  40. string s = Encoding.UTF8.GetString(data);
  41. if (data[] == '0'){
  42.  
  43. }
  44. }
  45. }
  46. }
  47.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(41,20): error CS1525: Unexpected symbol `['
prog.cs(41,29): error CS1525: Unexpected symbol `)'
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty