`
mylove2060
  • 浏览: 330882 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
读XML,头文件#include <fstream> string out_fileData; std::ifstream inFile("example3.xml"); if (!inFile) { out_fileData = std::string(""); } while (inFile.good()) { out_fileData += inFile.get(); } inFile.close(); cout<<out_fileData< ...
TiXmlDocument doc; TiXmlDeclaration * decl = new TiXmlDeclaration( "1.0", "UTF-8", "" ); doc.LinkEndChild( decl ); string in_elemName = "test"; map<string,string> in_attributes; in_attributes.insert(map<string, string>::value_typ ...
MSDN上的描述: SetThreadAffinityMask The SetThreadAffinityMask function sets a processor affinity mask for the specified thread. DWORD_PTR SetThreadAffinityMask( HANDLE hThread, DWORD_PTR dwThreadAffinityMask ); Parameters hThread [in] Handle to the thread whose affinity mask is to be set. Thi ...
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://panpan.blog.51cto.com/489034/104961 最近使用TinyXML进行C++ XML解析,感觉使用起来比较简单,很容易上手,本文给出一个使用TinyXML进行XML解析的简单例子,很多复杂的应用都可以基于本例子的方法来完成。以后的文章里会讲解使用Xerces进行C++ XML解析的例子,希望大家一起交流。 TinyXML是一个开源的解析XML的解析库,能够用于C++,能够在Windows或Linux中编译。这个解析库的模型通过解析XML文 ...
TiXmlDocument doc; TiXmlDeclaration * decl = new TiXmlDeclaration( "1.0", "", "" ); TiXmlElement * element = new TiXmlElement( "Hello" ); TiXmlElement * element2 = new TiXmlElement( "Hello" ); TiXmlElement * row = new TiXmlElement( "ro ...
Alter table TABLENAME alter column COLUMN_NAME INT not null ALTER TABLE TABLENAME ADD CONSTRAINT [PK_TABLENAME] PRIMARY KEY CLUSTERED ( [COLUMN_NAME] ASC ) ON [PRIMARY] 添加外键 ALTER TABLE [dbo].[USER_ACCOUNT] WITH CHECK ADD CONSTRAINT [FK_USER_ACCOUNT_REGION] FOREIGN KEY([REGION_ID] ...

PHP的配置

    博客分类:
  • PHP
1.安装apache2.2 2.解压php5到C:\php 3.安装mysql5 4.查找 extension_dir 有这么一行 extension_dir = "./" 将此行改成 extension_dir = "C:\php\ext"  --php.ini 5. LoadFile "C:/php/libmysql.dll" LoadModule php5_module C:/php/php5apache2_2.dll PHPIniDir "c:/php"    --httpd.conf 6. AddTy ...
//Json对象 var programmer = { name:"kevin", age:25, displayInfo : function(){ alert("My name is "+this.name+", I'm "+this.age+" years old") } , job : { position : "BPM programmer ...
var Interface = function(interfaceName,interfaceMethods){ if(arguments.length!=2){ alert("Interface expected 2 arguments,one is for Interface Name, and the other is the Array for methods ") } this.interfaceName = interfaceName; this.interfaceMethods = new Array(); for(var ...
//定义一个接口函数 var Interface = function(interfaceName,interfaceMethods){ if(arguments.length!=2){ alert("Interface expected 2 arguments,one is for Interface Name, and the other is the Array for methods ") } this.interfaceName = interfaceName; this.interfaceMethods = new Array( ...
//A.利用传统的原始方法定义对象的方法(函数) 一 function Programmer(name,age,position){ this.name = name; this.age = age; this.position = position; this.displayInfo = function(){ alert("[Name: "+ this.name +"] [Age: "+this.age+"] [po ...
function Person(name,age,position){ this.name = name; this.age = age; this.position = position; } Person.prototype.displayInfo = function(){ alert("[Name: "+ this.name +"] [Age: "+this.age+"] [posit ...
function Person(name,age,position){ this.name = name; this.age = age; this.position = position; this.displayInfo = function(){ alert("[Name: "+ this.name +"] [Age: "+this.age+"] [position: "+this.po ...
function Person(name,age,position){ this.name = name; this.age = age; this.position = position; this.displayInfo = function(){ alert("[Name: "+ this.name +"] [Age: "+this.age+"] [position: "+this.po ...
function Person(name,age,position){ this.name = name; this.age = age; this.position = position; this.displayInfo = function(){ alert("[Name: "+ this.name +"] [Age: "+this.age+"] [position: "+this ...
Global site tag (gtag.js) - Google Analytics