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

 ·编译问题求助    »显示摘要«
    摘要: 最近看书,把书上附带的一个程序xgaussj.c(gauss消元的),以及所必须的两个头文件nrutil.h,nr.h 拷到一个目录下,创建project,编译,结果出现如下编译错误: linking... xgaussj.obj : error lnk2001: unresolved external symbol _free_matrix xgaussj.obj : error lnk......
 ·char转换成byte    »显示摘要«
    摘要: 请问,在c++里怎么把char类型转换成byte类型啊? ......


自己写了一个类里面定义的都是静态变量,只是用来代替全局变量的,结果出现问题

出现如下错误:  
   
  fatal   error   C1010:   unexpected   end   of   file   while   looking   for   precompiled   header   directive  
   
  cannot   open   file   .\Debug\wRtu_Member_Function.sbr:   No   such   file   or   directory  
   
  代码如下:  
  //.h  
  class   CwRtu_Member_Function  
  {  
  public:  
  /*保存系统运行时间*/  
  static   int   second;  
  static   int   minute;  
  static   int   hour;  
  static   int   day;  
  };  
   
  //.cpp  
  #include   "wRtu_Member_Function.h"  
   
  int   CwRtu_Member_Function::day=00;  
  int   CwRtu_Member_Function::hour=00;  
  int   CwRtu_Member_Function::minute=00;  
  int   CwRtu_Member_Function::second=00;

NO.1   作者: maimu_1

#include   "wRtu_Member_Function.h"   前面加上#inlcude   "stdafx.h"   ,如下:  
   
  //.cpp  
  #inlcude   "stdafx.h"  
  #include   "wRtu_Member_Function.h"    
   
  。。。

NO.2   作者: Phourm

fatal   error   C1010:   unexpected   end   of   file   while   looking   for   precompiled    
  说明你用了预编译头但是在.cpp里没有include这个头  
  .cpp加  
  #include   "stdafx.h"  
 

NO.3   作者: i_noname

使用预编译头的话stdafx.h一定要第一个被include.  
  也就是#include   "stdafx.h"要放在其它头文件include之前。  
   
  如果不使用预编译头,在工程设置中c/c++项中把"   XXXX   stdafx   XXXX"那一句删掉


    摘要: 如题 主要功能是负责接收面页中通过get或post或cookie传递的数据 ......
» 本期热门文章:

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