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

Managed C++/CLI

 
GeneralRe: Slow Managed code versus Fast Native code Pin
zenzero27-Aug-06 5:04
zenzero27-Aug-06 5:04 
AnswerRe: Slow Managed code versus Fast Native code Pin
Nish Nishant28-Aug-06 4:46
sitebuilderNish Nishant28-Aug-06 4:46 
GeneralRe: Slow Managed code versus Fast Native code Pin
zenzero28-Aug-06 7:18
zenzero28-Aug-06 7:18 
Questionstd::wstring by ref Pin
wb24-Aug-06 23:52
wb24-Aug-06 23:52 
Question0D 0A terminated string to 00 terminated string Pin
samkook24-Aug-06 13:20
samkook24-Aug-06 13:20 
QuestionArray handling problems: Pin
luhfluh24-Aug-06 9:43
luhfluh24-Aug-06 9:43 
AnswerRe: Array handling problems: Pin
Christian Graus24-Aug-06 14:21
protectorChristian Graus24-Aug-06 14:21 
GeneralRe: Array handling problems: Pin
luhfluh25-Aug-06 0:59
luhfluh25-Aug-06 0:59 
Hi again...The code is below and i hope it helps clarify my enquiry.I'm new to C++ and all help and suggestions are much appreciated.


*******************code for contact list********************

#include <cstdlib>
#include <iostream>

using namespace std;

class BasicAd{
protected:
string name;
string home_address;
public:
void BasicAd::setValues(string n, string h){
name = n;
home_address = h;
};

void BasicAd::getValues(){
cout<<"name : "<<name<<endl;
cout<<"home address="" :="" "<<home_address<<endl;
};
};=""

class="" clubdir:="" public="" basicad{
private:
string="" member_name;
int="" date_joined;
public:
void="" clubdir::setvalues(string="" n,="" string="" h,="" nm,="" int="" d){
name="n;
home_address" =="" h;
member_name="nm;
date_joined" d;
};
void="" clubdir::getvalues(){
cout<<"name:="" "="" <<name<<endl;
cout<<"home="" "<<home_address<<endl;
cout<<"member="" name:="" "<<member_name<<endl;
cout<<"date="" joined:="" "<<date_joined<<endl<<endl;
};
};="" clientdir:="" client_name;
string="" business_address;
public:
void="" clientdir::setvalues(string="" ha,="" cn,="" ba){
name="n;
home_address" ha;
client_name="cn;
business_address" ba;
};=""
void="" clientdir::getvalues(){
cout<<"\nname:="" "<<home_address<<endl;
cout<<"client="" "<<client_name<<endl;
cout<<"business="" address:="" "<<business_address<<endl<<endl;
};=""
};


void="" add(clubdir&="" [],="" clientdir&="" int&="" size);
void="" edit();
void="" delete();
void="" getoption();
void="" display();

int="" main()
{=""
int&="" sizze;=""
clubdir&="" clubb[size];
clientdir&="" clientt[size];=""
cout<<"....welcome="" to="" the="" contact="" database...."<<endl;
cout<<"-------------------------------------------------"<<endl<<endl;

getoption();
system("pause");
return="" exit_success;
}

void="" add(){=""
string="" name;
string="" ha;
string="" mn;
string="" cn;
string="" ba;
int="" dj;
int="" choice;
clubdir="" club[size];
clientdir="" client[size];=""

cout<<"please="" select="" one="" of="" choices="" perform="" its="" task:="" \nclubdir="" [1]\tclientdir="" [2]:="" ";
cin="">>choice;
if(choice==1){
cout<<"\nEnter number of items for clubDir: ";
cin>>size;
for(int i=0; i<size; i++){
cout<<"\nenter="" values="" of="" clubdir="" "="" <<="" (i+1)="" ":\nname:";
cin="">>name;
cout<<"home address: ";
cin>>ha;
cout<<"member name: ";
cin>>mn;
cout<<"date joined:";
cin>>dj;
cout<<"\n";
club[i].setValues(name, ha, mn, dj);
};
cout<<"\nThe Contact Details addded....";
}

else if(choice==2){
cout<<"\nEnter number of items for clientDir: ";
cin>>size;

for(int i=0; i<size; i++){
cout<<"\nenter="" values="" of="" client="" "="" <<="" (i+1)="" ":\nname:";
cin="">>name;
cout<<"home address: ";
cin>>ha;
cout<<"client name: ";
cin>>cn;
cout<<"business address:";
cin>>ba;
cout<<"\n";
client[i].setValues(name, ha, cn, ba);
};
cout<<"\nThe Contact Details addded....";
};


}; //end of ADD()

void EDIT(){
};

void DELETE(){
};

void DISPLAY(){
};

void getOption(){
int option;

cout<<"Select one of the following options :\nADD - [1] \tEDIT - [2]\t DELETE - [3]: ";
cin>>option;
cout<
QuestionHow to display Exception after the Form is loaded Pin
mmhu24-Aug-06 4:59
mmhu24-Aug-06 4:59 
AnswerRe: How to display Exception after the Form is loaded Pin
Nish Nishant25-Aug-06 2:59
sitebuilderNish Nishant25-Aug-06 2:59 
GeneralRe: How to display Exception after the Form is loaded Pin
mmhu26-Aug-06 13:26
mmhu26-Aug-06 13:26 
QuestionSetting toolbox tab programatically Pin
Edward Diener24-Aug-06 2:22
Edward Diener24-Aug-06 2:22 
QuestionInvisible text in Messagebox [modified] Pin
dawei.code23-Aug-06 0:02
dawei.code23-Aug-06 0:02 
AnswerRe: Invisible text in Messagebox Pin
Nish Nishant24-Aug-06 11:22
sitebuilderNish Nishant24-Aug-06 11:22 
GeneralRe: Invisible text in Messagebox Pin
dawei.code25-Aug-06 2:04
dawei.code25-Aug-06 2:04 
QuestionNon-managed (unsafe) code impersonation Pin
Ray Cassick22-Aug-06 9:00
Ray Cassick22-Aug-06 9:00 
AnswerRe: Non-managed (unsafe) code impersonation Pin
Nish Nishant23-Aug-06 6:45
sitebuilderNish Nishant23-Aug-06 6:45 
QuestionHow to pass a SortedList from C# to MC++ [modified] Pin
AbinThomas21-Aug-06 0:29
AbinThomas21-Aug-06 0:29 
AnswerRe: How to pass a SortedList from C# to MC++ Pin
Jun Du23-Aug-06 5:16
Jun Du23-Aug-06 5:16 
GeneralRe: How to pass a SortedList from C# to MC++ Pin
AbinThomas23-Aug-06 18:38
AbinThomas23-Aug-06 18:38 
QuestionCompiling Unmanaged code in Managed c++ Pin
alias4720-Aug-06 21:27
alias4720-Aug-06 21:27 
AnswerRe: Compiling Unmanaged code in Managed c++ Pin
Christian Graus20-Aug-06 21:54
protectorChristian Graus20-Aug-06 21:54 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
alias4721-Aug-06 1:03
alias4721-Aug-06 1:03 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Nish Nishant21-Aug-06 1:08
sitebuilderNish Nishant21-Aug-06 1:08 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Christian Graus21-Aug-06 1:21
protectorChristian Graus21-Aug-06 1:21 

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.