小编Jas*_*n Y的帖子

why does my std::transform retuns nothing/empty string?

can you help explain me how to use std::transform ?\nI need to create a function that returns a string and has a string as parameter\nand use std::transform to convert all the uppercase char to lower and vice versa lowercase char to uppercase\nexample:\ninput = "aBc"\noutput = "AbC"

\n

and i want to do it with a lambda, not using other mehtod like toupper, etc.

\n

\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8bthis is what i have so far which doesnt work, it compiles and runs but it …

c++

2
推荐指数
1
解决办法
312
查看次数

标签 统计

c++ ×1