How to avoid writing by hand a massive (switch) case, using a loop or a method

后端 未结 0 1431
遥遥无期
遥遥无期 2020-12-01 04:52

I need to set bites per seconds to a range of megabits per seconds, the problems is that the bits goes from 1 bps to 7 Gbps, so the case expression will be massive, is there

相关标签:
回答
  • 消灭零回复
提交回复
热议问题