我是Ruby新手,还有Rails。我不明白为什么会发生下列情况。我正在使用SendGrid发送电子邮件。我已经定义了一个类和一个方法: class EmailService
include SendGrid
def send_email
from = Email.new(email: '[email protected]')
to = Email.new(
struct zaidejas {
int numeris;
int aiksteleje;
bool penketas;
};
int main(){
zaidejas z[12];
z = {};
}
我在Z = {}线得到一个错误: error: assigning to an array from an initializer l