I just purchased accelerated C++ and I'm working through the examples and I'm at a road block trying to figure out what this line means. I was wondering if someone could explain this to me in a different way? The part of the code I do not understand are bolded.
I was also wondering if there is a way to make the font size of the codes bigger inside of Code Blocks?
#include <iostream>
#include <string>
int main()
{
std::cout<<"Please enter first name:";
std::string name;
std::cin>>name;
const std::string greeting = "Hello,"+name+"!";
const [B]std::string spaces(greeting.size(),'*');[/B]
const [B]std::string second ="*"+spaces+"*";[/B]
const std::string first(second.size(),'*');
std::cout<<std::endl;
std::cout<<first<<std::endl;
std::cout<<second<<std::endl;
std::cout<<"*"<<greeting<<"*"<<std::endl;
return 0;
}