佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 904|回复: 2

请问怎样把这些file read进c++?

[复制链接]
发表于 1-5-2007 06:05 PM | 显示全部楼层 |阅读模式
请问怎样把这些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>
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 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 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 24-9-2025 12:20 PM , Processed in 0.243335 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表