Microsoft 开发人员网络 > 论坛主页 > Visual C++ General > TinyXML from xml file to variables/strings
提出问题提出问题
 

已答复TinyXML from xml file to variables/strings

  • 2009年11月4日 12:32Massenator 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     包含代码
    Hello,

    I have an XML file which im trying to read with C++ in order to make use of the data stored within the xml file to draw textures.
    The XML file looks like this:
      <?xml version="1.0" ?> 
    - <test>
      <a>5</a> 
      <b>3</b> 
      <c>1</c> 
      <d>0</d> 
      <name>fred</name> 
      </test>
    
    Can anyone tell me how to load the xml file in a way that allows me to use
    printf(a);
    
    and get the value from the file printed?

答案

全部回复