| ²é¿´: 770 | »Ø¸´: 4 | ||
»ÆÐ¡Ï¼Í³æ (СÓÐÃûÆø)
|
[ÇóÖú]
ΪºÎ±à²»¹ý£¿ÄÄÀï´íÁË£¿
|
|
#include template template class CSampleTemplate { private: T t1; T2 t2; public: CSampleTemplace(T arg1, T2 arg2) { t1=arg1+num; t2=arg2+num; } void Write() { std::cout<<"t1:"< ~ CSampleTemmplate(void){} }; int main(int argc, char* argv[]) { CSampleTemplate temp.Write(); return 0; } ±à¼´íÎóΪ£ºug-------------------- Compiling... 11.cpp E:\1\11.cpp(2) : error C2991: redefinition of template parameter '__formal' E:\1\11.cpp(2) : see declaration of '__formal' E:\1\11.cpp(2) : error C2059: syntax error : 'constant' E:\1\11.cpp(2) : error C2501: 'demol' : missing storage-class or type specifiers E:\1\11.cpp(14) : warning C4183: 'CSampleTemplace': member function definition looks like a ctor, but name does not match enclosing class E:\1\11.cpp(20) : see reference to class template instantiation 'CSampleTemplate E:\1\11.cpp(19) : error C2523: 'CSampleTemplate E:\1\11.cpp(20) : see reference to class template instantiation 'CSampleTemplate E:\1\11.cpp(11) : warning C4183: 'CSampleTemplace': member function definition looks like a ctor, but name does not match enclosing class E:\1\11.cpp(23) : see reference to class template instantiation 'CSampleTemplate E:\1\11.cpp(19) : error C2523: 'CSampleTemplate E:\1\11.cpp(23) : see reference to class template instantiation 'CSampleTemplate E:\1\11.cpp(23) : error C2661: 'CSampleTemplate Error executing cl.exe. 11.obj - 6 error(s), 2 warning(s) |
» ²ÂÄãϲ»¶
085600²ÄÁÏÓ뻯¹¤µ÷¼Á
ÒѾÓÐ10È˻ظ´
279·ÖÇóµ÷¼Á Ò»Ö¾Ô¸211
ÒѾÓÐ18È˻ظ´
0703»¯Ñ§Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
²ÄÁÏ292µ÷¼Á
ÒѾÓÐ3È˻ظ´
Ò»Ö¾Ô¸ÉÂʦ´óÉúÎïѧ071000£¬298·Ö£¬Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
306Çó0703µ÷¼ÁÒ»Ö¾Ô¸»ªÖÐʦ·¶
ÒѾÓÐ7È˻ظ´
333Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
335Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
336Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
303Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
¡¶»¯Ñ§Ñ§±¨¡·Í¶¸åÄ£°å±à¼³ö´í
ÒѾÓÐ3È˻ظ´
C++±à³Ì£¬¹ØÓÚÑ»·½á¹¹µÄ£¬´ó¼Ò¿´¿´ÎÒÕâ³ÌÐòÄÄÀï´íÁË£¿
ÒѾÓÐ21È˻ظ´
ÒªÊÇÒѾ·¢±íµÄSCIÂÛÎÄ·¢ÏÖÓÐÖØ´óµÄ´íÎóÔõô°ì£¿´íÎóÊDZà¼Ôì³ÉµÄ²»ËÀÎÒÔì³ÉµÄ
ÒѾÓÐ5È˻ظ´
ÔÀ´±àÒëµÄsiestaͻȻ²»ÄÜÓã¬ÖØÐ±àÒëû´í£¬ÔËÐгö´í
ÒѾÓÐ13È˻ظ´
±àÒëvasp³ö´í
ÒѾÓÐ11È˻ظ´
¡¾ÇóÖú¡¿f90×Ó³ÌÐòÔõô±àÒë´íÎó£¿Çë´ó¼Ò°ï棬лл
ÒѾÓÐ3È˻ظ´
Ͷ¸åÁ½Ìì·¢ÏÖ¸å×ÓÓиö´íÎ󣬱à¼Ò²Ö¸³öÀ´ÁË£¬Ôõô°ì£¿
ÒѾÓÐ21È˻ظ´
±à¼·¢´íÉó¸åÒâ¼û£¬µ«ÎÄÕÂÎÞ½øÕ¹£¬ÈçºÎ´¦Àí
ÒѾÓÐ9È˻ظ´
±à¼·¢´íÉó¸åÒâ¼ûÁËÈçºÎдÐÅѯÎÊ
ÒѾÓÐ15È˻ظ´
±à¼À´ÐÅ£¬ÎÒ°ÑÀ´ÐÅ·ÒëÁË ´ó¼Ò°ï¿´¿´ÄÄÓдíÎó£¿
ÒѾÓÐ15È˻ظ´
¡¾ÇóÖú¡¿SAS±à³Ì³öÁË´í£¬¿´²»¶®£¬Çë½Ì¸ßÊÖ
ÒѾÓÐ8È˻ظ´
caoyjian
½ð³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 2047.2
- Ìû×Ó: 181
- ÔÚÏß: 68.8Сʱ
- ³æºÅ: 1677947
- ×¢²á: 2012-03-09
- ÐÔ±ð: GG
- רҵ: ÐźÅÀíÂÛÓëÐźŴ¦Àí

2Â¥2012-06-20 11:15:08
caoyjian
½ð³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 2047.2
- Ìû×Ó: 181
- ÔÚÏß: 68.8Сʱ
- ³æºÅ: 1677947
- ×¢²á: 2012-03-09
- ÐÔ±ð: GG
- רҵ: ÐźÅÀíÂÛÓëÐźŴ¦Àí

3Â¥2012-06-20 11:43:58
|
4Â¥2012-06-20 12:16:21
»ÆÐ¡Ï¼
ͳæ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 81.3
- É¢½ð: 40
- ºì»¨: 1
- Ìû×Ó: 149
- ÔÚÏß: 18Сʱ
- ³æºÅ: 1332530
- ×¢²á: 2011-06-27
- ÐÔ±ð: MM
- רҵ: ÐźÅÀíÂÛÓëÐźŴ¦Àí
5Â¥2012-06-21 08:51:19













»Ø¸´´ËÂ¥