随笔-3  评论-12  文章-0  trackbacks-0

问题一:类的静态指针类型的属性初使化

//test.h

class Test

{

...

public:

  static WORD* m_test;

...

}

 

//test.cpp

#include "test.h"

WORD* Test::m_test = 0;

...

 

问题二:类中的模板方法

类中的模板方法不能在cpp中实现,可以在h文件中定义时即实现:

//test.h

class Test

{

...

public:

  template<class T>

  BOOL TestMethod(T& result)

  {

    result = ...;

    return TRUE;

  }

...

}

 

以上两问题如出现均会出现linker错误

北京空调维修中心

海尔空调维修

 

posted on 2010-05-14 09:34 李立 阅读(838) 评论(26)  编辑 收藏 引用

评论:
# re: C++学习中遇到的两个问题 2010-06-12 09:21 | MARISAGROSS
Do not enough cash to buy a car? Worry not, because that is possible to take the <a href="http://lowest-rate-loans.com/topics/business-loans">business loans</a> to solve all the problems. Hence get a commercial loan to buy all you need.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-06-30 16:25 | essay writing
this post is really good article and I know that people should buy custom essay papers or essay writing to know more close to this from the writing services.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-06-30 16:26 | buy an essay
I constantly buy an essay or term paper about this post.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-07-09 09:40 | mortgage loans
It's well known that money can make people free. But how to act when somebody has no cash? The one way is to get the personal loans and just sba loan.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-07-24 02:27 | plagiarism detection
I would like to buy research paper about this good topic, at the term paper writing services. You definately will need use plagiarism checking. Now, you don’t have to worry about getting a failing mark simply because you have been accused of plagiarizing someone else’s work.  回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-08-08 10:21 | essay online
Bad written custom book reports could fail your success. But, if you buy research papers of superb quality, all will be OK.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-08-11 18:33 | buy dissertation
With the goal to foreclose the mistakes in some student dissertation, this would be better to buy the cool knowledge referring to this good post from the buy dissertation service in Internet. It’s more simple to have the academic success going this great way.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-08-11 22:53 | poetry & poets essay paper
Every man at school should read your well done topic connected with this good post to compose the good quality term paper or just ancient essay.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-08-29 10:53 | buy cheap essays
Not every high school student is errorless. Furthermore, I guess that some professional buying essays service should assist all the students with an essay term paper performing.   回复  更多评论
  
# re: C++学习中遇到的两个问题 2010-11-09 02:04 | dissertation writing
This is the best exposition I have got of all time discover! Groovy article close to life! When I have studied at university I as well faced troubles of compose my term and topic work, because I had a job and personal interests in life, and I never had decent time to think up essays. And then my friend inform me about thesis ! Since then my life has become superiorly!  回复  更多评论
  
# re: C++学习中遇到的两个问题 2013-09-21 21:33 | PremiumQualityEssays.com rewiew
Have no clue which organization to select to get assistance from? Go over StandoutEssay testimonials, and arrive at a right choice.  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理