What is the best way to pad a small vector to the size of a bigger vector, with 0s, in the beginning?

后端 未结 0 819
花落未央
花落未央 2020-12-12 05:54

What is the best way to pad a small vector to the size of a bigger vector, with 0s, in the beginning, hence for vec1 = 1234 and vec2 = 12345678, vec1 should become 00001234

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