ãªãã¨ãªãZigã触ã£ã¦ããã®ã§ããããããã·ããæ¼ç®ãç¬ç¹ã®æåã§é¢ç½ãã£ãã§ãã const n: u8 = 0b00000001; const shifted: u8 = n << 1; std.debug.print("{b}\n", .{shifted}); // => 0b00000010 ããã¯ç´æçãªã³ã¼ãã§ããããn ã1ãã¤ãå·¦ã«ã·ãããã¦ãã¾ãã ãã¦ä»¥ä¸ã®ã³ã¼ãã¯ã©ãã§ããããã const n: u8 = 0b00000001; const shifted: u8 = n << 8; std.debug.print("{b}\n", .{shifted}); // expects 0, but... ãã®ã³ã¼ã㯠./main.zig:5:30: error: integer value 8 cannot be coerced to type 'u3' const
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}