added Uint2HexStrTest.cpp and MapTest.cpp
This commit is contained in:
18
datatype/Uint2HexStrTest.cpp
Normal file
18
datatype/Uint2HexStrTest.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include<iostream>
|
||||
#include<hgl/type/StrChar.h>
|
||||
|
||||
using namespace hgl;
|
||||
|
||||
int main(int,char **)
|
||||
{
|
||||
char str[32];
|
||||
uint8 a=0x80;
|
||||
uint16 b=0x4567;
|
||||
|
||||
htos(str,32,a ); std::cout<<"to uint : 0x"<<str<<std::endl;
|
||||
htos(str,32,b ); std::cout<<"to uint : 0x"<<str<<std::endl;
|
||||
htos(str,32,str ); std::cout<<"str to uint : 0x"<<str<<std::endl;
|
||||
htos(str,32,main); std::cout<<"main to uint : 0x"<<str<<std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user