Ruby
question:1191841779 matrix ã©ã¤ãã©ãªã¼ã®ä½¿ãæ¹ãå°ãããã£ãã®ã§ãããã使ã£ã¦æ¸ãç´ãã¦ã¿ãã require 'matrix' class Vector2 < Vector DIMENSION = 2 def self.[](*array) self.Raise ErrDimensionMismatch if array.size != DIMENSION super end â¦
question:1175229198 使ãæãããã«ã¡ã½ããã«ãã¦ã¿ããã¾ããC/C++ ç¸å½ã®æ©è½ã¨ãC/C++ ã«ãç¡ãæ©è½ã追å ãã¦ã¿ãã*1 constant.rb #!ruby module Constant def self.enum_set(klass, names, init_val = 0) value = init_val.to_int names.each do |naâ¦