please using c++ visual studio 2015. please show me for code output and give to
ID: 3813993 • Letter: P
Question
please using c++ visual studio 2015. please show me for code output and give to pseudo code for c++ thanks.
THAT IS pigLatinin.txt
go
placidly
amid
the
noise
and
haste
and
remember
what
peace
there
may
be
in
silence
as
far
as
possible
without
surrender
be
on
good
terms
with
all
persons
speak
your
truth
quietly
and
clearly
and
listen
to
others
even
the
dull
and
the
ignorant
they
too
have
their
story
if
you
compare
yourself
with
others
you
may
become
vain
or
bitter
for
always
there
will
be
greater
and
lesser
persons
than
yourself
enjoy
your
achievements
as
well
as
your
plans
be
yourself
especially
do
not
feign
affection
beyond
a
wholesome
discipline
be
gentle
with
yourself
you
are
a
child
of
the
universe
no
less
than
the
trees
and
the
stars
you
have
a
right
to
be
here
and
whether
or
not
it
is
clear
to
you
no
doubt
the
universe
is
unfolding
as
it
should
be
cheerful
strive
to
be
happy
Explanation / Answer
In C++, you can also create a string object for holding strings.
Unlike using char arrays, string objects has no fixed length, and can be extended as per your requirement.
C++ string using string data type
#include <iostream>
using namespace std;
int main()
{
// Declaring a string object
string str;
cout << "Enter a string: ";
getline(cin, str);
cout << "You entered: " << str << endl;
return 0;
}
Output
Enter a string: Programming is fun.
You entered: Programming is fun.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.