使用vc++编写的一个实现huffman编码的程序
源代码在线查看: printf.plg
Build Log
--------------------Configuration: printf - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\user\LOCALS~1\Temp\RSPB9.tmp" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR"Debug/" /Fp"Debug/printf.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\user\LOCALS~1\Temp\RSPB9.tmp"
Creating temporary file "C:\DOCUME~1\user\LOCALS~1\Temp\RSPBA.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/printf.pdb" /debug /machine:I386 /out:"Debug/printf.exe" /pdbtype:sept
".\Debug\saving.obj"
]
Creating command line "link.exe @C:\DOCUME~1\user\LOCALS~1\Temp\RSPBA.tmp"
Output Window
Compiling...
saving.cpp
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(61) : error C2065: 'hc' : undeclared identifier
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(61) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(61) : error C2664: 'strcpy' : cannot convert parameter 1 from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(62) : error C2065: 'cha' : undeclared identifier
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(62) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(62) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(77) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(78) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(109) : error C2065: 'MAX' : undeclared identifier
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(109) : error C2057: expected constant expression
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(109) : error C2466: cannot allocate an array of constant size 0
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(109) : error C2133: 'weight' : unknown size
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(110) : error C2057: expected constant expression
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(110) : error C2466: cannot allocate an array of constant size 0
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(110) : error C2133: 'code' : unknown size
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(111) : error C2057: expected constant expression
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(111) : error C2466: cannot allocate an array of constant size 0
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(111) : error C2133: 'tree' : unknown size
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(119) : error C2440: '=' : cannot convert from 'char *' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Documents and Settings\user\桌面\课程设计\printf\saving.cpp(123) : error C2664: 'decode' : cannot convert parameter 1 from 'char' to 'char []'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
Results
printf.exe - 20 error(s), 0 warning(s)