当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·<nobr>这个标签的含义    »显示摘要«
    摘要: 同上 ......
    摘要: 根据我以前的经验,下面textarea的写法应该可以使其高度随着内容的高度而使textarea的高度自动增高,但现在不知道怎么回事,一加入height:100%就会什么内容都显示不了 <center> <table border=1 width=650 style="border-collapse:collapse;text-align:left"&......


托管c++中String 的格式化

msdn中c#的例子:  
  int   MyInt   =   12;  
  string   MyString   =   String.Format("Your   dog   has   {0}   fleas.   It   is   time   to   get   a   flea   collar.   The   current   universal   date   is:   {1:u}."   ,   MyInt,   DateTime.Now);  
  在c++中改为:  
   
  int   MyInt   =   12;  
  String*   MyString   =   String::Format("Your   dog   has   {0}   fleas.   It   is   time   to   get   a   flea   collar.   The   current   universal   date   is:   {1:u}."   ,   &MyInt,   DateTime::Now);  
  编译不通过,提示:  
  none   of   5   overloads   can   convert   parameter   2   from   type   int*  
  何故?  
  怎样改?  
 

NO.1   作者: saucer

try  
   
  Int32   MyInt   =   12;  
  String*   MyString   =   String::Format("Your   dog   has   {0}   fleas.   It   is   time   to   get   a   flea   collar.   The   current   universal   date   is:   {1:u}.",   __box(MyInt),__box(DateTime::Now));  
   
 


    摘要: 我的一段代码: <% dim conn,dnstemp set conn=server.createobject("adodb.connection") dnstemp="provider=oraoledb.oracle;persist security info=false;user id=test;password=ok;data source=(d......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE