主题:各位帮忙了!!区位码的问题。急!!
求各位告诉小弟从指定字库中获取汉字区位码的程序,写了一天没有结构。
请各位帮忙看看我写的问题
谢谢大家了!!!
#include <stdio.h>
#define ulong unsinged long
#define unsigned int uint
ulong qwcode(char* str)
{uint qm;
uint wm;
qm=*(str)-0ax0;
wm=*(str+1)-0ax0;
return(qu*0xff+wm);}
main()
{char *str;
printf("输入汉字 \n";);
scanf("%S",str);
qwcode(str);
}
请各位帮忙看看我写的问题
谢谢大家了!!!
#include <stdio.h>
#define ulong unsinged long
#define unsigned int uint
ulong qwcode(char* str)
{uint qm;
uint wm;
qm=*(str)-0ax0;
wm=*(str+1)-0ax0;
return(qu*0xff+wm);}
main()
{char *str;
printf("输入汉字 \n";);
scanf("%S",str);
qwcode(str);
}