Ex.1-0
1)
#include<iostream>
#include<string>
#include<conio.h>
int main()
{
std::cout <<"pleause enter your name:";
std::string name;
std::cin >>name;
std::cout <<"hello, " << name <<"!" <<std::endl;
getch();
return 0;
}
2)
#include<iostream>
#include<string>
#include<conio.h>
int main()
{
std::cout <<"please enter your name:";
std::string name;
std::cin >>name;
const std::string greeting ="hello," + name +"!";
const std::string spaces(greeting.size(),' ');
const