Hi. noob warning.
Why does this work:
and this does not:Code:char* filename=new char[256];
in this context:Code:char filename[256];
(error is: 25 G:\proiecte\xorcrypt\main.cpp incompatible types in assignment of `char*' to `char[256]') . Aren't they both char ?Code:filename=argv[2];