You can't assign the CL parameters like that. If you're going to have arrays without specifying the number of elements, you need to declare them dynamically, and you can't use the = to assing strings, unless you overload it. You need to set up a couple of for loops and do the assignment on a char by char basis.

C:\Programs\login\login\login.c(64) : error C2224: left of '.write' must have

struct/union type

Another side effect

How to Debug

The compiler will always tell you the type of error (syntax, etc...), the line number on which it occurs (the number in parentheses), a description of the error that occurred, and a unique number that identifies the error. By looking at the line number and descriptions you should be able to see a problem in your code. If not, you need to look at the documentation for your compiler and find the error ID numbers - there you will find a more detailed description of what went wrong and maybe even a suggestion of how to fix it.