Click here to Skip to main content
15,889,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Expanding items in CTreeCtrl Pin
jk chan8-Jan-11 5:24
jk chan8-Jan-11 5:24 
AnswerRe: Expanding items in CTreeCtrl Pin
janaswamy uday8-Jan-11 6:55
janaswamy uday8-Jan-11 6:55 
JokeRe: Expanding items in CTreeCtrl Pin
User 74293388-Jan-11 7:19
professionalUser 74293388-Jan-11 7:19 
QuestionOperator >> istream [modified] Pin
Amine MAMA8-Jan-11 1:31
Amine MAMA8-Jan-11 1:31 
AnswerRe: Operator >> istream Pin
Luc Pattyn8-Jan-11 1:36
sitebuilderLuc Pattyn8-Jan-11 1:36 
AnswerRe: Operator >> istream Pin
Amine MAMA8-Jan-11 1:44
Amine MAMA8-Jan-11 1:44 
AnswerRe: Operator >> istream Pin
Luc Pattyn8-Jan-11 2:20
sitebuilderLuc Pattyn8-Jan-11 2:20 
AnswerRe: Operator >> istream Pin
User 74293388-Jan-11 2:57
professionalUser 74293388-Jan-11 2:57 
Hi, from the way your question is formulated, I'm not really sure what the problem is.
I've compiled the code myself though and it seems fine, so maybe you're after some help on how to use it?

I used the following code to try the functionality;

void main(void)
{
	// Make a new product with code 15 and designation "Product1"
	produit *prod1 = new produit(15,"Product1");
	// Print the code, designation and product count to screen
	cout << *prod1;

	Make a new product and ask the user to enter the code and designation
	produit *prod2 = new produit();
	cin >> *prod2;
	// Print the code, designation and product count to screen
	cout << *prod2;

	Make a new product and ask the user to enter the code and designation
	produit *prod3 = new produit();
	cin >> *prod3;
	// Print the code, designation and product count to screen
	cout << *prod3;
}


The input/output was as follows;

15 Product1 1
86 Product2 <enter>

86 Product2 2
19 Product3<enter>

19 Product3 3

Which seems to be correct.

modified 13-Sep-18 21:01pm.

GeneralRe: Operator >> istream Pin
Amine MAMA8-Jan-11 3:14
Amine MAMA8-Jan-11 3:14 
AnswerRe: Operator >> istream Pin
User 74293388-Jan-11 3:33
professionalUser 74293388-Jan-11 3:33 
GeneralRe: Operator >> istream Pin
Amine MAMA8-Jan-11 7:36
Amine MAMA8-Jan-11 7:36 
AnswerRe: Operator >> istream Pin
Aescleal8-Jan-11 5:34
Aescleal8-Jan-11 5:34 
QuestionGetting LogicalDriveInformation of different hard disks..... Pin
learningvisualc8-Jan-11 1:02
learningvisualc8-Jan-11 1:02 
AnswerRe: Getting LogicalDriveInformation of different hard disks..... Pin
User 74293388-Jan-11 1:26
professionalUser 74293388-Jan-11 1:26 
AnswerRe: Getting LogicalDriveInformation of different hard disks..... Pin
Luc Pattyn8-Jan-11 1:33
sitebuilderLuc Pattyn8-Jan-11 1:33 
QuestionRe: Getting LogicalDriveInformation of different hard disks..... Pin
David Crow10-Jan-11 5:48
David Crow10-Jan-11 5:48 
QuestionRead Serial Port data [modified] Pin
shiv@nand8-Jan-11 0:15
shiv@nand8-Jan-11 0:15 
AnswerRe: Read Serial Port data Pin
User 74293388-Jan-11 1:48
professionalUser 74293388-Jan-11 1:48 
AnswerRe: Read Serial Port data Pin
Richard MacCutchan8-Jan-11 2:36
mveRichard MacCutchan8-Jan-11 2:36 
QuestionPopulate An Array With Numbers. Pin
Mike Certini7-Jan-11 10:39
Mike Certini7-Jan-11 10:39 
AnswerRe: Populate An Array With Numbers. Pin
Nuri Ismail7-Jan-11 10:48
Nuri Ismail7-Jan-11 10:48 
GeneralRe: Populate An Array With Numbers. Pin
Mike Certini7-Jan-11 12:40
Mike Certini7-Jan-11 12:40 
QuestionUsing CSplitterWnd OnCreateClient to split window Pin
cy163@hotmail.com7-Jan-11 4:32
cy163@hotmail.com7-Jan-11 4:32 
AnswerRe: Using CSplitterWnd OnCreateClient to split window Pin
Eugen Podsypalnikov7-Jan-11 9:05
Eugen Podsypalnikov7-Jan-11 9:05 
Questionmanipulation de bits dans une variable quelconque Pin
andromida7-Jan-11 3:52
andromida7-Jan-11 3:52 

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.