View previous topic :: View next topic |
Author |
Message |
skyfe Guest
|
Problems with Char |
Posted: Wed Dec 24, 2003 4:17 am |
|
|
Hello,
I try to program a menu control for my Display, but I have already at the beginning a problem.
My CCS Compiler version 3.147 says: "
*** Error 49 "LCD-MENU.c" Line 25(1,6): Expecting LVALUE such as a variable name or * expression
You can help me ?
#include <16f877.h>
#device ICD=TRUE
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=pin_d5,rcv=pin_d4, ENABLE=pin_b2, PARITY=N, BITS=8) // RS232-Controllerkarte einbinden
void main()
{
char menue[20];
menue = "test";
} |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Dec 24, 2003 10:58 am |
|
|
Look up the function strcpy() in the user's manual. You will need to use this function. |
|
|
Skyfe Guest
|
|
Posted: Thu Dec 25, 2003 3:36 am |
|
|
Thank you Mark,
the function strcpy()works. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|