Click here to Skip to main content
15,899,314 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: create a property with class type (class name is : system::io::ports:serialport) Pin
iman_kh23-Oct-08 8:33
iman_kh23-Oct-08 8:33 
QuestionSystem Date Pin
mikobi20-Oct-08 19:20
mikobi20-Oct-08 19:20 
AnswerRe: System Date Pin
Giorgi Dalakishvili20-Oct-08 20:22
mentorGiorgi Dalakishvili20-Oct-08 20:22 
AnswerRe: System Date Pin
Paul Conrad21-Oct-08 6:10
professionalPaul Conrad21-Oct-08 6:10 
AnswerRe: System Date Pin
N a v a n e e t h22-Oct-08 18:22
N a v a n e e t h22-Oct-08 18:22 
QuestionCopying the Data from an ASCII Text File on a PC Back to an Operating System Spooled File for Iseries Pin
aa_zz15-Oct-08 21:35
aa_zz15-Oct-08 21:35 
AnswerRe: Copying the Data from an ASCII Text File on a PC Back to an Operating System Spooled File for Iseries Pin
Paul Conrad16-Oct-08 7:43
professionalPaul Conrad16-Oct-08 7:43 
Questionfunction Pin
jonig1915-Oct-08 14:43
jonig1915-Oct-08 14:43 
I'm trying to write a function but I believe my parameters are wrong.

//---------------------------------------------------------------------
// This function will print the results of the round robin tournament.
// It will print out the players, their matches won, their games won,
// and their games lost.  It will also output the winner of the 
// tournament.
//
//---------------------------------------------------------------------
void printWinner(matchWon, gameWon, gameLost)
{
   cout << endl << endl 
        << "Player     Matches      Games     Games" << endl;
        << "           Won          Won       Lost " << endl;
        << "------     -------      -----     -----" << endl;
        << "  A        " << matchWonA << "           " << gameWonA 
        << "         "  << gameLostA << endl;
        << "  B        " << matchWonB << "           " << gameWonB 
        << "         "  << gameLostB << endl;
        << "  C        " << matchWonC << "           " << gameWonC 
        << "         "  << gameLostC << endl;


This being my code, I was wondering if I should give a function to each of my players (A, B, C).

So, void printAScore (matchWonA, gameWonA, gameLostA)
void printBScore (matchWonB, gameWonB, gameLostB)
and same thing with C.

What is the most efficient way of doing this?
AnswerRe: function Pin
Mark Salsbery16-Oct-08 4:39
Mark Salsbery16-Oct-08 4:39 
AnswerRe: function Pin
CPallini20-Oct-08 21:38
mveCPallini20-Oct-08 21:38 
QuestionUnexpected performance Pin
Lutosław15-Oct-08 3:40
Lutosław15-Oct-08 3:40 
AnswerRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 7:11
Mark Salsbery15-Oct-08 7:11 
GeneralRe: Unexpected performance Pin
Lutosław15-Oct-08 9:45
Lutosław15-Oct-08 9:45 
QuestionRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 9:54
Mark Salsbery15-Oct-08 9:54 
AnswerRe: Unexpected performance Pin
Lutosław15-Oct-08 10:12
Lutosław15-Oct-08 10:12 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 10:47
Mark Salsbery15-Oct-08 10:47 
GeneralRe: Unexpected performance Pin
led mike15-Oct-08 10:55
led mike15-Oct-08 10:55 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 10:56
Mark Salsbery15-Oct-08 10:56 
GeneralRe: Unexpected performance Pin
Lutosław15-Oct-08 11:03
Lutosław15-Oct-08 11:03 
GeneralRe: Unexpected performance Pin
led mike15-Oct-08 11:24
led mike15-Oct-08 11:24 
GeneralRe: Unexpected performance Pin
Lutosław15-Oct-08 10:59
Lutosław15-Oct-08 10:59 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 11:14
Mark Salsbery15-Oct-08 11:14 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 11:17
Mark Salsbery15-Oct-08 11:17 
GeneralRe: Unexpected performance Pin
led mike15-Oct-08 11:22
led mike15-Oct-08 11:22 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 12:40
Mark Salsbery15-Oct-08 12:40 

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.