I have array in C#, and my logic is stuck and it can only work if i can have floating indexes.
Can day be 0.5 or 2.5 like that
days[day, col]=1;
Please let me know solution
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can write indexers using any type you like, e.g.
You can’t index into an array by a non-integer though.