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

    摘要: 要做个web管理系统 要支持中文,有要支持英文即多语言的系统 那位高手帮帮忙,是只做一个系统支持两套语言。 热心的朋友 给个经典的实例: to mail --- wuyongbiao@yeah.net ......
 ·失恋了................    »显示摘要«
    摘要: 当时哥上大四,她在我们学校打工,见面就是笑一笑,感觉挺好的,我毕业的那天对她说,跟我走吧...之后的日子,我打扮她,我教她学会自信,我努力工作养她,觉得两个人平静的生活,这一辈子也挺不错的,就这样两年了,她终于学会了打扮自己,也自信了,也是离开我的时候了.......哥痛苦呀.......跟领导请了一周假调整心情....一定要奋发图强,学习新的知识来充实自己........ ......


一个C/C++实用大全书中的遍历LIST对象的程序,编译就通不过,各位大侠帮忙指点一二

程序如下:  
  #include<list.h>  
  #include<string.h>  
  #include<iostream.h>  
  using   namespace   std;  
  typedef   list<string>   LTSTSTR;  
  void   main(void)  
  {  
  LTSTSTR   test;  
  test.push_back("back");  
  test.push_front("middle");  
  test.push_front("front");  
  cout<<test.front()<<endl;  
  cout<<test.back()<<endl;  
  test.pop_front();  
  test.pop_back();  
  cout<<test.front()<<endl;  
  }  
   
  编译错误如下:  
  c:\program   files\microsoft   visual   studio\vc98\include\list.h(37)   :error   C2146:   syntax   error   :   missing   ;   before   identifier   Length  
  c:\program   files\microsoft   visual   studio\vc98\include\list.h(37)   :   error   C2501:   DWORD   :   missing   storage-class   or   type   specifiers  
  c:\program   files\microsoft   visual   studio\vc98\include\list.h(37)   :   error   C2501:   Length   :   missing   storage-class   or   type   specifiers  
  c:\program   files\microsoft   visual   studio\vc98\include\list.h(53)   :   error   C2146:   syntax   error   :   missing   ;   before   identifier   GetPrevLink  
  c:\program   files\microsoft   visual   studio\vc98\include\list.h(53)   :   error   C2433:   WINAPI   :   inline   not   permitted   on   data   declarations  
  c:\program   files\microsoft   visual   studio\vc98\include\list.h(53)   :   fatal   error   C1004:   unexpected   end   of   file   found  
  Error   executing   cl.exe.  
   
  ls.exe   -   6   error(s),   0   warning(s)  
 

NO.1   作者: mccxj

#include<list>  
  #include<string>  
  #include<iostream>  
  using   namespace   std;  
  typedef   list<string>   LTSTSTR;  
  void   main(void)  
  {  
  LTSTSTR   test;  
  test.push_back("back");  
  test.push_front("middle");  
  test.push_front("front");  
  cout<<test.front()<<endl;  
  cout<<test.back()<<endl;  
  test.pop_front();  
  test.pop_back();  
  cout<<test.front()<<endl;  
  }  
 

NO.2   作者: sandon

搂主换个编译器看看,代码应该没有问题

NO.3   作者: younggundog

添一句:  
  #pragma   warning(disable:4786)

NO.4   作者: MagicCarmack

头文件包领含的时候不要.h,试一下看能不能行


 ·关于ie按钮的功能实现问题,    »显示摘要«
    摘要: 在jsp页面中放一个按钮,点击它,让它实现ie浏览器中刷新按钮的功能,请问如何实现,用js脚本如何实现???谢谢,在线等。。。。。。。。。。。。。 ......
» 本期热门文章:

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