i have an error in my program that says :
cannot convert 'char' to char*' in function main()
i have went over it and cannot find the problem... does anyone know?
i have an error in my program that says :
cannot convert 'char' to char*' in function main()
i have went over it and cannot find the problem... does anyone know?
might be u are trying to put in a string array in a char varaible ....are you using functions might be u are passing wrong stuff ..post ur code that will help us to find the problem
"I wish i could wish my wishs away"
"By indirections find directions out" -- William Shakespears
"Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"
Mizra -> love = Death...
RDB(Rocks yooo)..
http://www.cbeginnersunited.com
Are you ready for the Trix ???
Compilers normally give you line number to go with the error messages..... that'll be a good place to start.
char is a single char (byte)
char* is a pointer to a char.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
char and char* are completely different types. I know it's confusing to understand at first, but that is how it works. Whenyou add a * to a type, it is like the differenec between int and char.