我有两个元文件:
% test1.mp
beginfig(1):
% foobar code
% code specific to test1
endfig;
end;% test2.mp
beginfig(1):
% foobar code
% code specific to test2
endfig;
end;作为一名程序员,我自然讨厌复制。有没有办法将"foobar代码“移动到foobar.mp文件中,然后在test1.mp和test2.mp中都包含这个文件?例如..。
% test1.mp
beginfig(1):
% for illustration...
Include.foobar("foobar.mp");
% code specific to test2
endfig;
end;发布于 2011-02-25 21:37:21
% test1.mp
beginfig(1):
input foobar
endfig;
end;https://stackoverflow.com/questions/3902179
复制相似问题