Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
string email,username,host;//strings to store email,username,hostname..
cout<<"Enter the email address "<<endl;
cin>>email;//taking input of email address..
bool flag=1;
for(int i=0;i<email.length();i++)//iterating over the string email..
{
if(email[i]=='@')//if @ symbol is encountered make flag 0 skip this iteration.
{
flag=0;
continue;
}
if(flag==1)//add to username if flag is 1.
{
username+=email[i];
}
else//add tom host..
host+=email[i];
}
cout<<"The username is "<<username<<endl<<"The host name is "<<host;//printing the username and hostname..
return 0;
}
Explanation:
I have taken three strings to store the email address entered by user ,username and host to store username and host name respectively.Then I am iterating over the string email if @ is encountered then skip that iteration before that keep adding characters to username string and after that keep adding characters to host.
Answer:
Sound
Explanation:
Dart is object oriented. It's sound feature helps to make codes more maintainable and readable. The sound type system means that one can never experience w state where where an expression would evaluate to a value that wouldn't match that expressions static type.
The sound system makes the code to be unambiguous. It makes the code to be easier to read as types cannot lie, also your code would be more maintainable since when a piece of code gets to be changed, you would be warned of other pieces that may have gotten broken.
It gains purchasing power. Less money in circulation = more value.
Shining and warm
Collapse 3
JOJO
fate series
Bungou Stray Dog
EVA
Dao Master
Alien invasion
Future diary
Fate of Space
Story Series
Beyond the Boundary
Bayonetta
Onmyoji
Full-time master
How to develop a passerby heroine
Illusion Front
Psychometer
your name
Noragami
One Piece
Senran Kagura
Attacking Giant
Kabaneri of the Iron Fortress
Violet Evergarden
Demon Slayer
Under one person
Guilt crown
Black reef
Star Cowboy
Black Street Duo
Aria the Scarlet Ammo
Hatsune Miku
The last summoner
re creator
Detective Conan
Naruto
grim Reaper
Tokyo Ghoul
Song of Hell
At the beginning
Sword Art Online
Girl opera
Hakata pork bones pulled dough
Sunny
Black bullet
Trembling
On the broken projectile
Black Butler
Destiny's Gate
Persona
God Prison Tower
April is your lie
Ground-bound boy Hanako-kun
League of legends
Clever girl will not get hurt
Tomorrow's Ark
DARLING in the FRANKXX
RWBY
Little Busters
dating competition
Gintama
One Punch Man
The promised neverland
Taboo curse
God of college
Queen of Arms
Sword Net 3
Final fantasy