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

Managed C++/CLI

 
AnswerRe: Pure virtual function calls in Constructor Pin
Nemanja Trifunovic17-Sep-05 4:35
Nemanja Trifunovic17-Sep-05 4:35 
GeneralRe: Pure virtual function calls in Constructor Pin
RichardS17-Sep-05 16:31
RichardS17-Sep-05 16:31 
QuestionConvert ASCII to HEX Pin
RedDragon2k16-Sep-05 9:23
RedDragon2k16-Sep-05 9:23 
AnswerRe: Convert ASCII to HEX Pin
RichardS17-Sep-05 16:57
RichardS17-Sep-05 16:57 
GeneralRe: Convert ASCII to HEX Pin
Johann Gerell17-Sep-05 23:13
Johann Gerell17-Sep-05 23:13 
GeneralRe: Convert ASCII to HEX Pin
RichardS18-Sep-05 5:22
RichardS18-Sep-05 5:22 
GeneralRe: Convert ASCII to HEX Pin
Johann Gerell18-Sep-05 6:22
Johann Gerell18-Sep-05 6:22 
QuestionC++ PROJECT HELP!!!! Pin
da_comp_learner15-Sep-05 19:25
da_comp_learner15-Sep-05 19:25 
Can anyone plz help with the implementation of the following member functions.
1.void EmployeeDatabase::getEids(vector <int> &ids)
2.string EmployeeDatabase::getName(int employeeID)
3.double EmployeeDatabase::getShoeSize(int employeeID)

<code>
#include "EmployeeDatabase.h"
#include<vector>

using namespace std;

EmployeeDatabase::EmployeeDatabase()
{
size = 0;
}

/*void EmployeeDatabase::getEids(vector <int> &ids)
{ // Complete the code.
//int iter;
//iter = v.assign(ids, people);
for(int i = 0; i<=ids.size( ); i++)
{


}
return ids;

}
*/

/*string EmployeeDatabase::getName(int employeeID)
{// Complete the code.
// Returns the name of the Person with eid equal to employeeID.
//string TheEmployees;



}*/

double EmployeeDatabase::getShoeSize(int employeeID)
{// Complete the code.
// Returns the shoesize of the Person with eid equal to employeeID.




}

void EmployeeDatabase::makePerson(string employeeName, int employeeID, double employeeShoeSize)
{
vector <Person> m_Staff;
Person people(employeeName, employeeID, employeeShoeSize); // this assumes a class called person with this constructor signature
m_Staff.push_back(people);
}

int EmployeeDatabase::getSize()
{
return size;
}

</code>

here is the application test program I have to test the member functions.

<code>
#include "Person.h"
#include "EmployeeDatabase.h"
#include "Data.h"
#include<iostream>
#include<fstream>


using namespace std;

int main(){


EmployeeDatabase TheEmployees; // These two commands make the data in the database Data.o available

Data DB(TheEmployees); // Include these two commands at the beginning of your program, and
// then use the methods from EmployeeDatabase to get the data.

vector<int> ids;
TheEmployees.getEids(ids);

cout << "The Eid of the first employee is " << ids[0] << '\n';
cout << "The name of the first employee is " << TheEmployees.getName(ids[0]) << '\n';
cout << "The shoe size of the first employee is " << TheEmployees.getShoeSize(ids[0]) << '\n';

pause();

}
</code>
AnswerRe: C++ PROJECT HELP!!!! Pin
Saksida Bojan16-Sep-05 2:27
Saksida Bojan16-Sep-05 2:27 
Questionwhat is the problem? Pin
mcnu15-Sep-05 16:20
mcnu15-Sep-05 16:20 
QuestionGraphic in linux Pin
Ta Xuan Hung15-Sep-05 15:19
Ta Xuan Hung15-Sep-05 15:19 
AnswerRe: Graphic in linux Pin
Christian Graus15-Sep-05 15:38
protectorChristian Graus15-Sep-05 15:38 
AnswerRe: Graphic in linux Pin
Christian Graus15-Sep-05 15:51
protectorChristian Graus15-Sep-05 15:51 
Questionchar array structures Pin
charstock15-Sep-05 14:58
charstock15-Sep-05 14:58 
AnswerRe: char array structures Pin
Christian Graus15-Sep-05 15:36
protectorChristian Graus15-Sep-05 15:36 
GeneralRe: char array structures Pin
charstock16-Sep-05 3:00
charstock16-Sep-05 3:00 
GeneralRe: char array structures Pin
Achim Klein17-Sep-05 16:43
Achim Klein17-Sep-05 16:43 
AnswerRe: char array structures Pin
Johann Gerell17-Sep-05 23:25
Johann Gerell17-Sep-05 23:25 
Questiondrawing tools problem using mfc.net Pin
maktamcun14-Sep-05 22:59
maktamcun14-Sep-05 22:59 
AnswerRe: drawing tools problem using mfc.net Pin
toxcct15-Sep-05 3:17
toxcct15-Sep-05 3:17 
GeneralRe: drawing tools problem using mfc.net Pin
Judah Gabriel Himango16-Sep-05 8:21
sponsorJudah Gabriel Himango16-Sep-05 8:21 
AnswerRe: drawing tools problem using mfc.net Pin
Christian Graus15-Sep-05 11:32
protectorChristian Graus15-Sep-05 11:32 
GeneralRe: drawing tools problem using mfc.net Pin
maktamcun16-Sep-05 16:22
maktamcun16-Sep-05 16:22 
GeneralRe: drawing tools problem using mfc.net Pin
Christian Graus18-Sep-05 11:02
protectorChristian Graus18-Sep-05 11:02 
Questionoperator '*' Pin
LiYS14-Sep-05 22:26
LiYS14-Sep-05 22:26 

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.