OEmbed data
Endpoint |
|
All data collected |
|
Meta data
All data collected |
Array
(
[viewport] => Array
(
[0] => width=device-width, initial-scale=1
)
[twitter:site] => Array
(
[0] => @devhubbycom
)
[twitter:creator] => Array
(
[0] => @devhubbycom
)
[twitter:title] => Array
(
[0] => How to overload the istream operator in C++?
)
[twitter:description] => Array
(
[0] => How to overload the istream operator in C++?
)
[og:title] => Array
(
[0] => How to overload the istream operator in C++?
)
[og:url] => Array
(
[0] => https://devhubby.com/thread/how-to-overload-the-istream-operator-in-c
)
[og:description] => Array
(
[0] => How to overload the istream operator in C++?
)
[og:site_name] => Array
(
[0] => Software Developer Questions and Answers
)
[description] => Array
(
[0] => How to overload the istream operator in C++?
)
[position] => Array
(
[0] => 1
[1] => 2
[2] => 3
)
)
|
Linked data
HTML content
<!doctype html>
<html data-n-head-ssr>
<head >
<title>How to overload the istream operator in C++?</title><meta data-n-head="ssr" charset="utf-8"><meta data-n-head="ssr" name="viewport" content="width=device-width, initial-scale=1"><meta data-n-head="ssr" property="twitter:site" content="@devhubbycom"><meta data-n-head="ssr" property="twitter:creator" content="@devhubbycom"><meta data-n-head="ssr" property="twitter:title" content="How to overload the istream operator in C++?"><meta data-n-head="ssr" property="twitter:description" content="How to overload the istream operator in C++?"><meta data-n-head="ssr" property="og:title" content="How to overload the istream operator in C++?"><meta data-n-head="ssr" property="og:url" content="https://devhubby.com/thread/how-to-overload-the-istream-operator-in-c"><meta data-n-head="ssr" property="og:description" content="How to overload the istream operator in C++?"><meta data-n-head="ssr" property="og:site_name" content="Software Developer Questions and Answers"><meta data-n-head="ssr" data-hid="description" name="description" content="How to overload the istream operator in C++?"><link data-n-head="ssr" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto"><link data-n-head="ssr" rel="stylesheet" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/css/c64c6733-bfad-4db8-b387-18207476d4d5/custom.css"><link data-n-head="ssr" rel="icon" type="image/png" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/images/c64c6733-bfad-4db8-b387-18207476d4d5/favicon.png"><link data-n-head="ssr" data-hid="i18n-can" rel="canonical" href="https://devhubby.com/thread/how-to-overload-the-istream-operator-in-c"><style data-n-head="vuetify" type="text/css" id="vuetify-theme-stylesheet" nonce="undefined">.v-application a { color: #ff6b00; }
.v-application .primary {
background-color: #ff6b00 !important;
border-color: #ff6b00 !important;
}
.v-application .primary--text {
color: #ff6b00 !important;
caret-color: #ff6b00 !important;
}
.v-application .primary.lighten-5 {
background-color: #fff897 !important;
border-color: #fff897 !important;
}
.v-application .primary--text.text--lighten-5 {
color: #fff897 !important;
caret-color: #fff897 !important;
}
.v-application .primary.lighten-4 {
background-color: #ffdb7b !important;
border-color: #ffdb7b !important;
}
.v-application .primary--text.text--lighten-4 {
color: #ffdb7b !important;
caret-color: #ffdb7b !important;
}
.v-application .primary.lighten-3 {
background-color: #ffbe60 !important;
border-color: #ffbe60 !important;
}
.v-application .primary--text.text--lighten-3 {
color: #ffbe60 !important;
caret-color: #ffbe60 !important;
}
.v-application .primary.lighten-2 {
background-color: #ffa245 !important;
border-color: #ffa245 !important;
}
.v-application .primary--text.text--lighten-2 {
color: #ffa245 !important;
caret-color: #ffa245 !important;
}
.v-application .primary.lighten-1 {
background-color: #ff8629 !important;
border-color: #ff8629 !important;
}
.v-application .primary--text.text--lighten-1 {
color: #ff8629 !important;
caret-color: #ff8629 !important;
}
.v-application .primary.darken-1 {
background-color: #de5000 !important;
border-color: #de5000 !important;
}
.v-application .primary--text.text--darken-1 {
color: #de5000 !important;
caret-color: #de5000 !important;
}
.v-application .primary.darken-2 {
background-color: #be3400 !important;
border-color: #be3400 !important;
}
.v-application .primary--text.text--darken-2 {
color: #be3400 !important;
caret-color: #be3400 !important;
}
.v-application .primary.darken-3 {
background-color: #9f1100 !important;
border-color: #9f1100 !important;
}
.v-application .primary--text.text--darken-3 {
color: #9f1100 !important;
caret-color: #9f1100 !important;
}
.v-application .primary.darken-4 {
background-color: #810000 !important;
border-color: #810000 !important;
}
.v-application .primary--text.text--darken-4 {
color: #810000 !important;
caret-color: #810000 !important;
}
.v-application .secondary {
background-color: #0095ff !important;
border-color: #0095ff !important;
}
.v-application .secondary--text {
color: #0095ff !important;
caret-color: #0095ff !important;
}
.v-application .secondary.lighten-5 {
background-color: #d3ffff !important;
border-color: #d3ffff !important;
}
.v-application .secondary--text.text--lighten-5 {
color: #d3ffff !important;
caret-color: #d3ffff !important;
}
.v-application .secondary.lighten-4 {
background-color: #b3ffff !important;
border-color: #b3ffff !important;
}
.v-application .secondary--text.text--lighten-4 {
color: #b3ffff !important;
caret-color: #b3ffff !important;
}
.v-application .secondary.lighten-3 {
background-color: #92e6ff !important;
border-color: #92e6ff !important;
}
.v-application .secondary--text.text--lighten-3 {
color: #92e6ff !important;
caret-color: #92e6ff !important;
}
.v-application .secondary.lighten-2 {
background-color: #70cbff !important;
border-color: #70cbff !important;
}
.v-application .secondary--text.text--lighten-2 {
color: #70cbff !important;
caret-color: #70cbff !important;
}
.v-application .secondary.lighten-1 {
background-color: #49afff !important;
border-color: #49afff !important;
}
.v-application .secondary--text.text--lighten-1 {
color: #49afff !important;
caret-color: #49afff !important;
}
.v-application .secondary.darken-1 {
background-color: #007ce2 !important;
border-color: #007ce2 !important;
}
.v-application .secondary--text.text--darken-1 {
color: #007ce2 !important;
caret-color: #007ce2 !important;
}
.v-application .secondary.darken-2 {
background-color: #0063c6 !important;
border-color: #0063c6 !important;
}
.v-application .secondary--text.text--darken-2 {
color: #0063c6 !important;
caret-color: #0063c6 !important;
}
.v-application .secondary.darken-3 {
background-color: #004caa !important;
border-color: #004caa !important;
}
.v-application .secondary--text.text--darken-3 {
color: #004caa !important;
caret-color: #004caa !important;
}
.v-application .secondary.darken-4 {
background-color: #00368f !important;
border-color: #00368f !important;
}
.v-application .secondary--text.text--darken-4 {
color: #00368f !important;
caret-color: #00368f !important;
}
.v-application .accent {
background-color: #0095ff !important;
border-color: #0095ff !important;
}
.v-application .accent--text {
color: #0095ff !important;
caret-color: #0095ff !important;
}
.v-application .accent.lighten-5 {
background-color: #d3ffff !important;
border-color: #d3ffff !important;
}
.v-application .accent--text.text--lighten-5 {
color: #d3ffff !important;
caret-color: #d3ffff !important;
}
.v-application .accent.lighten-4 {
background-color: #b3ffff !important;
border-color: #b3ffff !important;
}
.v-application .accent--text.text--lighten-4 {
color: #b3ffff !important;
caret-color: #b3ffff !important;
}
.v-application .accent.lighten-3 {
background-color: #92e6ff !important;
border-color: #92e6ff !important;
}
.v-application .accent--text.text--lighten-3 {
color: #92e6ff !important;
caret-color: #92e6ff !important;
}
.v-application .accent.lighten-2 {
background-color: #70cbff !important;
border-color: #70cbff !important;
}
.v-application .accent--text.text--lighten-2 {
color: #70cbff !important;
caret-color: #70cbff !important;
}
.v-application .accent.lighten-1 {
background-color: #49afff !important;
border-color: #49afff !important;
}
.v-application .accent--text.text--lighten-1 {
color: #49afff !important;
caret-color: #49afff !important;
}
.v-application .accent.darken-1 {
background-color: #007ce2 !important;
border-color: #007ce2 !important;
}
.v-application .accent--text.text--darken-1 {
color: #007ce2 !important;
caret-color: #007ce2 !important;
}
.v-application .accent.darken-2 {
background-color: #0063c6 !important;
border-color: #0063c6 !important;
}
.v-application .accent--text.text--darken-2 {
color: #0063c6 !important;
caret-color: #0063c6 !important;
}
.v-application .accent.darken-3 {
background-color: #004caa !important;
border-color: #004caa !important;
}
.v-application .accent--text.text--darken-3 {
color: #004caa !important;
caret-color: #004caa !important;
}
.v-application .accent.darken-4 {
background-color: #00368f !important;
border-color: #00368f !important;
}
.v-application .accent--text.text--darken-4 {
color: #00368f !important;
caret-color: #00368f !important;
}
.v-application .error {
background-color: #ff6b00 !important;
border-color: #ff6b00 !important;
}
.v-application .error--text {
color: #ff6b00 !important;
caret-color: #ff6b00 !important;
}
.v-application .error.lighten-5 {
background-color: #fff897 !important;
border-color: #fff897 !important;
}
.v-application .error--text.text--lighten-5 {
color: #fff897 !important;
caret-color: #fff897 !important;
}
.v-application .error.lighten-4 {
background-color: #ffdb7b !important;
border-color: #ffdb7b !important;
}
.v-application .error--text.text--lighten-4 {
color: #ffdb7b !important;
caret-color: #ffdb7b !important;
}
.v-application .error.lighten-3 {
background-color: #ffbe60 !important;
border-color: #ffbe60 !important;
}
.v-application .error--text.text--lighten-3 {
color: #ffbe60 !important;
caret-color: #ffbe60 !important;
}
.v-application .error.lighten-2 {
background-color: #ffa245 !important;
border-color: #ffa245 !important;
}
.v-application .error--text.text--lighten-2 {
color: #ffa245 !important;
caret-color: #ffa245 !important;
}
.v-application .error.lighten-1 {
background-color: #ff8629 !important;
border-color: #ff8629 !important;
}
.v-application .error--text.text--lighten-1 {
color: #ff8629 !important;
caret-color: #ff8629 !important;
}
.v-application .error.darken-1 {
background-color: #de5000 !important;
border-color: #de5000 !important;
}
.v-application .error--text.text--darken-1 {
color: #de5000 !important;
caret-color: #de5000 !important;
}
.v-application .error.darken-2 {
background-color: #be3400 !important;
border-color: #be3400 !important;
}
.v-application .error--text.text--darken-2 {
color: #be3400 !important;
caret-color: #be3400 !important;
}
.v-application .error.darken-3 {
background-color: #9f1100 !important;
border-color: #9f1100 !important;
}
.v-application .error--text.text--darken-3 {
color: #9f1100 !important;
caret-color: #9f1100 !important;
}
.v-application .error.darken-4 {
background-color: #810000 !important;
border-color: #810000 !important;
}
.v-application .error--text.text--darken-4 {
color: #810000 !important;
caret-color: #810000 !important;
}
.v-application .info {
background-color: #0095ff !important;
border-color: #0095ff !important;
}
.v-application .info--text {
color: #0095ff !important;
caret-color: #0095ff !important;
}
.v-application .info.lighten-5 {
background-color: #d3ffff !important;
border-color: #d3ffff !important;
}
.v-application .info--text.text--lighten-5 {
color: #d3ffff !important;
caret-color: #d3ffff !important;
}
.v-application .info.lighten-4 {
background-color: #b3ffff !important;
border-color: #b3ffff !important;
}
.v-application .info--text.text--lighten-4 {
color: #b3ffff !important;
caret-color: #b3ffff !important;
}
.v-application .info.lighten-3 {
background-color: #92e6ff !important;
border-color: #92e6ff !important;
}
.v-application .info--text.text--lighten-3 {
color: #92e6ff !important;
caret-color: #92e6ff !important;
}
.v-application .info.lighten-2 {
background-color: #70cbff !important;
border-color: #70cbff !important;
}
.v-application .info--text.text--lighten-2 {
color: #70cbff !important;
caret-color: #70cbff !important;
}
.v-application .info.lighten-1 {
background-color: #49afff !important;
border-color: #49afff !important;
}
.v-application .info--text.text--lighten-1 {
color: #49afff !important;
caret-color: #49afff !important;
}
.v-application .info.darken-1 {
background-color: #007ce2 !important;
border-color: #007ce2 !important;
}
.v-application .info--text.text--darken-1 {
color: #007ce2 !important;
caret-color: #007ce2 !important;
}
.v-application .info.darken-2 {
background-color: #0063c6 !important;
border-color: #0063c6 !important;
}
.v-application .info--text.text--darken-2 {
color: #0063c6 !important;
caret-color: #0063c6 !important;
}
.v-application .info.darken-3 {
background-color: #004caa !important;
border-color: #004caa !important;
}
.v-application .info--text.text--darken-3 {
color: #004caa !important;
caret-color: #004caa !important;
}
.v-application .info.darken-4 {
background-color: #00368f !important;
border-color: #00368f !important;
}
.v-application .info--text.text--darken-4 {
color: #00368f !important;
caret-color: #00368f !important;
}
.v-application .success {
background-color: #0095ff !important;
border-color: #0095ff !important;
}
.v-application .success--text {
color: #0095ff !important;
caret-color: #0095ff !important;
}
.v-application .success.lighten-5 {
background-color: #d3ffff !important;
border-color: #d3ffff !important;
}
.v-application .success--text.text--lighten-5 {
color: #d3ffff !important;
caret-color: #d3ffff !important;
}
.v-application .success.lighten-4 {
background-color: #b3ffff !important;
border-color: #b3ffff !important;
}
.v-application .success--text.text--lighten-4 {
color: #b3ffff !important;
caret-color: #b3ffff !important;
}
.v-application .success.lighten-3 {
background-color: #92e6ff !important;
border-color: #92e6ff !important;
}
.v-application .success--text.text--lighten-3 {
color: #92e6ff !important;
caret-color: #92e6ff !important;
}
.v-application .success.lighten-2 {
background-color: #70cbff !important;
border-color: #70cbff !important;
}
.v-application .success--text.text--lighten-2 {
color: #70cbff !important;
caret-color: #70cbff !important;
}
.v-application .success.lighten-1 {
background-color: #49afff !important;
border-color: #49afff !important;
}
.v-application .success--text.text--lighten-1 {
color: #49afff !important;
caret-color: #49afff !important;
}
.v-application .success.darken-1 {
background-color: #007ce2 !important;
border-color: #007ce2 !important;
}
.v-application .success--text.text--darken-1 {
color: #007ce2 !important;
caret-color: #007ce2 !important;
}
.v-application .success.darken-2 {
background-color: #0063c6 !important;
border-color: #0063c6 !important;
}
.v-application .success--text.text--darken-2 {
color: #0063c6 !important;
caret-color: #0063c6 !important;
}
.v-application .success.darken-3 {
background-color: #004caa !important;
border-color: #004caa !important;
}
.v-application .success--text.text--darken-3 {
color: #004caa !important;
caret-color: #004caa !important;
}
.v-application .success.darken-4 {
background-color: #00368f !important;
border-color: #00368f !important;
}
.v-application .success--text.text--darken-4 {
color: #00368f !important;
caret-color: #00368f !important;
}
.v-application .warning {
background-color: #ff6b00 !important;
border-color: #ff6b00 !important;
}
.v-application .warning--text {
color: #ff6b00 !important;
caret-color: #ff6b00 !important;
}
.v-application .warning.lighten-5 {
background-color: #fff897 !important;
border-color: #fff897 !important;
}
.v-application .warning--text.text--lighten-5 {
color: #fff897 !important;
caret-color: #fff897 !important;
}
.v-application .warning.lighten-4 {
background-color: #ffdb7b !important;
border-color: #ffdb7b !important;
}
.v-application .warning--text.text--lighten-4 {
color: #ffdb7b !important;
caret-color: #ffdb7b !important;
}
.v-application .warning.lighten-3 {
background-color: #ffbe60 !important;
border-color: #ffbe60 !important;
}
.v-application .warning--text.text--lighten-3 {
color: #ffbe60 !important;
caret-color: #ffbe60 !important;
}
.v-application .warning.lighten-2 {
background-color: #ffa245 !important;
border-color: #ffa245 !important;
}
.v-application .warning--text.text--lighten-2 {
color: #ffa245 !important;
caret-color: #ffa245 !important;
}
.v-application .warning.lighten-1 {
background-color: #ff8629 !important;
border-color: #ff8629 !important;
}
.v-application .warning--text.text--lighten-1 {
color: #ff8629 !important;
caret-color: #ff8629 !important;
}
.v-application .warning.darken-1 {
background-color: #de5000 !important;
border-color: #de5000 !important;
}
.v-application .warning--text.text--darken-1 {
color: #de5000 !important;
caret-color: #de5000 !important;
}
.v-application .warning.darken-2 {
background-color: #be3400 !important;
border-color: #be3400 !important;
}
.v-application .warning--text.text--darken-2 {
color: #be3400 !important;
caret-color: #be3400 !important;
}
.v-application .warning.darken-3 {
background-color: #9f1100 !important;
border-color: #9f1100 !important;
}
.v-application .warning--text.text--darken-3 {
color: #9f1100 !important;
caret-color: #9f1100 !important;
}
.v-application .warning.darken-4 {
background-color: #810000 !important;
border-color: #810000 !important;
}
.v-application .warning--text.text--darken-4 {
color: #810000 !important;
caret-color: #810000 !important;
}</style><link rel="preload" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/5dd0c65.js" as="script"><link rel="preload" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/92fcc94.js" as="script"><link rel="preload" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/css/6833b95.css" as="style"><link rel="preload" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/47eb516.js" as="script"><link rel="preload" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/css/2be5956.css" as="style"><link rel="preload" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/dd3342e.js" as="script"><link rel="stylesheet" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/css/6833b95.css"><link rel="stylesheet" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/css/2be5956.css">
</head>
<body >
<div data-server-rendered="true" id="__nuxt"><!----><div id="__layout"><div data-app="true" id="app" class="v-application v-application--is-ltr theme--light" style="font-family:Roboto;"><div class="v-application--wrap"><div tabindex="0" aria-label="Loading" class="vld-overlay is-active is-full-page" style="z-index:999;display:none;"><div class="vld-background" style="background:#fff;opacity:0.5;"></div><div class="vld-icon"><svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" width="65" height="65" stroke="#1976d2"><g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g></svg></div></div> <!----> <div class="header-section"><header class="v-sheet theme--light elevation-3 v-toolbar v-app-bar v-app-bar--fixed" style="height:56px;margin-top:0px;transform:translateY(0px);left:0px;right:0px;"><div class="v-toolbar__content" style="height:56px;"><div class="row main-menu"><div role="dialog" class="v-dialog__container"><!----></div> <div role="dialog" class="v-dialog__container"><!----></div> <div class="d-none d-lg-flex d-xl-flex d-md-flex justify-space-between pb-5 col col-12"><div class="d-flex align-center col-md-2 col-lg-1 offset-lg-1 col-4"><a href="/" class="d-flex w-100 nuxt-link-active"><div class="logo d-flex w-100"><div aria-label="Software Developer Questions and Answers" role="img" class="v-image v-responsive theme--light" style="max-height:50px;"><div class="v-image__image v-image__image--preload v-image__image--contain" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></a></div> <!----> <div class="col-md-5 col-lg-5 offset-lg-1 col-4"><button type="button" class="v-btn v-btn--flat v-btn--icon v-btn--round theme--dark v-size--default primary--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-magnify theme--dark"></i></span></button> <a href="/login" class="v-btn v-btn--contained v-btn--router theme--light v-size--default success"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-message-question-outline theme--light"></i> <span class="d-none d-lg-flex d-xl-flex">Ask Question</span></span></a> <a href="/login" class="v-btn v-btn--depressed v-btn--flat v-btn--outlined v-btn--router theme--light v-size--default success--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-login theme--light"></i><span class="d-none d-lg-flex d-xl-flex">Sign In</span></span></a> <a href="/register" class="v-btn v-btn--depressed v-btn--flat v-btn--outlined v-btn--router theme--light v-size--default info--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-account-plus-outline theme--light"></i><span class="d-none d-lg-flex d-xl-flex">Sign Up</span></span></a></div></div> <nav class="hidden-md-and-up v-navigation-drawer v-navigation-drawer--close v-navigation-drawer--fixed v-navigation-drawer--is-mobile v-navigation-drawer--temporary theme--light" style="height:100vh;top:0px;transform:translateX(-100%);width:256px;"><div class="v-navigation-drawer__content"><div class="v-list v-sheet theme--light"><a href="/" tabindex="0" router="" class="v-list-item v-list-item--link theme--light"><div class="v-list-item__content"><div class="v-list-item__title">Home</div></div></a> <!----> <!----> <!----> <a href="/login" tabindex="0" router="" class="v-list-item v-list-item--link theme--light"><div class="v-list-item__content"><div class="v-list-item__title">Sign In</div></div></a> <a href="/register" tabindex="0" router="" class="v-list-item v-list-item--link theme--light"><div class="v-list-item__content"><div class="v-list-item__title">Sign Up</div></div></a> <!----></div></div><div class="v-navigation-drawer__border"></div></nav> <header class="hidden-md-and-up v-sheet theme--light v-toolbar v-app-bar v-app-bar--fixed" style="height:56px;margin-top:0px;transform:translateY(0px);left:0px;right:0px;"><div class="v-toolbar__content" style="height:56px;"><div class="row align-center"><button type="button" class="v-app-bar__nav-icon v-btn v-btn--flat v-btn--icon v-btn--round theme--light v-size--default"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-menu theme--light"></i></span></button> <div class="d-flex col-10 pr-0 align-center justify-end"><button type="button" class="v-btn v-btn--flat v-btn--icon v-btn--round theme--dark v-size--default primary--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-magnify theme--dark"></i></span></button> <a href="/login" class="v-btn v-btn--flat v-btn--icon v-btn--round v-btn--router theme--light v-size--default success--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-message-question-outline theme--light"></i></span></a> <div class="col-sm-3 col-md-3 col-4"><a href="/" class="nuxt-link-active"><div class="logo d-flex w-100"><div aria-label="Software Developer Questions and Answers" role="img" class="v-image v-responsive theme--light" style="max-height:50px;"><div class="v-responsive__sizer" style="padding-bottom:100%;"></div><div class="v-image__image v-image__image--preload v-image__image--contain" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></a></div></div></div></div></header></div></div></header></div> <div class="container"><!----> <div class="flex"><ul itemscope="itemscope" itemtype="http://schema.org/BreadcrumbList" class="v-breadcrumbs v-breadcrumbs--large theme--light"><li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"><a href="/" itemprop="item" class="v-breadcrumbs__item nuxt-link-active"><span itemprop="name">Home</span></a> <meta content="1" itemprop="position"></li><li class="v-breadcrumbs__divider">></li><li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"><a href="/forum/c-c" itemprop="item" class="v-breadcrumbs__item"><span itemprop="name">C/C++</span></a> <meta content="2" itemprop="position"></li><li class="v-breadcrumbs__divider">></li><li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"><a href="#" itemprop="item" class="v-breadcrumbs__item v-breadcrumbs__item--disabled"><span itemprop="name">How to overload the istream operator in C++?</span></a> <meta content="3" itemprop="position"></li></ul></div> <div class="row mx-0 mt-1"><div class="flex md4 lg3 xl2"><div><div class="row d-md-none justify-space-around"><div class="py-0 col-sm-10 col-md-8 col-12"><div class="px-1 transparent v-sheet theme--light"><div class="v-item-group theme--light v-slide-group v-chip-group"><div class="v-slide-group__prev v-slide-group__prev--disabled"><!----></div><div class="v-slide-group__wrapper"><div class="v-slide-group__content"><a href="/forum/php" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default primary--text"><span class="v-chip__content">
PHP
</span></a><a href="/forum/javascript" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
JavaScript
</span></a><a href="/forum/sql" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
SQL
</span></a><a href="/forum/golang" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
Golang
</span></a><a href="/forum/html-css" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
HTML/CSS
</span></a><a href="/forum/ruby" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
Ruby
</span></a><a href="/forum/python" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
Python
</span></a><a href="/forum/java" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
Java
</span></a><a href="/forum/c-c" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
C/C++
</span></a><a href="/forum/swift" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
Swift
</span></a><a href="/forum/other" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content">
Other
</span></a></div></div><div class="v-slide-group__next v-slide-group__next--disabled"><!----></div></div></div></div></div> <div class="row d-none d-lg-flex d-xl-flex d-md-flex pr-3"><div class="w-100 v-card v-sheet theme--light"><header class="v-sheet theme--dark v-toolbar info" style="height:56px;"><div class="v-toolbar__content" style="height:56px;"><div class="v-toolbar__title">Category</div></div></header> <div style="max-height:800px;overflow-y:auto;"><div><a href="/forum/php" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">PHP</div></a></div><div><a href="/forum/javascript" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">JavaScript</div></a></div><div><a href="/forum/sql" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">SQL</div></a></div><div><a href="/forum/golang" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">Golang</div></a></div><div><a href="/forum/html-css" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">HTML/CSS</div></a></div><div><a href="/forum/ruby" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">Ruby</div></a></div><div><a href="/forum/python" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">Python</div></a></div><div><a href="/forum/java" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">Java</div></a></div><div><a href="/forum/c-c" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">C/C++</div></a></div><div><a href="/forum/swift" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">Swift</div></a></div><div><a href="/forum/other" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__title">Other</div></a></div></div></div> <!----></div></div></div> <div class="flex pl-lg-4 pl-md-4 pl-xl-4 md8 lg9 xl10"><div class="flex"><div itemscope="itemscope" itemtype="http://schema.org/DiscussionForumPosting" class="row"><div class="col-sm-12 col-md-8 col-lg-8 col-12"><h1 itemprop="headline">How to overload the istream operator in C++?</h1></div> <div class="text-md-right text-center col-sm-12 col-md-4 col-lg-4 col-12"><!----> <!----> <button type="button" class="v-btn v-btn--contained theme--dark v-size--default primary"><span class="v-btn__content">New message
</span></button></div></div> <div role="dialog" class="v-dialog__container"><!----></div> <div class="row"><div class="col col-12"><div class="v-card v-sheet theme--light"><div role="list" class="v-list v-sheet theme--light"><div tabindex="-1" role="listitem" class="v-list-item theme--light"><div class="row thread-row" data-v-3fd2e7d3><!----> <!----> <!----> <!----> <!----> <div class="row mx-3" data-v-3fd2e7d3 data-v-3fd2e7d3><div class="col-sm-3 col-md-3 col-lg-2 col-xl-1 col-12" data-v-3fd2e7d3 data-v-3fd2e7d3><div itemscope="itemscope" itemtype="http://schema.org/Person" class="avatar text-center" data-v-3fd2e7d3><div class="v-avatar" style="height:50px;min-width:50px;width:50px;"><div aria-label="edison.lang" role="img" class="v-image v-responsive theme--light"><div class="v-image__image v-image__image--preload v-image__image--cover" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div> <p class="my-0 caption">Member</p> <div><a href="/profile/edison.lang" class="d-inline-flex"><p itemprop="name" class="subtitle-2 mb-0">
edison.lang
</p></a></div> <!----></div></div> <div class="py-0 col-sm-9 col-md-9 col-lg-10 col-xl-11 col-12" data-v-3fd2e7d3 data-v-3fd2e7d3><!----> <div class="py-0 col col-12" data-v-3fd2e7d3 data-v-3fd2e7d3><span class="caption" data-v-3fd2e7d3>by
<a href="/profile/edison.lang" class="d-inline-flex caption" data-v-3fd2e7d3>
edison.lang
</a></span>, <span class="caption" data-v-3fd2e7d3>in category: </span> <span class="caption" data-v-3fd2e7d3><a href="/forum/c-c" class="d-inline-flex caption" data-v-3fd2e7d3>
C/C++
</a></span>,
<span class="caption" data-v-3fd2e7d3>3 months ago</span></div> <!----> <!----></div> <div class="col col-12" data-v-3fd2e7d3 data-v-3fd2e7d3><div class="forum-text ql-viewer" data-v-3fd2e7d3><p>How to overload the istream operator in C++?</p></div> <div class="d-flex justify-start flex-wrap flex-lg-nowrap flex-md-nowrap flex-xl-nowrap flex-sm-nowrap" data-v-3fd2e7d3><div class="text-center text-lg-left text-md-left text-xl-left text-sm-left col-sm-5 col-md-4 col-lg-2 col-xl-2 col-12" data-v-3fd2e7d3 data-v-3fd2e7d3><div class="like-dislike-buttons pt-3" data-v-83b0a1ca data-v-3fd2e7d3><span class="v-badge v-badge--overlap theme--light" data-v-83b0a1ca><span draggable="false" class="v-chip v-chip--outlined theme--light v-size--default info info--text" data-v-83b0a1ca><span class="v-chip__content"><div class="d-flex justify-center" style="--primary-color:#FF6B00;" data-v-83b0a1ca><a href="#" class="like-dislike-buttons__btn" data-v-83b0a1ca><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-up theme--light" data-v-83b0a1ca></i> <small title="31 likes" class="like-dislike-buttons__count" data-v-83b0a1ca>31</small></a> <span class="separator" data-v-83b0a1ca>|</span> <a href="#" class="like-dislike-buttons__btn" data-v-83b0a1ca><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-down theme--light" data-v-83b0a1ca></i> <small title="no dislikes" class="like-dislike-buttons__count" data-v-83b0a1ca>0</small></a></div></span></span><span class="v-badge__wrapper"><span aria-atomic="true" aria-label="Badge" aria-live="polite" role="status" class="v-badge__badge error" style="bottom:calc(100% - 12px);left:calc(100% - 12px);right:auto;top:auto;">31</span></span></span></div></div> <div class="col-sm-7 col-md-8 col-lg-10 col-xl-10 col-12" data-v-3fd2e7d3 data-v-3fd2e7d3><div class="justify-center icons d-flex col col-12" data-v-11d4c0a4 data-v-11d4c0a4 data-v-3fd2e7d3><a href="https://www.facebook.com/sharer.php?src=sp&u=https%3A%2F%2Fdevhubby.com%2Fthread%2Fhow-to-overload-the-istream-operator-in-c&quote=How%20to%20overload%20the%20%23istream%20operator%20in%20C%2B%2B%3F&hashtag=%23c%2B%2B" rel="nofollow noopener" target="_blank" title="Facebook" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/fb.png" width="32" height="32" alt="Facebook" data-v-11d4c0a4></a> <!----> <!----> <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fdevhubby.com%2Fthread%2Fhow-to-overload-the-istream-operator-in-c&text=How%20to%20overload%20the%20%23istream%20operator%20in%20C%2B%2B%3F&hashtags=c++,cplusplus,mywebforum" rel="nofollow noopener" target="_blank" title="Twitter" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/twitter.png" width="32" height="32" alt="Twitter" data-v-11d4c0a4></a> <a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fdevhubby.com%2Fthread%2Fhow-to-overload-the-istream-operator-in-c" rel="nofollow noopener" target="_blank" title="LinkedIn" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/linkedin.png" width="32" height="32" alt="LinkedIn" data-v-11d4c0a4></a> <a href="https://telegram.me/share/url?url=https%3A%2F%2Fdevhubby.com%2Fthread%2Fhow-to-overload-the-istream-operator-in-c" rel="nofollow noopener" target="_blank" title="Telegram" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/telegram.png" width="32" height="32" alt="Telegram" data-v-11d4c0a4></a> <a href="https://api.whatsapp.com/send?text=https%3A%2F%2Fdevhubby.com%2Fthread%2Fhow-to-overload-the-istream-operator-in-c" rel="nofollow noopener" target="_blank" title="Whatsapp" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/whatsapp.png" width="32" height="32" alt="Whatsapp" data-v-11d4c0a4></a> <!----></div></div></div> <div class="row py-0" data-v-3fd2e7d3 data-v-3fd2e7d3><div class="text-center col" data-v-3fd2e7d3 data-v-3fd2e7d3><a href="/tag/c++" draggable="false" class="mr-2 mb-1 v-chip v-chip--clickable v-chip--label v-chip--link v-chip--outlined v-chip--pill theme--light v-size--small secondary secondary--text" data-v-3fd2e7d3><span class="v-chip__content"><span class="secondary--text text-decoration-none font-weight-bold" data-v-3fd2e7d3><i aria-hidden="true" class="v-icon notranslate mx-0 v-icon--left mdi mdi-pound theme--light secondary--text" style="font-size:16px;" data-v-3fd2e7d3></i>c++
</span></span></a><a href="/tag/cplusplus" draggable="false" class="mr-2 mb-1 v-chip v-chip--clickable v-chip--label v-chip--link v-chip--outlined v-chip--pill theme--light v-size--small secondary secondary--text" data-v-3fd2e7d3><span class="v-chip__content"><span class="secondary--text text-decoration-none font-weight-bold" data-v-3fd2e7d3><i aria-hidden="true" class="v-icon notranslate mx-0 v-icon--left mdi mdi-pound theme--light secondary--text" style="font-size:16px;" data-v-3fd2e7d3></i>cplusplus
</span></span></a><a href="/tag/istream" draggable="false" class="mr-2 mb-1 v-chip v-chip--clickable v-chip--label v-chip--link v-chip--outlined v-chip--pill theme--light v-size--small secondary secondary--text" data-v-3fd2e7d3><span class="v-chip__content"><span class="secondary--text text-decoration-none font-weight-bold" data-v-3fd2e7d3><i aria-hidden="true" class="v-icon notranslate mx-0 v-icon--left mdi mdi-pound theme--light secondary--text" style="font-size:16px;" data-v-3fd2e7d3></i>istream
</span></span></a></div></div></div></div> <!----> <!----></div></div> <hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <h4 class="my-4 pl-4 text-capitalize">
1 answer
</h4> <hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <div tabindex="-1" role="listitem" class="v-list-item theme--light"><!----> <div class="row post-row" data-v-0189c512 data-v-0189c512><!----> <!----> <!----> <!----> <!----> <div class="col-sm-3 col-md-2 col-lg-1 col-12" data-v-0189c512 data-v-0189c512><div itemscope="itemscope" itemtype="http://schema.org/Person" class="avatar text-center" data-v-0189c512><div class="v-avatar" style="height:50px;min-width:50px;width:50px;"><div aria-label="nicola" role="img" class="v-image v-responsive theme--light"><div class="v-image__image v-image__image--preload v-image__image--cover" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div> <p class="my-0 caption">Member</p> <div><a href="/profile/nicola" class="d-inline-flex"><p itemprop="name" class="subtitle-2 mb-0">
nicola
</p></a></div> <!----></div></div> <div class="col-sm-9 col-md-10 col-lg-11 col-12" data-v-0189c512 data-v-0189c512><div class="pt-0 col col-12" data-v-0189c512 data-v-0189c512><span class="caption" data-v-0189c512>by
<a href="/profile/nicola" class="d-inline-flex caption" data-v-0189c512>
nicola </a></span>,
<span class="caption" data-v-0189c512>3 months ago</span></div> <div class="forum-text ql-viewer" data-v-0189c512><p><span class="mention"><span><span><span class="mention"><span><span><span class="ql-mention-denotation-char">@</span>edison.lang</span></span></span> </span> </span></span></p><p>To overload the <code>istream</code> operator in C++, you need to define a global function with the following signature:</p><div style="color:#f8f8f2;background-color:#272822;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tbody><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="color:#f8f8f2;background-color:#272822;">istream<span style="color:#f92672">&</span> operator<span style="color:#f92672">>></span>(istream<span style="color:#f92672">&</span> <span style="color:#f92672">is</span>, Type<span style="color:#f92672">&</span> obj)
</pre></td></tr></tbody></table>
</div>
<p><br/></p><p>Here, <code>Type</code> is the type of the object you want to read from the input stream, and <code>obj</code> is a reference to this object. The function should read the data for the object from the input stream <code>is</code>, and return a reference to the stream.</p><p><br/></p><p>Here's an example of how you could overload the <code>istream</code> operator for a simple <code>Point</code> class:</p><div style="color:#f8f8f2;background-color:#272822;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tbody><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">9
</span></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="color:#66d9ef">class</span> <span style="color:#a6e22e">Point</span> {
<span style="color:#66d9ef">public</span>:
int x, y;
};
istream& <span style="color:#66d9ef">operator</span>>>(istream& <span style="color:#66d9ef">is</span>, Point& p) {
<span style="color:#66d9ef">is</span> >> p.x >> p.y;
<span style="color:#66d9ef">return</span> <span style="color:#66d9ef">is</span>;
}
</pre></td></tr></tbody></table>
</div>
<p><br/></p><p>You can then use the <code>>></code> operator to read a <code>Point</code> object from an input stream:</p><div style="color:#f8f8f2;background-color:#272822;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tbody><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="color:#f92672">Point</span> <span style="color:#f92672">p</span><span style="color:#f92672">;</span>
<span style="color:#f92672">cin</span> <span style="color:#f92672">>></span> <span style="color:#f92672">p</span><span style="color:#f92672">;</span>
</pre></td></tr></tbody></table>
</div>
<p><br/></p></div></div> <!----> <div class="text-center text-lg-left text-md-left text-xl-left text-sm-left col-sm-5 col-md-4 col-lg-2 col-xl-2 col-12" data-v-0189c512 data-v-0189c512><div class="like-dislike-buttons pt-3" data-v-83b0a1ca data-v-0189c512><span class="v-badge v-badge--overlap theme--light" data-v-83b0a1ca><span draggable="false" class="v-chip v-chip--outlined theme--light v-size--default info info--text" data-v-83b0a1ca><span class="v-chip__content"><div class="d-flex justify-center" style="--primary-color:#FF6B00;" data-v-83b0a1ca><a href="#" class="like-dislike-buttons__btn" data-v-83b0a1ca><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-up theme--light" data-v-83b0a1ca></i> <small title="no likes" class="like-dislike-buttons__count" data-v-83b0a1ca>0</small></a> <span class="separator" data-v-83b0a1ca>|</span> <a href="#" class="like-dislike-buttons__btn" data-v-83b0a1ca><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-down theme--light" data-v-83b0a1ca></i> <small title="no dislikes" class="like-dislike-buttons__count" data-v-83b0a1ca>0</small></a></div></span></span><span class="v-badge__wrapper"><span aria-atomic="true" aria-label="Badge" aria-live="polite" role="status" class="v-badge__badge error" style="bottom:calc(100% - 12px);left:calc(100% - 12px);right:auto;top:auto;">0</span></span></span></div></div> <!----> <div class="col col-12" data-v-0189c512 data-v-0189c512><!----></div></div></div> <!----></div></div></div></div> <div class="d-flex justify-space-between flex-wrap flex-lg-nowrap flex-md-nowrap flex-xl-nowrap flex-sm-nowrap"><nav role="navigation" aria-label="Pagination Navigation" class="w-100"><ul class="v-pagination theme--light"><li><button type="button" aria-label="Previous page" class="v-pagination__navigation v-pagination__navigation--disabled"><i aria-hidden="true" class="v-icon notranslate mdi mdi-chevron-left theme--light"></i></button></li><li><button type="button" aria-current="true" aria-label="Current Page, Page 1" class="v-pagination__item v-pagination__item--active primary">1</button></li><li><button type="button" aria-label="Next page" class="v-pagination__navigation v-pagination__navigation--disabled"><i aria-hidden="true" class="v-icon notranslate mdi mdi-chevron-right theme--light"></i></button></li></ul></nav> <div class="mx-auto col-sm-2 col-md-3 col-lg-2 col-xl-1 col-6"><div class="v-input v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"><div class="v-input__control"><div role="button" aria-haspopup="listbox" aria-expanded="false" aria-owns="list-1124646035" class="v-input__slot"><div class="v-select__slot"><label for="input-1124646035" class="v-label v-label--active theme--light" style="left:0px;right:auto;position:absolute;">Rows per page</label><div class="v-select__selections"><div class="v-select__selection v-select__selection--comma">15</div><input id="input-1124646035" readonly="readonly" type="text" aria-readonly="false" autocomplete="off"></div><div class="v-input__append-inner"><div class="v-input__icon v-input__icon--append"><i aria-hidden="true" class="v-icon notranslate mdi mdi-menu-down theme--light"></i></div></div><input type="hidden" value="15"></div><div class="v-menu"><!----></div></div><div class="v-text-field__details"><div class="v-messages theme--light"><div class="v-messages__wrapper"></div></div></div></div></div></div></div> <div class="row mt-2"><div class="col col-12"><h2 class="display-1">Related Threads:</h2></div> <div class="col col-12"><div class="mx-auto v-card v-sheet theme--light"><div role="list" class="v-list v-sheet theme--light v-list--two-line"><!----> <a href="/thread/what-is-the-difference-between-a-bit-wise-or" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">What is the difference between a bit-wise OR operator and a logical OR operator in C++?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/what-is-the-difference-between-a-bit-wise-and" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">What is the difference between a bit-wise AND operator and a logical AND operator in C++?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/what-is-the-difference-between-a-bit-wise-xor" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">What is the difference between a bit-wise XOR operator and a logical XOR operator in C++?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/how-to-define-operator-in-pascal-1" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to define operator in pascal?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/what-is-operator-overloading-in-c" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">What is operator overloading in C++?</div></div></a></div></div></div></div></div></div></div></div> <div pages="" class="footer" data-v-343c4637><!----> <footer class="v-footer footer mt-4 v-sheet theme--light" data-v-343c4637><div class="flex xs12 sm12 md6 lg4" data-v-343c4637><h4 class="title text-center" data-v-343c4637>
Follow us
</h4> <div class="social-section" data-v-343c4637><ul class="text-center pr-6" data-v-343c4637><li data-v-343c4637><a href="https://www.facebook.com/groups/devhubby" rel="nofollow" target="_blank" class="transparent--text btn-floating btn-tw waves-effect waves-light" data-v-343c4637><i aria-hidden="true" class="v-icon notranslate blue--text text--darken-4 mdi mdi-facebook theme--light" style="font-size:36px;" data-v-343c4637></i></a></li> <li data-v-343c4637><a href="https://twitter.com/devhubbycom" rel="nofollow" target="_blank" class="transparent--text btn-floating btn-tw waves-effect waves-light" data-v-343c4637><i aria-hidden="true" class="v-icon notranslate blue--text text--lighten-2 mdi mdi-twitter theme--light" style="font-size:36px;" data-v-343c4637></i></a></li> <!----> <!----> <li data-v-343c4637><a href="https://www.linkedin.com/groups/14086432/" rel="nofollow" target="_blank" class="transparent--text btn-floating btn-linkedin waves-effect waves-light" data-v-343c4637><i aria-hidden="true" class="v-icon notranslate blue--text text--darken-3 mdi mdi-linkedin theme--light" style="font-size:36px;" data-v-343c4637></i></a></li> <li data-v-343c4637><a href="https://www.instagram.com/dev_hubby/" rel="nofollow" target="_blank" class="transparent--text btn-floating btn-instagram waves-effect waves-light" data-v-343c4637><i aria-hidden="true" class="v-icon notranslate red--text text--darken-3 mdi mdi-instagram theme--light" style="font-size:36px;" data-v-343c4637></i></a></li></ul></div></div> <!----> <div class="flex xs12 sm12 md6 lg4" data-v-343c4637><div class="about-section white-text mx-auto" data-v-343c4637><h4 class="title text-center" data-v-343c4637>About us</h4> <ul class="text-center pr-6" data-v-343c4637><li data-v-343c4637><a href="/contact" rel="nofollow" data-v-343c4637>Contact us</a></li></ul></div></div> <div class="flex text-center mt-2 xs12" data-v-343c4637><span data-v-343c4637>© 2023 Copyright: devhubby.com
</span> <p class="mb-0" data-v-343c4637>
This Site is Created By
<a href="https://mywebforum.com" target="_blank" data-v-343c4637>mywebforum.com</a></p> <p data-v-343c4637>
Get Your Own
<a href="https://mywebforum.com" target="_blank" data-v-343c4637>Questions & Answers platform</a></p></div></footer> <!----> <!----></div> <!----> <div class="js-scripts"></div></div></div></div></div><script>window.__NUXT__=(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX,aY,aZ,a_,a$,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk){ao.id=34527;ao.name=t;ao.messages=2668;ao.threads=2567;ao.meta_title=t;ao.meta_description=t;ao.children=e;ao.is_public=b;ao.last_post={id:146414,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Ejenifer\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo reset user passwords using the WordPress Rest API, you can follow the following steps:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EFirst, you need to authenticate as a user with administrative privileges. You can use a plugin like JWT Authentication for WP-API to enable JSON Web Tokens (JWT) authentication.\u003C\u002Fli\u003E\u003Cli\u003ENext, you need to make a POST request to the \u002Fwp\u002Fv2\u002Fusers\u002F{user_id}\u002Flost-password endpoint, where {user_id} is the ID of the user whose password you want to reset. In the body of the request, you need to provide the user's email address.\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EExample request:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-vyfd19l\" language=\"bash\"\u003EPOST \u002Fwp\u002Fv2\u002Fusers\u002F123\u002Flost-password HTTP\u002F1.1\nContent-Type: application\u002Fjson\n\n{\n "user_email": "johndoe@example.com"\n}\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EWordPress will send an email to the user with instructions on how to reset their password.\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ENote that this endpoint is only available for users with administrative privileges, and it requires the \u003Ccode\u003Eedit_users\u003C\u002Fcode\u003E capability. Additionally, the \u003Ccode\u003Eusers\u003C\u002Fcode\u003E resource must be enabled in the WordPress REST API.\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"dorothea_mohr",user_active:a,created:"2023-03-21T19:34:36Z"};ao.order=a;ao.description=t;ao.slug="php";ap.id=34528;ap.name=u;ap.messages=2368;ap.threads=2342;ap.meta_title=u;ap.meta_description=u;ap.children=e;ap.is_public=b;ap.last_post={id:146400,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Efaustino.sanford\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Vue 3, you can fetch data using the \u003Ccode\u003Efetch\u003C\u002Fcode\u003E function, which is built into JavaScript. Here's an example:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-092fx1p\" language=\"php-template\"\u003E<template>\n <div>\n <ul>\n <li v-for="post in posts" :key="post.id">{{ post.title }}<\u002Fli>\n <\u002Ful>\n <\u002Fdiv>\n<\u002Ftemplate>\n\n<script>\nexport default {\n name: 'MyComponent',\n data() {\n return {\n posts: []\n }\n },\n created() {\n fetch('https:\u002F\u002Fjsonplaceholder.typicode.com\u002Fposts')\n .then(response => response.json())\n .then(data => this.posts = data)\n }\n}\n<\u002Fscript>\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn this example, we use the \u003Ccode\u003Efetch\u003C\u002Fcode\u003E function to retrieve a list of blog posts from the JSONPlaceholder API. We store the posts in the component's \u003Ccode\u003Edata\u003C\u002Fcode\u003E object, and then render them using a \u003Ccode\u003Ev-for\u003C\u002Fcode\u003E directive.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ENote that the \u003Ccode\u003Efetch\u003C\u002Fcode\u003E function returns a Promise, so we need to use \u003Ccode\u003E.then()\u003C\u002Fcode\u003E to handle the response. In this case, we convert the response to JSON using the \u003Ccode\u003Ejson()\u003C\u002Fcode\u003E method, and then assign the resulting data to the \u003Ccode\u003Eposts\u003C\u002Fcode\u003E array.\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"kyra.strosin",user_active:a,created:"2023-03-21T17:24:21Z"};ap.order=a;ap.description=u;ap.slug="javascript";aq.id=34529;aq.name=v;aq.messages=785;aq.threads=828;aq.meta_title=v;aq.meta_description=v;aq.children=e;aq.is_public=b;aq.last_post={id:113218,message:"\u003Cp\u003EWhat is a unique key in Oracle?\u003C\u002Fp\u003E",is_moderated:c,username:"lina.brakus",user_active:a,created:"2023-03-21T13:43:57Z"};aq.order=a;aq.description=v;aq.slug="sql";ar.id=34530;ar.name=w;ar.messages=585;ar.threads=531;ar.meta_title=w;ar.meta_description=w;ar.children=e;ar.is_public=b;ar.last_post={id:146424,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Etavares.willms\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo save data to Redis from a MySQL database in the Golang Beego framework, you can follow these steps:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EImport the necessary packages:import (\n "github.com\u002Fgomodule\u002Fredigo\u002Fredis"\n "github.com\u002Fastaxie\u002Fbeego\u002Form"\n _ "github.com\u002Fgo-sql-driver\u002Fmysql"\n)\n\u003C\u002Fli\u003E\u003Cli\u003EInitialize Redis pool and MySQL ORM:func init() {\n \u002F\u002F Redis configuration\n redisHost := "localhost:6379"\n redisPool := &redis.Pool{\n MaxIdle: 80,\n MaxActive: 12000,\n Dial: func() (redis.Conn, error) {\n c, err := redis.Dial("tcp", redisHost)\n if err != nil {\n panic(err.Error())\n }\n return c, err\n },\n }\n orm.RegisterDataBase("default", "mysql", "user:password@tcp(localhost:3306)\u002Fdatabase?charset=utf8")\n orm.RegisterModel(new(MyModel))\n}\nIn the above code, we have initialized a Redis pool and a MySQL ORM. The redisHost variable stores the address of the Redis server. The redis.Pool creates a connection pool for Redis with the Dial method. We have also registered a MySQL database with the ORM and registered the model MyModel.\u003C\u002Fli\u003E\u003Cli\u003EFetch data from MySQL and save it to Redis:o := orm.NewOrm()\nvar models []MyModel\n_, err := o.QueryTable("my_model").All(&models)\nif err != nil {\n panic(err.Error())\n}\nfor _, model := range models {\n redisConn := redisPool.Get()\n _, err := redisConn.Do("SET", model.Key, model.Value)\n if err != nil {\n panic(err.Error())\n }\n}\nIn the above code, we have fetched all the models from the my_model table in MySQL using the ORM. We have then looped over the models and saved each model to Redis using the redisConn.Do method.\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThat's it! The above code should help you save data to Redis from a MySQL database in the Golang Beego framework.\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"jovany",user_active:a,created:"2023-03-21T20:44:37Z"};ar.order=a;ar.description=w;ar.slug="golang";as.id=34531;as.name=_;as.messages=908;as.threads=751;as.meta_title=_;as.meta_description=_;as.children=e;as.is_public=b;as.last_post={id:113288,message:"\u003Cp\u003EWhat is the role of the <progress> tag in HTML, and how is it used?\u003C\u002Fp\u003E",is_moderated:c,username:"ola.stoltenberg",user_active:a,created:"2023-03-21T20:14:49Z"};as.order=a;as.description="HTML\u002FCSS\n";as.slug="html-css";at.id=34532;at.name=x;at.messages=180;at.threads=190;at.meta_title=x;at.meta_description=x;at.children=e;at.is_public=b;at.last_post={id:113248,message:"\u003Cp\u003EWhat is the purpose of the $LOAD_PATH variable in Ruby?\u003C\u002Fp\u003E",is_moderated:c,username:"hadley",user_active:a,created:"2023-03-21T16:31:43Z"};at.order=a;at.description=x;at.slug="ruby";au.id=34533;au.name=y;au.messages=1231;au.threads=1086;au.meta_title=y;au.meta_description=y;au.children=e;au.is_public=b;au.last_post={id:146416,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Eeleanore_wisozk\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo write a simple spider in Python, you can use the built-in \u003Ccode\u003Eurllib\u003C\u002Fcode\u003E and \u003Ccode\u003EBeautifulSoup\u003C\u002Fcode\u003E libraries. Here's an example code that you can use as a starting point:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-x0jkugw\" language=\"python\"\u003Efrom urllib.request import urlopen\nfrom bs4 import BeautifulSoup\n\nurl = "https:\u002F\u002Fexample.com"\nhtml_page = urlopen(url)\nsoup = BeautifulSoup(html_page)\n\nlinks = []\nfor link in soup.findAll('a'):\n links.append(link.get('href'))\n\nprint(links)\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThis code will fetch the HTML content of the website specified by the \u003Ccode\u003Eurl\u003C\u002Fcode\u003E variable, and then use BeautifulSoup to parse the HTML and extract all the links. The links are then stored in a list called \u003Ccode\u003Elinks\u003C\u002Fcode\u003E, which is printed out at the end.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ENote that this is a very basic example, and real-world spiders will be much more complex, involving things like URL filtering, crawling policies, and more. Additionally, it's important to be respectful of the websites you're scraping, and to follow their terms of service and robots.txt files.\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"samara",user_active:a,created:"2023-03-21T20:02:36Z"};au.order=a;au.description=y;au.slug="python";av.id=34534;av.name=z;av.messages=935;av.threads=826;av.meta_title=z;av.meta_description=z;av.children=e;av.is_public=b;av.last_post={id:146275,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Ehulda.flatley\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Java, you can access environment variables using the \u003Ccode\u003ESystem.getenv()\u003C\u002Fcode\u003E method. This method returns a \u003Ccode\u003EMap\u003C\u002Fcode\u003E object containing all the environment variables.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo get the value of a specific environment variable, you can use the \u003Ccode\u003Eget()\u003C\u002Fcode\u003E method of the \u003Ccode\u003EMap\u003C\u002Fcode\u003E object and provide the name of the environment variable as the argument. Here's an example:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-jyk13p3\" language=\"java\"\u003EString myVar = System.getenv("MY_ENV_VARIABLE");\nif (myVar != null) {\n System.out.println("The value of MY_ENV_VARIABLE is: " + myVar);\n} else {\n System.out.println("MY_ENV_VARIABLE is not defined in the environment.");\n}\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn this example, the \u003Ccode\u003ESystem.getenv()\u003C\u002Fcode\u003E method is used to retrieve the value of the environment variable named "MY_ENV_VARIABLE". If the variable is defined in the environment, its value is printed to the console. If it is not defined, a message indicating that fact is printed instead.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ENote that the \u003Ccode\u003Egetenv()\u003C\u002Fcode\u003E method is case-sensitive. So if the name of the environment variable is "MY_ENV_VARIABLE" in uppercase, it must be specified as such in the argument to \u003Ccode\u003Egetenv()\u003C\u002Fcode\u003E.\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"devin",user_active:a,created:"2023-03-21T04:44:18Z"};av.order=a;av.description=z;av.slug="java";aw.id=V;aw.name=i;aw.messages=275;aw.threads=261;aw.meta_title=i;aw.meta_description=i;aw.children=e;aw.is_public=b;aw.last_post={id:146300,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Ereynold.dach\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn C++, a copy of an object can be made using either a shallow copy or a deep copy.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EA shallow copy creates a new object that shares data with the original object. That is, the new object simply points to the same memory locations as the original object. Any changes made to the data in the new object will also be reflected in the original object. Shallow copying is usually implemented using pointers or references.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EOn the other hand, a deep copy creates a new object with its own copy of the data. This means that any changes made to the data in the new object will not affect the original object. Deep copying is usually implemented by copying the data of the original object to a new location in memory and creating a new object that points to this new location.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere's an example to illustrate the difference between shallow copy and deep copy:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-8ah6r4p\" language=\"c++\"\u003E#include <iostream>\n#include <cstring>\n\nclass Person {\npublic:\n Person(const char* n) {\n name = new char[strlen(n) + 1];\n strcpy(name, n);\n }\n Person(const Person& p) { \u002F\u002F copy constructor\n name = new char[strlen(p.name) + 1];\n strcpy(name, p.name);\n }\n ~Person() {\n delete[] name;\n }\n void setName(const char* n) {\n delete[] name;\n name = new char[strlen(n) + 1];\n strcpy(name, n);\n }\n const char* getName() const {\n return name;\n }\nprivate:\n char* name;\n};\n\nint main() {\n Person p1("John");\n Person p2 = p1; \u002F\u002F shallow copy\n p2.setName("Mike");\n\n std::cout << p1.getName() << std::endl; \u002F\u002F prints "Mike" because p2's name is pointing to the same memory location as p1's name\n std::cout << p2.getName() << std::endl; \u002F\u002F prints "Mike"\n\n Person p3("Alice");\n Person p4 = Person(p3); \u002F\u002F deep copy\n p4.setName("Bob");\n\n std::cout << p3.getName() << std::endl; \u002F\u002F prints "Alice" because p4's name is a new copy of p3's name\n std::cout << p4.getName() << std::endl; \u002F\u002F prints "Bob"\n\n return 0;\n}\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn this example, the \u003Ccode\u003EPerson\u003C\u002Fcode\u003E class has a \u003Ccode\u003Echar*\u003C\u002Fcode\u003E member variable \u003Ccode\u003Ename\u003C\u002Fcode\u003E that holds the person's name. The \u003Ccode\u003EPerson\u003C\u002Fcode\u003E class also has a copy constructor that performs a deep copy of the \u003Ccode\u003Ename\u003C\u002Fcode\u003E member variable.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn the \u003Ccode\u003Emain\u003C\u002Fcode\u003E function, two instances of \u003Ccode\u003EPerson\u003C\u002Fcode\u003E are created: \u003Ccode\u003Ep1\u003C\u002Fcode\u003E and \u003Ccode\u003Ep3\u003C\u002Fcode\u003E. Then, a shallow copy of \u003Ccode\u003Ep1\u003C\u002Fcode\u003E is made into \u003Ccode\u003Ep2\u003C\u002Fcode\u003E, and a deep copy of \u003Ccode\u003Ep3\u003C\u002Fcode\u003E is made into \u003Ccode\u003Ep4\u003C\u002Fcode\u003E.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EAfter that, the name of \u003Ccode\u003Ep2\u003C\u002Fcode\u003E is changed to "Mike", and the name of \u003Ccode\u003Ep4\u003C\u002Fcode\u003E is changed to "Bob".\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EFinally, the names of all four instances of \u003Ccode\u003EPerson\u003C\u002Fcode\u003E are printed. As expected, the names of \u003Ccode\u003Ep1\u003C\u002Fcode\u003E and \u003Ccode\u003Ep2\u003C\u002Fcode\u003E are both "Mike", because \u003Ccode\u003Ep2\u003C\u002Fcode\u003E is a shallow copy of \u003Ccode\u003Ep1\u003C\u002Fcode\u003E. The names of \u003Ccode\u003Ep3\u003C\u002Fcode\u003E and \u003Ccode\u003Ep4\u003C\u002Fcode\u003E are different, because \u003Ccode\u003Ep4\u003C\u002Fcode\u003E is a deep copy of \u003Ccode\u003Ep3\u003C\u002Fcode\u003E.\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"jackie",user_active:a,created:"2023-03-21T06:24:08Z"};aw.order=a;aw.description=ai;aw.slug=aj;ax.id=34536;ax.name=A;ax.messages=186;ax.threads=202;ax.meta_title=A;ax.meta_description=A;ax.children=e;ax.is_public=b;ax.last_post={id:145273,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Enicola\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003E\u003Ccode\u003EcompactMap\u003C\u002Fcode\u003E is a higher-order function in Swift that allows you to transform the elements of a sequence (such as an array) while also removing any resulting \u003Ccode\u003Enil\u003C\u002Fcode\u003E values. It combines the functionality of \u003Ccode\u003Emap\u003C\u002Fcode\u003E and \u003Ccode\u003Efilter\u003C\u002Fcode\u003E in a single operation.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThe signature of the \u003Ccode\u003EcompactMap\u003C\u002Fcode\u003E function is:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-7qnbvta\" language=\"swift\"\u003Efunc compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult]\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere, \u003Ccode\u003Etransform\u003C\u002Fcode\u003E is a closure that takes an element of the sequence and returns an optional value of the desired result type. The \u003Ccode\u003EcompactMap\u003C\u002Fcode\u003E function applies this closure to each element of the sequence and returns an array of non-\u003Ccode\u003Enil\u003C\u002Fcode\u003E results.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere's an example of how \u003Ccode\u003EcompactMap\u003C\u002Fcode\u003E can be used:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-1i77bw4\" language=\"swift\"\u003Elet strings = ["1", "2", "three", "4", "five"]\nlet numbers = strings.compactMap { Int($0) }\n\nprint(numbers) \u002F\u002F Output: [1, 2, 4]\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn this example, the \u003Ccode\u003EcompactMap\u003C\u002Fcode\u003E function is used to transform the array of strings into an array of integers by using the \u003Ccode\u003EInt()\u003C\u002Fcode\u003E initializer. The elements of the resulting array are only those that could be successfully converted to integers (i.e., "three" and "five" are ignored because they couldn't be converted to integers).\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:"kellie.bechtelar",user_active:a,created:"2023-03-18T07:55:27Z"};ax.order=a;ax.description=A;ax.slug="swift";ay.id=36177;ay.name=$;ay.messages=4256;ay.threads=4699;ay.meta_title=az;ay.meta_description=az;ay.children=e;ay.is_public=b;ay.last_post={id:146420,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Ealex.cummings\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Perl, classes are defined using the \u003Ccode\u003Epackage\u003C\u002Fcode\u003E keyword. Here's an example of defining a class named \u003Ccode\u003EPerson\u003C\u002Fcode\u003E:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-8v5w5dd\" language=\"perl\"\u003Epackage Person;\n\nsub new {\n my $class = shift;\n my $self = {\n _firstName => shift,\n _lastName => shift,\n _ssn => shift,\n };\n bless $self, $class;\n return $self;\n}\n\nsub setFirstName {\n my ($self, $firstName) = @_;\n $self->{_firstName} = $firstName if defined($firstName);\n return $self->{_firstName};\n}\n\nsub getFirstName {\n my ($self) = @_;\n return $self->{_firstName};\n}\n\nsub setLastName {\n my ($self, $lastName) = @_;\n $self->{_lastName} = $lastName if defined($lastName);\n return $self->{_lastName};\n}\n\nsub getLastName {\n my ($self) = @_;\n return $self->{_lastName};\n}\n\nsub setSSN {\n my ($self, $ssn) = @_;\n $self->{_ssn} = $ssn if defined($ssn);\n return $self->{_ssn};\n}\n\nsub getSSN {\n my ($self) = @_;\n return $self->{_ssn};\n}\n\n1;\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn this example, the \u003Ccode\u003Enew\u003C\u002Fcode\u003E method is used to create a new instance of the \u003Ccode\u003EPerson\u003C\u002Fcode\u003E class. The \u003Ccode\u003E_firstName\u003C\u002Fcode\u003E, \u003Ccode\u003E_lastName\u003C\u002Fcode\u003E, and \u003Ccode\u003E_ssn\u003C\u002Fcode\u003E properties are stored in the \u003Ccode\u003E$self\u003C\u002Fcode\u003E hashref. The \u003Ccode\u003Ebless\u003C\u002Fcode\u003E function is used to associate the \u003Ccode\u003E$self\u003C\u002Fcode\u003E hashref with the \u003Ccode\u003EPerson\u003C\u002Fcode\u003E class, and the \u003Ccode\u003E$self\u003C\u002Fcode\u003E hashref is then returned.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThe \u003Ccode\u003EsetFirstName\u003C\u002Fcode\u003E, \u003Ccode\u003EgetFirstName\u003C\u002Fcode\u003E, \u003Ccode\u003EsetLastName\u003C\u002Fcode\u003E, \u003Ccode\u003EgetLastName\u003C\u002Fcode\u003E, \u003Ccode\u003EsetSSN\u003C\u002Fcode\u003E, and \u003Ccode\u003EgetSSN\u003C\u002Fcode\u003E methods are used to set and get the values of the \u003Ccode\u003E_firstName\u003C\u002Fcode\u003E, \u003Ccode\u003E_lastName\u003C\u002Fcode\u003E, and \u003Ccode\u003E_ssn\u003C\u002Fcode\u003E properties.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo use the \u003Ccode\u003EPerson\u003C\u002Fcode\u003E class, you can create an instance of it using the \u003Ccode\u003Enew\u003C\u002Fcode\u003E method, and then call the methods on that instance:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-qelffaa\" language=\"perl\"\u003Euse Person;\n\nmy $person = Person->new("John", "Doe", "123-45-6789");\nprint "First Name: ", $person->getFirstName(), "\n";\nprint "Last Name: ", $person->getLastName(), "\n";\nprint "SSN: ", $person->getSSN(), "\n";\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThis would output:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-nzk3yni\" language=\"yaml\"\u003EFirst Name: John\nLast Name: Doe\nSSN: 123-45-6789\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003E\n\u003C\u002Fp\u003E",is_moderated:c,username:al,user_active:a,created:"2023-03-21T20:39:59Z"};ay.order=a;ay.description=$;ay.slug="other";return {layout:ah,data:[{sanitizedMessage:h,thread:{id:92424,name:h,message:"\u003Cp\u003EHow to overload the istream operator in C++?\u003C\u002Fp\u003E",formatted_message:d,hash_tags:"[\"c++\",\"cplusplus\",\"istream\"]",tags:["c++","cplusplus","istream","mywebforum"],category:{id:V,name:i,messages:a,threads:a,meta_title:d,meta_description:d,children:e,is_public:b,order:a,description:ai,slug:aj},category_id:V,slug:ak,likes:31,dislikes:a,is_closed:b,is_pinned:b,is_moderated:c,username:"edison.lang",user_active:f,role:W,user_avatar:"avatar\u002Fedison.lang\u002Fprikolnie-aviki-f-it-ru200.gif",created:"2022-12-30T23:24:02Z"},relatedThreads:[{id:111636,title:d,text:"What is the difference between a bit-wise OR operator and a logical OR operator in C++?",avatar:"avatar\u002Fchadrick_stanton\u002F115-2.jpg",role:d,slug:"what-is-the-difference-between-a-bit-wise-or",username:al,created:d},{id:111535,title:d,text:"What is the difference between a bit-wise AND operator and a logical AND operator in C++?",avatar:"avatar\u002Ffreddy\u002F137-2 (1).jpg",role:d,slug:"what-is-the-difference-between-a-bit-wise-and",username:"freddy",created:d},{id:111741,title:d,text:"What is the difference between a bit-wise XOR operator and a logical XOR operator in C++?",avatar:"avatar\u002Fjakob\u002F2765.jpg",role:d,slug:"what-is-the-difference-between-a-bit-wise-xor",username:"jakob",created:d},{id:106684,title:d,text:"How to define operator in pascal?",avatar:"avatar\u002Faliyah.nikolaus\u002Fpozdravlenie-f-it-ru39.jpg",role:d,slug:"how-to-define-operator-in-pascal-1",username:"aliyah.nikolaus",created:d},{id:109937,title:d,text:"What is operator overloading in C++?",avatar:"avatar\u002Fyasmeen\u002F3003.jpg",role:d,slug:"what-is-operator-overloading-in-c",username:"yasmeen",created:d}],socialSettings:{id:1876,size:a,facebook:c,vk:b,ok:b,linkedin:c,telegram:c,whatsapp:c,pocket:b,twitter:c,active:c},page:f,totals:f,postsTotal:f,posts:[{id:125454,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Eedison.lang\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo overload the \u003Ccode\u003Eistream\u003C\u002Fcode\u003E operator in C++, you need to define a global function with the following signature:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-44xog23\" language=\"python\"\u003Eistream& operator>>(istream& is, Type& obj)\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere, \u003Ccode\u003EType\u003C\u002Fcode\u003E is the type of the object you want to read from the input stream, and \u003Ccode\u003Eobj\u003C\u002Fcode\u003E is a reference to this object. The function should read the data for the object from the input stream \u003Ccode\u003Eis\u003C\u002Fcode\u003E, and return a reference to the stream.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere's an example of how you could overload the \u003Ccode\u003Eistream\u003C\u002Fcode\u003E operator for a simple \u003Ccode\u003EPoint\u003C\u002Fcode\u003E class:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-6jpygfk\" language=\"kotlin\"\u003Eclass Point {\n public:\n int x, y;\n};\n\nistream& operator>>(istream& is, Point& p) {\n is >> p.x >> p.y;\n return is;\n}\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EYou can then use the \u003Ccode\u003E>>\u003C\u002Fcode\u003E operator to read a \u003Ccode\u003EPoint\u003C\u002Fcode\u003E object from an input stream:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-a37j1sq\" language=\"css\"\u003EPoint p;\ncin >> p;\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E",formatted_message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Eedison.lang\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo overload the \u003Ccode\u003Eistream\u003C\u002Fcode\u003E operator in C++, you need to define a global function with the following signature:\u003C\u002Fp\u003E\u003Cdiv style=\"color:#f8f8f2;background-color:#272822;\"\u003E\n\u003Ctable style=\"border-spacing:0;padding:0;margin:0;border:0;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E1\n\u003C\u002Fspan\u003E\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\n\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003Eistream\u003Cspan style=\"color:#f92672\"\u003E&\u003C\u002Fspan\u003E operator\u003Cspan style=\"color:#f92672\"\u003E>>\u003C\u002Fspan\u003E(istream\u003Cspan style=\"color:#f92672\"\u003E&\u003C\u002Fspan\u003E \u003Cspan style=\"color:#f92672\"\u003Eis\u003C\u002Fspan\u003E, Type\u003Cspan style=\"color:#f92672\"\u003E&\u003C\u002Fspan\u003E obj)\n\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E\u003C\u002Ftbody\u003E\u003C\u002Ftable\u003E\n\u003C\u002Fdiv\u003E\n\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere, \u003Ccode\u003EType\u003C\u002Fcode\u003E is the type of the object you want to read from the input stream, and \u003Ccode\u003Eobj\u003C\u002Fcode\u003E is a reference to this object. The function should read the data for the object from the input stream \u003Ccode\u003Eis\u003C\u002Fcode\u003E, and return a reference to the stream.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere's an example of how you could overload the \u003Ccode\u003Eistream\u003C\u002Fcode\u003E operator for a simple \u003Ccode\u003EPoint\u003C\u002Fcode\u003E class:\u003C\u002Fp\u003E\u003Cdiv style=\"color:#f8f8f2;background-color:#272822;\"\u003E\n\u003Ctable style=\"border-spacing:0;padding:0;margin:0;border:0;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E1\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E2\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E3\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E4\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E5\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E6\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E7\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E8\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E9\n\u003C\u002Fspan\u003E\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\n\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"color:#66d9ef\"\u003Eclass\u003C\u002Fspan\u003E \u003Cspan style=\"color:#a6e22e\"\u003EPoint\u003C\u002Fspan\u003E {\n \u003Cspan style=\"color:#66d9ef\"\u003Epublic\u003C\u002Fspan\u003E:\n int x, y;\n};\n\nistream& \u003Cspan style=\"color:#66d9ef\"\u003Eoperator\u003C\u002Fspan\u003E>>(istream& \u003Cspan style=\"color:#66d9ef\"\u003Eis\u003C\u002Fspan\u003E, Point& p) {\n \u003Cspan style=\"color:#66d9ef\"\u003Eis\u003C\u002Fspan\u003E >> p.x >> p.y;\n \u003Cspan style=\"color:#66d9ef\"\u003Ereturn\u003C\u002Fspan\u003E \u003Cspan style=\"color:#66d9ef\"\u003Eis\u003C\u002Fspan\u003E;\n}\n\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E\u003C\u002Ftbody\u003E\u003C\u002Ftable\u003E\n\u003C\u002Fdiv\u003E\n\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003EYou can then use the \u003Ccode\u003E>>\u003C\u002Fcode\u003E operator to read a \u003Ccode\u003EPoint\u003C\u002Fcode\u003E object from an input stream:\u003C\u002Fp\u003E\u003Cdiv style=\"color:#f8f8f2;background-color:#272822;\"\u003E\n\u003Ctable style=\"border-spacing:0;padding:0;margin:0;border:0;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E1\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E2\n\u003C\u002Fspan\u003E\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\n\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"color:#f92672\"\u003EPoint\u003C\u002Fspan\u003E \u003Cspan style=\"color:#f92672\"\u003Ep\u003C\u002Fspan\u003E\u003Cspan style=\"color:#f92672\"\u003E;\u003C\u002Fspan\u003E\n\u003Cspan style=\"color:#f92672\"\u003Ecin\u003C\u002Fspan\u003E \u003Cspan style=\"color:#f92672\"\u003E>>\u003C\u002Fspan\u003E \u003Cspan style=\"color:#f92672\"\u003Ep\u003C\u002Fspan\u003E\u003Cspan style=\"color:#f92672\"\u003E;\u003C\u002Fspan\u003E\n\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E\u003C\u002Ftbody\u003E\u003C\u002Ftable\u003E\n\u003C\u002Fdiv\u003E\n\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E",is_moderated:c,likes:a,dislikes:a,thread_title:h,thread_slug:ak,username:"nicola",user_avatar:"avatar\u002Fnicola\u002F16-2.jpg",user_active:f,role:W,created:"2023-01-01T20:30:07Z"}]}],fetch:{},error:e,state:{loading:a,settings:{id:8542,name:j,domain:"devhubby.com",port:80,plan:f,footer_code:"\u003C!-- Global site tag (gtag.js) - Google Analytics --\u003E\n\u003Cscript async src=\"https:\u002F\u002Fwww.googletagmanager.com\u002Fgtag\u002Fjs?id=G-5LBS05BL1D\"\u003E\u003C\u002Fscript\u003E\n\u003Cscript\u003E\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'G-5LBS05BL1D');\n\u003C\u002Fscript\u003E\n\n\u003Cscript async src=\"https:\u002F\u002Fpagead2.googlesyndication.com\u002Fpagead\u002Fjs\u002Fadsbygoogle.js?client=ca-pub-4833888168110763\"\n crossorigin=\"anonymous\"\u003E\u003C\u002Fscript\u003E",robots_txt:"User-agent: *\nDisallow: \u002Fsearch\nDisallow: \u002Fadmin\nDisallow: \u002Fprofile\nDisallow: \u002Flogin\nDisallow: \u002Fregister\n\nSitemap: https:\u002F\u002Fdevhubby.com\u002Fsitemap.xml",locale:"en",add_source:a,allow_likes:f,add_watermark:f,add_watermark_position:3,hash:"c64c6733-bfad-4db8-b387-18207476d4d5",default_role:am,allow_hash_tags:f,add_source_text:d,scrollable_pagination:a,meta_title:j,blog_active:b,favicon_png:"\u002Fpublic\u002Ffavicon.png",favicon_ico:d,custom_css:".amzn-native-container {\n margin: 0 auto;\n}\n \n.forum-text.ql-viewer div{\n border-radius: 5px;\n}",meta_description:j,description:j,logo:"logo\u002Fdev.png",is_related_thread:f,related_thread:an,notify_on_moderation:c,activation:"email",facebook:"https:\u002F\u002Fwww.facebook.com\u002Fgroups\u002Fdevhubby",linkedin:"https:\u002F\u002Fwww.linkedin.com\u002Fgroups\u002F14086432\u002F",twitter:"https:\u002F\u002Ftwitter.com\u002Fdevhubbycom",instagram:"https:\u002F\u002Fwww.instagram.com\u002Fdev_hubby\u002F"},layout:{id:8650,is_dark:a,name:ah,background_full:b,code_theme:"monokai",page_transition:"fade",background:d,background_color:d,text_color:d,text_font_family:"Roboto",primary_color:X,secondary_color:s,accent_color:s,info_color:s,success_color:s,error_color:X,warning_color:X},social_providers:{google:c,facebook:c,github:c},menus:[],showAd:b,darkMode:b,isFooterVisible:b,cdnUrl:"https:\u002F\u002Fforum-static.fra1.cdn.digitaloceanspaces.com",metaOg:{title:h,url:"https:\u002F\u002Fdevhubby.com\u002Fthread\u002Fhow-to-overload-the-istream-operator-in-c",type:d,image:d,description:h,site_name:j},itemsPerPage:15,ad:[{id:541,name:"left under menu",css_selector:d,position:11,one_time:b,show_every:a,code:"\u003Cscript async src=\"https:\u002F\u002Fpagead2.googlesyndication.com\u002Fpagead\u002Fjs\u002Fadsbygoogle.js?client=ca-pub-4833888168110763\"\n crossorigin=\"anonymous\"\u003E\u003C\u002Fscript\u003E\n\u003C!-- devhubby --\u003E\n\u003Cins class=\"adsbygoogle\"\n style=\"display:block\"\n data-ad-client=\"ca-pub-4833888168110763\"\n data-ad-slot=\"2818766036\"\n data-ad-format=\"auto\"\n data-full-width-responsive=\"true\"\u003E\u003C\u002Fins\u003E\n\u003Cscript\u003E\n (adsbygoogle = window.adsbygoogle || []).push({});\n\u003C\u002Fscript\u003E",active:c,free:b},{id:542,name:"in list",css_selector:d,position:7,one_time:c,show_every:an,code:"\u003Cdiv id=\"amzn-assoc-ad-f9acc64d-6b3a-4e7d-9746-a312b462ed34\"\u003E\u003C\u002Fdiv\u003E\u003Cscript async src=\"\u002F\u002Fz-na.amazon-adsystem.com\u002Fwidgets\u002Fonejs?MarketPlace=US&adInstanceId=f9acc64d-6b3a-4e7d-9746-a312b462ed34\"\u003E\u003C\u002Fscript\u003E",active:c,free:b},{id:555,name:"post",css_selector:d,position:8,one_time:c,show_every:f,code:"\u003Cscript async src=\"https:\u002F\u002Fpagead2.googlesyndication.com\u002Fpagead\u002Fjs\u002Fadsbygoogle.js?client=ca-pub-4833888168110763\"\n crossorigin=\"anonymous\"\u003E\u003C\u002Fscript\u003E\n\u003Cdiv style=\"max-width:750px; margin:0 auto\"\u003E\n\u003Cins class=\"adsbygoogle\"\n style=\"display:block\"\n data-ad-format=\"fluid\"\n data-ad-layout-key=\"-ed+6k-30-ac+ty\"\n data-ad-client=\"ca-pub-4833888168110763\"\n data-ad-slot=\"3505177655\"\u003E\u003C\u002Fins\u003E\n\u003C\u002Fdiv\u003E\n\u003Cscript\u003E\n (adsbygoogle = window.adsbygoogle || []).push({});\n\u003C\u002Fscript\u003E",active:c,free:b}],profileStats:{fetched:b,personalMessages:a},stats:{fetched:b,threads:a,posts:a},breadcrumbs:[{text:Y,disabled:b,href:Z},{text:i,disabled:b,href:"\u002Fforum\u002Fc-c"},{text:h,disabled:c}],categories:[ao,ap,aq,ar,as,at,au,av,aw,ax,ay],categoriesWithChildren:[ao,ap,aq,ar,as,at,au,av,aw,ax,ay],roles:[{code:am,name:W},{code:"ROLE_MODERATOR",name:aA},{code:"ROLE_ADMIN",name:"Administrator"}],i18n:{routeParams:{}},entities:{$name:aB,user:{$connection:aB,$name:"user",data:{}}},auth:{user:e,loggedIn:b,strategy:"local"}},serverRendered:c,routePath:"\u002Fthread\u002Fhow-to-overload-the-istream-operator-in-c",config:{_app:{basePath:Z,assetsPath:Z,cdnURL:"https:\u002F\u002Fforum-static.fra1.cdn.digitaloceanspaces.com\u002Fassets\u002F"}},__i18n:{langs:{en:{common:{common_badge_blog:"blog",common_badge_post:"forum",common_badge_page:"page",answers:"no answers | 1 answer | {count} answers",likes:"no likes | 1 like | {count} likes",dislikes:"no dislikes | 1 dislike | {count} dislikes",show_more:aC,show_less:"Show Less",max_tag_reached:"Max Count of Tags Reached",in_category:"in category: ",our_privacy:"See our Privacy Policy",count_best_answers:aD,search_ask_question:"Do you want to create a thread?",check_internet_connection:"You are offline! Check your internet connection.",by:"by",cookie_text:"This site uses cookies to ensure you get the best experience. By clicking \"Got it\" or continuing to browse the website, you are agreeing to our use of cookies.",got_it:"Got it",signature:aE,author_marked_as_best:aF,no_transition:"No Transition",mail_services:"Mail Services",free_files:"The current plan has a limit 10 files",user_not_active:"Deleted user",confirm_email_text:"We just sent an email to you with the confirmation code. Please put the confirmation code in field below.",main_top_ad:"Ad in all pages on the top",main_bottom_ad:"Ad in all pages on the bottom",blog_in_category_ad:"Ad in blog category",blog_post_top_ad:"Ad in blog post on the top",blog_post_bottom_ad:"Ad in blog post on the bottom",blog_in_post_ad:"Ad in blog post",forum_in_thread_ad:"Ad in forum thread",forum_in_post_ad:"Ad in forum post",sliding_ad:"Sliding Ad on all pages",page_ad:"Ad on the page",sidebar_under_menu:"Left sidebar under menu",site_is_not_ready:"You site is not ready yet",security_limit:"You can configure limit per IP to prevent any spam and bot messages. If not limit set it 0.",thanks_choosing_us:"Thank you for giving us the opportunity to serve you",register_site_first:"You need register your site first at",create_forum:"create a forum",create_forum_free:"free forum",create_forum_free_text:aG,create_qa_free_text:aG,create_qa_free:"Questions & Answers platform",support_text:"support forum",post_subject:aH,how_to_create_text:"If you have any question about our platform - you can easily ask us. We are always ready to help you by contact form or by our",subcategory:"Subcategories",category:aI,main_page:"Main Page",banned:"Banned User",no_banned:"Not Banned User",new_message:"New",not_read:"Not Read",spam:"Spam",trusted:aJ,no_trusted:"Common User",security_questions:"Registration Questions",security_questions_descr:"Registration Questions help you protect your system from bot. We will randomly show user question before registration and he can continue if answer right on this question.",nice_to_see_you:"Nice to see you again",records_not_found:"No records found",not_found:"There were no results for your search.",member_from:"Member from",last_seen:"Last seen",not_authorized:"Sign in to you account",account:"Account",last_message:" Last Reply ",from:" from ",thanks_confirming:"Thank you for using our service. Account successfully confirmed!",thanks_confirming_details:"You can use your credentials to login into system",mail_settings_valid:"Congratulations! Mail Settings verified successfully and ready to use",terms:"Terms & Conditions",privacy:aK,accept_terms:"I Agree to the Terms and Conditions",need_accept_terms:"You must agree to the Terms and Conditions in order to register",copyright_text:"This Site is Created By",security_messages:"Secure messages",na:"N\u002FA",active:aL,no_active:"Inactive",attention:"Attention!",count_topics:aM,need_moderation:"Approve message",no_data:"No data",no_files:"No files",no_records:"No records",no_messages:"No messages",count_messages:B,menu:k,search:C,action:"Action",pin_topic:"Pin topic",unpin_topic:"Unpin topic",existing_client:"Existing user? Sign In",close_topic:"Close topic",open_topic:"Open topic",rows_per_page:"Rows per page",top_menu:"Top menu",bottom_menu:"Bottom menu",waiting_approval:"Waiting approval",second:"Second",minute:"Minute",hour:"Hour",message:B,messages:B,topic_closed:"Topic closed",important_topic:"Important topic",threads:aN},animation:{default_fade:"Default Fade",fade_up:"Fade Up",fade_right:"Fade Right",fade_down:"Fade Down",fade_left:"Fade Left",rotate:"Rotate",rotate_down_left:"Rotate Down Left",rotate_down_right:"Rotate Down Right",rotate_up_left:"Rotate Up Left",rotate_up_right:"Rotate Up Right",slide_down:"Slide Down",slide_left:"Slide Left",slide_right:"Slide Right",slide_up:"Slide Up",flip:"Flip",flip_x:"Flip X",flip_y:"Flip Y",zoom:"Zoom",zoom_down:"Zoom Down",zoom_left:"Zoom Left",zoom_right:"Zoom Right",zoom_up:"Zoom Up",light_speed:"Light Speed",bounce:"Bounce",bounce_down:"Bounce Down",bounce_left:"Bounce Left",bounce_right:"Bounce Right",bounce_up:"Bounce Up"},tabs:{inbox_pm:"Inbox",sent_pm:"Sent",moderator_main:"Statistic",moderator_threads:aO,role_settings:D,hash_tags_settings:l,moderator_users:E,export_settings:m,moderator_posts:F,blog_settings:G,privacy_settings:H,badge_settings:I,ad_settings:J,file_settings:n,my_profile_stat:"My Statistics",main_settings:"General Settings",mail_settings:K,layout_settings:L,forum_settings:"Categories",member_settings:aP,social_providers:M,page_settings:N,menu_settings:"Menu Settings",social_settings:O,security_settings:P,profile:aQ,messages:B,redirect_settings:aa,topics:aM},modals:{delete_tag:"Are you sure you want to delete this hash tag?",delete_tag_confirm:"Please confirm that you want to delete this hash tag",delete_badge:"Are you sure you want to delete this badge?",delete_badge_confirm:"Please confirm that you want to delete this badge",new_pm:"Compose Message",delete_role:"Are you sure you want to delete this role?",delete_role_confirm:"Please confirm that you want to delete this role",delete_user:"Are you sure you want to delete this user?",delete_file:"Are you sure you want to delete this file?",delete_file_confirm:"Please confirm that you want to delete this file",delete_user_confirm:"Please confirm that you want to delete this user",delete_thread:"Are you sure you want to delete this thread?",delete_thread_confirm:"Please confirm that you want to delete this thread",delete_ad:"Are you sure you want to delete this Ad?",delete_ad_confirm:"Please confirm that you want to delete this Ad",delete_blog_content:"Are you sure you want to delete this post?",delete_blog_content_confirm:"Please confirm that you want to delete this post",delete_blog_category:aR,delete_blog_category_confirm:"Please confirm that you want to delete this category and related subcategories, posts.",delete_redirect:"Are you sure you want to delete this redirect?",delete_redirect_confirm:"Please confirm that you want to delete this redirect link.",delete_category:aR,delete_category_confirm:"Please confirm that you want to delete this category and related subcategories, threads, posts.",delete_menu:"Are you sure you want to delete this menu link?",delete_menu_confirm:"Please confirm that you want to delete this menu link.",delete_page:"Are you sure you want to delete this page?",delete_page_confirm:"Please confirm that you want to delete this page.",delete_message:"Are you sure you want to delete this message?",delete_message_confirm:"Please confirm that you want to delete this message.",delete_topic:"Are you sure you want to delete this topic?",delete_topic_confirm:"Please confirm that you want to delete this topic and related posts.",delete_all_topic_message:"Are you sure you want to delete all messages?",delete_all_topic_message_confirm:"Please confirm that you want to delete all messages",delete_all_topic_text:"Are you sure you want to delete all topics?",delete_all_topic_text_confirm:"Please confirm that you want to delete all topics"},errors:{page_not_found:"Page not found",other_error:"Error happened"},toasts:{voted:"Your vote is counted",email_sent:"Confirmation Code Sent to Email",logout:"You successfully logged out",category_created:"Category successfully created!",category_updated:"Category successfully updated!",ad_created:"Ad successfully created!",ad_updated:"Ad successfully updated!",menu_created:"Menu link successfully created!",menu_updated:"Menu link successfully updated!",page_created:"Page successfully created!",page_updated:"Page successfully updated!",register_successfully:"You have successfully registered",confirm_email:"Please confirm your email address",posts_waiting_approval:"Posts waiting approval:",users_waiting_approval:"Users waiting approval:",threads_waiting_approval:"Threads waiting approval:",favicon_updated:"Favicon successfully updated",background_updated:"Background successfully updated",select_logo:"Please select logo",select_favicon:"Please select favicon",logo_updated:"Logo successfully updated",profile_updated:"Profile successfully updated",avatar_updated:"Avatar successfully updated",select_avatar:"Please select image file",select_background:"Please select background image file",auth_success:"Logged in successfully",settings_success:"Settings successfully updated",terms_success:"Terms successfully updated",message_send:"Message has been sent",created:ab,updated:"Updated",password_changed:"Password changed successfully",record_created:ab,deleted:"Deleted",success:"Success",error:"Error happened."},titles:{hash_tag_settings:l,badge_settings:I,roles:D,search:C,social_providers:M,confirm_account:aS,how_to_create:"How To Create Your Own Free Forum",category_settings:aT,edit_member:ac,export_settings:m,file_settings:n,blog_settings:G,ad_settings:J,blog_content:Q,blog_category:o,blog:R,my_pm:p,view_pm:ad,members:aU,redirects:aa,menu:k,pages:N,layout_settings:L,social_settings:O,security_settings:P,terms_settings:H,mail_settings:K,admin_index:S,moderator_index:T,moderator_threads:aV,moderator_users:E,moderator_posts:F,change_password:q,view_profile:"user profile",my_profile:ae,register:aW,login:g,restore_password:r,contact_us:U},descriptions:{hash_tag_settings:l,badge_settings:I,roles:D,social_providers:M,confirm_account:aS,how_to_create:"How To Create Your Own Free Forum. If you need a free modern forum - you can create it right now.",category_settings:aT,export_settings:m,edit_member:ac,moderator_index:T,file_settings:n,moderator_threads:aV,moderator_users:E,moderator_posts:F,ad_settings:J,blog_settings:G,my_pm:p,view_pm:ad,blog:R,blog_category:o,blog_content:Q,members:aU,redirects:aa,menu:k,terms_settings:H,layout_settings:L,pages:N,social_settings:O,security_settings:P,admin_index:S,mail_settings:K,change_password:q,view_profile:"user profile. Contacts, messages, topics.",my_profile:ae,register:aW,login:g,restore_password:r,contact_us:"You can always send us message and we always ready to help. "},mail:{other:$,gmail:"Gmail",yandex:"Yandex",yahoo:"Yahoo",mail:"Mail.ru",rambler:"Rambler",bing:"Bing",outlook:"Outlook",aol:"AOL"},activations:{email:"Email confirmation required",manually:"Manually by admin\u002Fmoderator",automatically:"Automatically, after registration"},toc:{disabled:"No Active",top:"Top",bottom:"Bottom"},export:{yes:"Yes",no:"No",blog_category:o,blog:"Blog Posts",forum:"Forum",profile:"Profiles"},watermark:{center:"Center",top_left:"Top-Left Corner",top_right:"Top-Right Corner",bottom_left:"Bottom-Left Corner",bottom_right:"Bottom-Right Corner"},conditions:{threads:aN,posts:"Posts",best_answers:aD},forms:{default_role:"Default role for new users",hash_tag:"Hash Tag",hash_tags:"Tags (not required)",meta_title:"Meta Title",meta_description:"Meta Description",value:"Value",condition:"Condition",allow_hash_tags:"Enable Hash Tags",access_pm:p,create_post:"Create Post",edit_own_post:"Edit Own Post",edit_any_post:"Edit Any Post",moderate_data:"Moderate Posts\u002FThreads etc...",access_to_admin_tool:"Access to Admin Tool",register_limit:"Registration limit",permissions:"Permissions",created:ab,scrollable_pagination:"Scrollable pagination",is_public_category:"Access to everyone",roles:"Only roles have access",add_source:"Add Source Whenever Copy Text?",allow_likes:"Allow to user likes posts and threads?",add_watermark:"Add Watermark to Images?",add_watermark_position:"Watermark Position",messages_before_auto_approved:"How many posts approve manually for the new users?",add_source_text:"Text:",move_to_category:"Move Threads and Messages to Category",blog_move_to_category:"Move Content to Category",default_add_source_text:"Read more at:",category:"Category:",code_theme:"Code Editor Theme:",user_link_type:"Type:",user_link:"Link:",is_profile_public:"Make Profile Public:",add_social_link:"Add Social Link",confirm_your_email:"Confirm your email",background_full:"Full Screen Image",notifications:"Notifications",to_username:"To",page_transition:"Page Transition",subject:"Subject",signature:aE,no_ad:"No Ad in this post",max_length:"Max XX characters",custom_css:"Custom CSS",security_question_question:aX,is_related_post:"Enable Related Posts",related_post:"Count of Related Posts",is_related_thread:"Enable Related Threads",related_thread:"Count of Related Threads",from_name:"From:",to_name:"To:",role:aY,created_date:"Created at",status:"Status",export_data:"export data",export_data_deleted:"Unfortunately export deleted because we store it just in 3 days. If you need fresh data please create a new request.",export_data_deleted_short:"Unfortunately export deleted",export_settings:"Export Settings",security_question_answer:"Answer","messages_before_au to_approved":"How many approved messages for new clients",mark_uncertain_messages:"Moderate manually uncertain messages",thread_limit:"Thread limit",directory_name:"Directory name",nofollow:"Add for links rel=nofollow",blog_social_sizes:"Icon Size",notify_on_moderation:"Notify me about messages\u002Fthreads on moderation",directory:"Directory",summary:"Summary",badge_name:"Badge Name",badge_description:"Description",badge_icon:"Icon",banned:"Banned",robots_txt:"Robots.txt",toc:aH,one_time:"Show one time",show_every:"Show every",show_after:"Show after",css_selector:"CSS selector",code:"Code",file:"File",question:aX,answer:"You answer",thread_limit_type:"Thread limit by",register_limit_type:"Register limit",trusted:aJ,edit_profile:aZ,post_limit:"Post limit",post_limit_type:"Post limit by",category_name:"Category name",category_description:"Category Description",blog_category:aI,text_font_family:"Font Family",add_in_menu:"Add In Menu",avatar:"Avatar",template:"Template",old_url:"Old URL",new_url:"New URL",image:a_,is_dark:"Dark Mode",logo:"Logo",topic_name:a$,open_new_tab:"Open in new tab",no_index:"Noindex page by google, bing, yahoo etc...",text_link:"Link text",select_page:"Select page",select_manually:"Manually",parent_category:"Parent Category",link:"Link",name:af,encryption:"Encryption",host:"Host",port:"Port",user:ba,page:"Page",position:"Position",type_background:"Background",no_background:"None",background_color:"Color",background_image:a_,activation:"Activate new members",password:"Password",new_password:"New password",confirm_password:"Confirm password",username:ba,firstname:"First name",favicon:"Favicon",favicon_png:"Favicon PNG",forum_name:af,active:aL,page_name:af,forum_description:"Вescription",footer_code:"Footer custom code (ex. google analytics code)",lastname:"Last name",update:bb,email:"Email",company:"Company",message:"Message",text:"Text"},social_size:{small:"Small",medium:"Medium",large:"Large"},buttons:{make_default_role:"Set role as the default for new users",edit_hash_tag:"Edit Hash Tag",new_hash_tag:"Add Hash Tag",new_badge:"Add Badge",edit_badge:"Edit Badge",add_role:bc,edit_role_link:"Edit Role",add_role_link:bc,login_google:g,login_facebook:g,login_github:g,cancel:"Cancel",delete_and_keep_messages:"Delete (keep messages\u002Fthreads)",login_google_tooltip:"Login with Google",login_facebook_tooltip:"Login with Facebook",login_github_tooltip:"Login with Github",moderate:aA,best_answer:aF,answer:bd,my_profile:aQ,ask_question:"Ask Question",add_redirect:"New Redirect",edit_redirect:"Edit Redirect",search_more:"Search More",resend_code:"Resend Code",confirm_email:"Confirm Email",show_more:aC,add_ad:be,edit_ad:"Edit Ad",new_ad:be,new_file:"New File",deactivate:"Deactivate",activate:"Activate",unbanned:"Unbanned",bann:bf,new_pm:"Compose",spam:"Mark As Spam",blog_social_share:"Social Share Buttons",new_export:bg,export_data:bg,new_directory:"New Directory",upload_file:"Upload File",upload_directory:"Create folder",edit_category:bh,edit_thread:"Edit Thread",add_category:bi,add_menu_link:bj,blog_category:o,blog_content:Q,edit_menu_link:"Edit link",new_menu:bj,validate_mail_settings:"Validate",new_page:"New Page",read:"Read More",new_blog_category:bi,edit_blog_category:bh,new_blog_content:"New Post",edit_blog_content:"Edit Post",edit_page:"Edit Page",upload_avatar:"Upload avatar",upload_logo:"Upload Logo",upload_favicon:"Upload Favicon",upload_favicon_png:"Upload Favicon PNG",topic_name:a$,contact_us:U,home:Y,upload_background:"Upload background image",ban:bf,unban:"Unban",delete_all_topic:"Delete all topics",delete_all_messages:"Delete all messages",admin:"Admin Dashboard",profile:bk,signin:"Sign In",register:ag,change_password:q,role:aY,logout:"Logout",reply:"Reply to this topic",reply_pm:bd,edit_post:"Edit post",new_post:"Add message",save:"Save",edit:"Edit",new_message:"New message",restore_password:r,remove:"Remove",login:g,close:"Close",add:"Add",update:bb,delete:"Delete",reset:"Reset Color Schema",send:"Send",clear:"Clear"},headers:{admin_hash_tags:l,admin_badges:I,roles:D,search:C,related_post:"Related Posts",related_thread:"Related Threads",edit_profile:aZ,admin_members:"Users",export_settings:m,select_export:"Please select export settings",posts_on_moderation:"Posts on moderation",threads_on_moderation:"Threads on moderation",users_on_moderation:"Users on moderation",moderator_home:T,my_pm:p,moderator_index:"Statistics",admin_home:S,blog:R,change_password:q,admin_redirects:"List of Redirect",admin_ad:"List of Ads",file_settings:n,view_profile:"User profile",color_settings:"Theme Color Settings",primary_color:"Primary Color",secondary_color:"Secondary Color",accent_color:"Accent Color",info_color:"Info Color",success_color:"Success Color",error_color:"Error Color",warning_color:"Warning Color",my_profile:ae,register:ag,menu:k,follow_us:"Follow us",about_us:"About us",login:g,restore_password:r,contact_us:U},breadcrumbs:{privacy:aK,hash_tag_settings:l,badge_settings:"Badge",menu_home:k,social_providers:M,search:C,export_settings:m,confirm_account:"Account confirmation",blog_home:R,pm:p,view_pm:ad,blog_content:Q,blog_settings:G,ad_settings:J,file_settings:n,privacy_settings:H,forum_settings:"Category Settings",mail_settings:K,layout_settings:L,redirects:"Redirects",blog_categories:o,edit_member:ac,members:aP,pages:N,social_settings:O,security_settings:P,admin_index:S,moderator_threads:aO,moderator_posts:F,moderator_users:E,moderator_index:T,change_password:q,home:Y,view_profile:"User Profile",my_profile:bk,login:g,register:ag,contact_us:U,restore_password:r}}}}}}(0,false,true,"",null,1,"Login","How to overload the istream operator in C++?","C\u002FC++","Software Developer Questions and Answers","Menu","Hash Tags","Export","File Settings","Blog Category","Personal Messages","Change password","Restore password","#0095FF","PHP","JavaScript","SQL","Golang","Ruby","Python","Java","Swift","Messages","Search","Roles","Moderate Users","Moderate Posts","Blog Settings","Privacy Settings","Badges","Ad Settings","Mail Settings","Layout Settings","Social Logins","Pages","Social Settings","Security Settings","Blog Content","Blog","Admin dashboard","Moderator dashboard","Contact us",34535,"Member","#FF6B00","Home","\u002F","HTML\u002FCSS","Other","Redirect","Created","Edit User Details","View Message","My Profile","Name","Sign Up","qa","C\u002FC++\n","c-c","how-to-overload-the-istream-operator-in-c","chadrick_stanton","ROLE_CLIENT",5,{},{},{},{},{},{},{},{},{},{},{},"Other Programming Languages","Moderator","entities","Show More","Best Answers","Signature","Best Answer","Get Your Own","Table of Contents","Category","Trusted User","Privacy Policy","Active","Topics","Threads","Moderate Threads","Members","Profile","Are you sure you want to delete this category?","Your account was successfully confirmed","Forum Category Settings","List Users","Moderate Thread","Register for the forum","Question","Role","Edit Profile","Image","Title","Username","Update","Add Role","Reply","New Ad","Ban","Export Data","Edit Category","New Category","Add a new menu link","My profile"));</script><script src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/5dd0c65.js" defer></script><script src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/92fcc94.js" defer></script><script src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/47eb516.js" defer></script><script src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/dd3342e.js" defer></script>
</body>
</html>