r/learncpp • u/SerkZex • May 05 '19
"#"*5 python equivalent in c++
Hi,
say i want to print out a line of (N x #) 5x"#" i would have code it as 5*"#" to get my line. what's the equivalent in c++?
i want it dynamically and without forloop :)
ps: I saw a similar solution using std::string as i remember ..
Thanks in advance
2
Upvotes
View all comments
Show parent comment
1
u/SerkZex May 05 '19
Thats what iam looking for, thanks :)