Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

create a string of length c++

#include <string>
#include <iostream>

int main()
{
    std::string s(21, '*');

    std::cout << s << std::endl;

    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #string #length
ADD COMMENT
Topic
Name
3+6 =