Something Ain't right... -_-

I have a small simple problem that I can't seem to figure out the cause to. I have an obvious string that is being read as a char. I'm not sure what that is all about, but I'm looking for a fix.
9 Replies
TheRanger
TheRanger2y ago
string listen = "Baka"; thats how you initialize a string
adamistheman
adamisthemanOP2y ago
ok Wow. This "dummies" book really knows how to screw with your head. Thanks
TheRanger
TheRanger2y ago
what book?
adamistheman
adamisthemanOP2y ago
It's a C# 5.0 for Dummies
TheRanger
TheRanger2y ago
can u screenshot? well book is old anyway, we are in c# 11 now
adamistheman
adamisthemanOP2y ago
They were explaining lists
TheRanger
TheRanger2y ago
i recommend u read from microsoft docs below $helloworld
adamistheman
adamisthemanOP2y ago
And I'll type verbatim // Instantiate for Student. List<Student> studentList = new List<Student>(); Student student1 = new Student("Vigil"); studentList.Add(student1);| Student[] students = {new Student("Mox"), new Student ("Fox") }; Console.WriteLine("Num students in studentList = " + studentList.Count); and then right after he says, (Don't worry about the "new Student" stuff. I get to that topic in book 2) I was following exactly what he put down, but it didn't make sense when I tried converting it for self interpretation. I didn't know what "student" was, so I was trying to improvise. I do know quite a bit of the basics, but for some reason this didn't catch my eye. Thanks for that.
Want results from more Discord servers?
Add your server