c# - Beeping sound from nowhere... probably error -
this 1 of biggest weird things i've ever seen there code searching elements in list q variable
public list<string> searchquestion(string frompart) { homecoming q.findall(r => r.contains(frompart)); } and there how utilize in main
foreach (string s in gamemaster.searchquestion("a")) console.writeline(s); program working, it's not crash @ all, using headset , ears exploded (yup it's not motherboard beeper fault)
what's wrong code? 4 beeps mean?
likely means (string) s contains 4 characters interpreted scheme "bell" character.
old school ascii encoding bell character 0x07.
so in unicode, we'd expect beep caused writing character u+0007 console. (there may other unicode characters interpreted equivalent "bell" character.)
c# loops console beep
No comments:
Post a Comment