lgeorge123
Full Member level 2
keil string pointers
I wrote a keil c and compiled it and there are some errors .
#include <reg51.h>
#include <string.h>
#include <stdio.h>
unsigned char deg;
unsigned char font1[]={2,0,3,5};
unsigned char adr;
unsigned char k;
void rr()
{
memcpy(deg,font1[adr],1); compiler said illegal pointer
k=fmod(deg,2); compiler said missing function-prototype
......
}
Can someones give me suggestions ???? Thanks !!!!
I wrote a keil c and compiled it and there are some errors .
#include <reg51.h>
#include <string.h>
#include <stdio.h>
unsigned char deg;
unsigned char font1[]={2,0,3,5};
unsigned char adr;
unsigned char k;
void rr()
{
memcpy(deg,font1[adr],1); compiler said illegal pointer
k=fmod(deg,2); compiler said missing function-prototype
......
}
Can someones give me suggestions ???? Thanks !!!!