不能像C那样随便换行写大括号了,例如:
BEGIN
{
step = 10;
base = 0;
n = 0;
total_delay = 0.0;
total = 0;
max_delay = 0.0;
}
是错的
BEGIN{
step = 10;
base = 0;
n = 0;
total_delay = 0.0;
total = 0;
max_delay = 0.0;
}
是正确写法
不能像C那样随便换行写大括号了,例如:
BEGIN
{
step = 10;
base = 0;
n = 0;
total_delay = 0.0;
total = 0;
max_delay = 0.0;
}
是错的
BEGIN{
step = 10;
base = 0;
n = 0;
total_delay = 0.0;
total = 0;
max_delay = 0.0;
}
是正确写法