萌新求助

amotym amotym 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<?xml version="1.0" encoding="utf-8"?> <test> <env mis="on" err="off" ans="off"> <info> (hold 0) (at 0 3) (sort 1 chair) (size 1 big) (at 1 1) (sort 2 plant) (size 2 big) (at 2 2) (sort 3 sofa) (size 3 big) (at 3 3) (sort 4 worktable) (size 4 big) (at 4 4) (sort 5 couch) (size 5 big) (at 5 5) (sort 6 table) (size 6 big) (at 6 6) (sort 7 teapoy) (size 7 big) (at 7 7) (sort 8 airconditioner) (size 8 big) (at 8 8) (sort 9 table) (size 9 big) (at 9 9) (sort 10 television) (size 10 big) (at 10 10) (sort 11 book) (size 11 small) (sort 12 remotecontrol) (size 12 small) (color 12 yellow) (at 12 7) (sort 13 can) (size 13 small) (color 13 green) (plate 13) (sort 14 remotecontrol) (size 14 small) (color 14 black) (sort 15 can) (color 15 blue) (size 15 small) (sort 16 remotecontrol) (size 16 small) (color 16 red) (sort 17 cup) (size 17 small) (at 17 10) (sort 18 can) (size 18 small) (color 18 white) (sort 19 book) (size 19 small) (color 19 blue) (at 19 9) </info> <mis> (at 11 7) </mis> <err> <r>(at 14 3) (at 15 1) (at 16 2) (at 18 4)</r> <w>(at 14 9) (at 15 7) (at 16 6) (at 18 6)</w> </err> <extra> </extra> </env> <instr> (:ins (:task (pickup X) (:cond (sort X remotecontrol))) (:task (pickup X) (:cond (color X black) (sort X remotecontrol))) (:task (puton X Y) (:cond (sort X can) (sort Y worktable))) (:task (puton X Y) (:cond (sort X cup) (sort Y worktable))) (:task (goto X) (:cond (sort X chair))) (:cons_notnot (:info (on X Y) (:cond (sort X remotecontrol) (color X yellow) (sort Y teapoy)))) ) </instr> <nl> Pick up a remotecontrol. Pick up the remotecontrol which is black. Put a can on the worktable. Put a cup on the worktable. Go to chair. The green can must be on the plate. The remotecontrol which is yellow must be on the teapoy. </nl> </test> C语言读取这个文件(文件名test.xml)并将info到/info中的内容以()中的内容为元素按行存入数组。并设置可以查找的指针。
...全文

相关推荐

评论 15
收藏 已收藏
分享
返回顶部
amotym
C语言 70,040 成员 243,237 内容