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

 

 ·初学    »显示摘要«
    摘要: 我在编辑一个文件资料管理软件,其中不知道怎么将缓冲区中的数据写入数据库!table->cachedupdates=true,用post()或applyupdates,应用程序中已显示出修改的数据,但用database desktop打开还是没有写入数据库,请指教,对于打开缓冲数据的操作还有那些需要注意的,我使用技巧,请不吝赐教。 ......
    摘要: 做了一个,却无法改变加减号 ......


VC++ 6 严重问题

看以下2段最简单的code:  
   
  //第一段,注意#include。  
  #include   <iostream>  
  using   namespace   std;  
   
  void   main()  
  {  
        cout   <<   "   Your   charset   is   :   "   <<   endl;  
        char   s;  
        cin   >>   s;  
        cout   <<   s   <<   endl;  
   
  }  
   
  //****************************************************************  
  //第一段使用VC++   6编译没有问题,第二段使用VC++   6编译报错:  
  //D:\CPPs\cpp1.cpp(2)   :   error   C2871:   std   :   does   not   exist   or   is   not   a   namespace  
  //  
   
   
  //第二段,注意#include。  
  #include   <iostream.h>  
  using   namespace   std;  
   
  void   main()  
  {  
        cout   <<   "   Your   charset   is   :   "   <<   endl;  
        char   s;  
        cin   >>   s;  
        cout   <<   s   <<   endl;  
   
  }  
   
  //****************************************************************  
  //第一段使用VC++   6编译没有问题,第二段使用VC++   6编译报错:  
  //D:\CPPs\cpp1.cpp(2)   :   error   C2871:   std   :   does   not   exist   or   is   not   a   namespace  
  //

NO.1   作者: liushmh )

iostream.h这个头文件里面根本就没有namespace这个名字空间  
  iostream里面才有。  
 

NO.2   作者: cgh93829

就是兩個頭文件包含的內容不同馬!

NO.3   作者: xzhuang

faint!!  
  引入名字空间后的头文件好像都没有.h了!


    摘要: 恩,希望大家多多祝福啊。谢谢。:) 如果不够还可以再加... ......
» 本期热门文章:

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