Hi guys, I'm new to C and new here hopeing I can be here more often. I came for help. I was wondering how to use variables but for text.
I tried doing this:
Help please! Thanks in advance!Code:char c = "You have just pressed"; *snip* if(pad.Buttons & PSP_CTRL_CROSS) { pspDebugScreenPrintf("&c cross.\n"); } and from my Cygwin output I get, main.c: In function 'main': main.c:50: warning: initialization makes integer from pointer without a cast main.c:52: warning: unused variable 'i' main.c:51: warning: unused variable 'counter' main.c:50: warning: unused variable 'c' main.c:75:2: warning: no newline at end of file
NOTE: I'm coding for a PSP but I hope thats fine with you guys, I just want to know how to use text in a variable so I don't have to keep typing the same thing over and over again.