Click here to Skip to main content
13,803,676 members

C / C++ / MFC

 
GeneralRe: Connection String Couldn't Connect Pin
leon de boer15-Mar-18 18:12
memberleon de boer15-Mar-18 18:12 
GeneralRe: Connection String Couldn't Connect Pin
Jochen Arndt15-Mar-18 23:10
mvpJochen Arndt15-Mar-18 23:10 
GeneralRe: Connection String Couldn't Connect Pin
Victor Nijegorodov16-Mar-18 9:41
memberVictor Nijegorodov16-Mar-18 9:41 
GeneralRe: Connection String Couldn't Connect Pin
leon de boer18-Mar-18 5:20
memberleon de boer18-Mar-18 5:20 
AnswerRe: Connection String Couldn't Connect Pin
leon de boer15-Mar-18 17:49
memberleon de boer15-Mar-18 17:49 
GeneralRe: Connection String Couldn't Connect Pin
Brennan Salibrici16-Mar-18 3:45
memberBrennan Salibrici16-Mar-18 3:45 
QuestionRe: Connection String Couldn't Connect Pin
David Crow16-Mar-18 17:43
memberDavid Crow16-Mar-18 17:43 
Questionproblem in operator overloading of >> & << ? Pin
Tarun Jha15-Mar-18 8:47
memberTarun Jha15-Mar-18 8: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 11:47
mvpCPallini15-Mar-18 11:47 
QuestionCan we include two Message Maps in one class? Pin
Sampath57915-Mar-18 0:23
memberSampath57915-Mar-18 0:23 
AnswerRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 0:32
protectorRichard MacCutchan15-Mar-18 0:32 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 0:39
memberSampath57915-Mar-18 0:39 
AnswerRe: Can we include two Message Maps in one class? Pin
Jochen Arndt15-Mar-18 1:53
mvpJochen Arndt15-Mar-18 1:53 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 2:08
memberSampath57915-Mar-18 2:08 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 5:19
memberSampath57915-Mar-18 5:19 
GeneralRe: Can we include two Message Maps in one class? Pin
Victor Nijegorodov15-Mar-18 5:48
memberVictor Nijegorodov15-Mar-18 5:48 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 7:25
memberSampath57915-Mar-18 7:25 
GeneralRe: Can we include two Message Maps in one class? Pin
Jochen Arndt15-Mar-18 5:50
mvpJochen Arndt15-Mar-18 5:50 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 7:57
memberSampath57915-Mar-18 7:57 
GeneralRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 8:11
protectorRichard MacCutchan15-Mar-18 8:11 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 8:31
memberSampath57915-Mar-18 8:31 
GeneralRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 9:03
protectorRichard MacCutchan15-Mar-18 9:03 
QuestionHow to reuse a single CView class with multiple tabs in MFC Pin
Sampath57914-Mar-18 7:42
memberSampath57914-Mar-18 7:42 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
Richard MacCutchan14-Mar-18 8:06
protectorRichard MacCutchan14-Mar-18 8:06 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 22:58
member_Flaviu14-Mar-18 22: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
Web05 | 2.8.181215.1 | Last Updated 18 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid