added Uint2HexStrTest.cpp and MapTest.cpp

This commit is contained in:
2023-07-21 18:30:12 +08:00
parent f2cf3f5db4
commit c29f25daeb
3 changed files with 98 additions and 0 deletions

View 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;
}