05/01/10 11:34
matteog
salvè stò scrivendo una classe per la gestione delle stringhe nell'overloading degli operatori eseguo queste operazioni:
il fatto stranoè che tutte le volte che compilo mi dà i seguenti errori:
warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Non sò come fare per rimuovere questi warning cosa devo modificare?? aiutatemi!
stringa operator >=(const stringa& a,const stringa& b) { int mem1=0,mem2=0; mem1=strlen(a.str); mem2=strlen(b.str); stringa risp; if(mem1>mem2) { strcpy(risp.str,"è maggiore "); } else if(mem1==mem2) { strcpy(risp.str,"le due stringhe sono lunghe uguale"); } else { strcpy(risp.str,"è minore"); } return risp.str; }
il fatto stranoè che tutte le volte che compilo mi dà i seguenti errori:
warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Non sò come fare per rimuovere questi warning cosa devo modificare?? aiutatemi!
aaa