On Tue, Feb 26, 2013 at 11:37 AM, Laura Vasilescu <[email protected]> wrote: > On Tue, Feb 26, 2013 at 11:34 AM, Mihail Dunaev <[email protected]> wrote: >> Salut, primesc eroarea asta : >> >> error C2440: 'initializing' : cannot convert from 'void *' to 'char*' >> Conversion from 'void*' to pointer to non-'void' requires an explicit cast >> >> Asta pentru : char* string = malloc (size); > > Sursa ta este C sau C++?
Sigur e C++. Va trebui sa faci un cast explicit al pointerului întors de malloc. thanks, Daniel. _______________________________________________ http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
