AEL:可以将列表sprintf到一个字符串并输出它。
调试一段AEL代码时,我需要将一个列表sprintf到一个字符串。
我需要检查列表并将列表输出到stderr调试窗口。
我尝试了以下方法,但没有一个工作。
decl b = list(1,3,5,9,3 + 4i);
decl s1 = sprintf(“%s”,car(b)); //无论是%s,%f还是%i,它都能正常工作。
decl s1 = sprintf(“%s”,fmt(car(b)));
//不起作用
我需要将sprintf list b sprint到字符串s1并将其输出如下:fputs(stderr,s1);
帮帮我!
B.T.W:我需要更多的AEL示例,但我只能找到所有ADS示例中的3个。
我在哪里可以获得更多AEL示例?
以上来自于谷歌翻译
以下为原文
AEL: Can sprintf a list to a string and fputs it.
When debugging a segment of AEL codes, I need to sprintf a list to a string. I need to check out the list and fputs the list to stderr debug window. I have tried the following methods, but none of them work.
decl b=list(1,3,5,9,3+4i);
decl s1=sprintf(“%s”,car(b)); // It does work whether it is %s、%f or %i.
decl s1=sprintf(“%s”,fmt(car(b))); // does not work.
I need to sprintf list b to a string s1 and fputs it as following:
fputs(stderr,s1);
HELP!
B.T.W: I need more AEL examples but I can only find 3 of all the ADS examples. Where can I get
more AEL examples?
0