Hello guys, can you help me with this?

i want to have a username and a password saved in the args arrow and then the user will give a username and a password. I want to compare the two usernames and the two passwords. How can i achieve that?

Also, can you give me the algorithm for this product:

S=13715..*N, when the user gives a M number>0 and force N<=M

sorry for my english. Hope you can understand me....

Recommended Answers

All 3 Replies

Create a class like "User", and create properties like Username, and Password. Then create a generic list<t>, where T will be your class name.
Create two classes like:

User u1 = new User(); 
u1.USerName = "name1"; 
u1.Password = "pass1";

//same do for user2 and then compatre them

is there another way to do it without the class and the list?

Tell me, what did you mean with "args arrow"?
And there sure are other ways to salve it.

I just dont get you issue completely.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.