查看: 904|回复: 2
|
请问怎样把这些file read进c++?
[复制链接]
|
|
请问怎样把这些file read进c++?
data.txt
<action>
<animation name="Introduction">
<text name="intro" value="Hello World"/>
<run>
<display text="intro" color="black" effect="bottom-to-top"/>
</run>
</animation>
<animation name="McDonald's">
<text name="title" value="McDonalds..."/>
<text name="phrase" value="Serving the world one burger at a time."/>
<run>
<display text="title" color="blue" effect="fade-in"/>
<blink count="3" interval="100"/>
<wait duration="1000"/>
<display text="phrase" color="255,100,50" effect="left-to-right"/>
</run>
</animation>
<animation name="Kentucky Fried Chicken">
<text name="kfc1" value="KFC - Finger Licking Good!"/>
<text name="kfc2" value="We've got all your chicken needs covered!"/>
<run>
<repeat frequency="3">
<display text="kfc1" color="red" effect="left-to-right"/>
<wait duration="500"/>
<display text="kfc2" color="green" effect="top-to-bottom"/>
<wait duration="500"/>
</repeat>
</run>
</animation>
<run>
<repeat frequency="1">
<show animation="Introduction"/>
<wait duration="2000"/>
<show animation="Kentucky Fried Chicken"/>
<show animation="McDonald's"/>
</repeat>
</run>
</action> |
|
|
|
|
|
|
|

楼主 |
发表于 1-5-2007 09:24 PM
|
显示全部楼层
我要把它read成 tree data structure |
|
|
|
|
|
|
|
发表于 4-5-2007 03:10 PM
|
显示全部楼层
read file 在c++...简单。。
但却不明白你得意示。。
[ 本帖最后由 deity01 于 4-5-2007 03:15 PM 编辑 ] |
|
|
|
|
|
|
| |
本周最热论坛帖子
|