Click here to Skip to main content
13,660,951 members

C / C++ / MFC

 
GeneralRe: Connection String Couldn't Connect Pin
leon de boer15-Mar-18 17:12
memberleon de boer15-Mar-18 17:12 
GeneralRe: Connection String Couldn't Connect Pin
Jochen Arndt15-Mar-18 22:10
mvpJochen Arndt15-Mar-18 22:10 
GeneralRe: Connection String Couldn't Connect Pin
Victor Nijegorodov16-Mar-18 8:41
memberVictor Nijegorodov16-Mar-18 8:41 
GeneralRe: Connection String Couldn't Connect Pin
leon de boer18-Mar-18 4:20
memberleon de boer18-Mar-18 4:20 
AnswerRe: Connection String Couldn't Connect Pin
leon de boer15-Mar-18 16:49
memberleon de boer15-Mar-18 16:49 
GeneralRe: Connection String Couldn't Connect Pin
Brennan Salibrici16-Mar-18 2:45
memberBrennan Salibrici16-Mar-18 2:45 
QuestionRe: Connection String Couldn't Connect Pin
David Crow16-Mar-18 16:43
memberDavid Crow16-Mar-18 16:43 
Questionproblem in operator overloading of >> & << ? Pin
Tarun Jha15-Mar-18 7:47
memberTarun Jha15-Mar-18 7:47 
#include <iostream>
using namespace std;

const int size = 3;
class vector{
    int v[size];

public:
    vector();                                                                                                //constructor num vector
    vector(int *x);                                                                                          //constructor from arr
    friend vector operator * (int a, vector b);                                                              //friend 1
    friend vector operator * (vector b, int a);                                                              //friend 2
    friend istream & operator >> (istream &, vector &);      //what is this ??
    friend ostream & operator << (ostream &, vector &);        
};


in the above code the i am having problem understanding the friend f^n
Quote:
friend istream & operator >> (istream &, vector &);

here's what i know, so istream is for input streaming of data & ostream for output, and does & epresents some kind of reference to function >> ?
It is really confusing, please explain.

Thank you.
AnswerRe: problem in operator overloading of >> & << ? Pin
CPallini15-Mar-18 10:47
mvpCPallini15-Mar-18 10:47 
QuestionCan we include two Message Maps in one class? Pin
Sampath57914-Mar-18 23:23
memberSampath57914-Mar-18 23:23 
AnswerRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan14-Mar-18 23:32
protectorRichard MacCutchan14-Mar-18 23:32 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57914-Mar-18 23:39
memberSampath57914-Mar-18 23:39 
AnswerRe: Can we include two Message Maps in one class? Pin
Jochen Arndt15-Mar-18 0:53
mvpJochen Arndt15-Mar-18 0:53 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 1:08
memberSampath57915-Mar-18 1:08 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 4:19
memberSampath57915-Mar-18 4:19 
GeneralRe: Can we include two Message Maps in one class? Pin
Victor Nijegorodov15-Mar-18 4:48
memberVictor Nijegorodov15-Mar-18 4:48 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 6:25
memberSampath57915-Mar-18 6:25 
GeneralRe: Can we include two Message Maps in one class? Pin
Jochen Arndt15-Mar-18 4:50
mvpJochen Arndt15-Mar-18 4:50 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 6:57
memberSampath57915-Mar-18 6:57 
GeneralRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 7:11
protectorRichard MacCutchan15-Mar-18 7:11 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 7:31
memberSampath57915-Mar-18 7:31 
GeneralRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 8:03
protectorRichard MacCutchan15-Mar-18 8:03 
QuestionHow to reuse a single CView class with multiple tabs in MFC Pin
Sampath57914-Mar-18 6:42
memberSampath57914-Mar-18 6:42 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
Richard MacCutchan14-Mar-18 7:06
protectorRichard MacCutchan14-Mar-18 7:06 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 21:58
member_Flaviu14-Mar-18 21:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180810.1 | Last Updated 13 Aug 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid