Click here to Skip to main content
12,302,493 members (65,954 online)

Managed C++/CLI

 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 21:30
mvpRichard MacCutchan6-Oct-12 21:30 
QuestionHow to call manged api from unmanaged code? Pin
litu kumar4-Oct-12 3:25
memberlitu kumar4-Oct-12 3:25 
AnswerRe: How to call manged api from unmanaged code? Pin
Richard Andrew x645-Oct-12 9:30
memberRichard Andrew x645-Oct-12 9:30 
GeneralRe: How to call manged api from unmanaged code? Pin
litu kumar15-Oct-12 2:13
memberlitu kumar15-Oct-12 2:13 
GeneralRe: How to call manged api from unmanaged code? Pin
Richard Andrew x6415-Oct-12 6:46
memberRichard Andrew x6415-Oct-12 6:46 
QuestionHow to create CLI Interface to access .net API from C++ code? Pin
litu kumar3-Oct-12 0:19
memberlitu kumar3-Oct-12 0:19 
Questionoperato precendance question Pin
Amrit Agr1-Oct-12 22:04
memberAmrit Agr1-Oct-12 22:04 
AnswerRe: operato precendance question Pin
Richard MacCutchan2-Oct-12 2:58
mvpRichard MacCutchan2-Oct-12 2:58 
AnswerRe: operato precendance question Pin
jschell2-Oct-12 8:51
memberjschell2-Oct-12 8:51 
AnswerRe: operato precendance question Pin
skrtbhtngr15-Nov-12 0:39
memberskrtbhtngr15-Nov-12 0:39 
QuestionLarge integer class please help Pin
Msemler9328-Sep-12 1:29
memberMsemler9328-Sep-12 1:29 
AnswerRe: Large integer class please help Pin
Richard MacCutchan28-Sep-12 2:05
mvpRichard MacCutchan28-Sep-12 2:05 
AnswerRe: Large integer class please help Pin
jschell28-Sep-12 10:22
memberjschell28-Sep-12 10:22 
GeneralRe: Large integer class please help Pin
Msemler9329-Sep-12 9:52
memberMsemler9329-Sep-12 9:52 
ok me and my friend have been working on the program and are having trouble getting the arrays to pass to the functions and dont know where the issue is.


#include
using namespace std;


class Integer{

public:
Integer();
Integer(Integer& a);
Integer operator +(const Integer &);
Integer operator -(const Integer &);
bool operator<(Integer)const;
void SetArr();
void print();
void addNumbers();
void subNumbers();

private:
bool sign;
int size;
int size2;
int size3;
char * arr1;
char * arr2;
char * arr3;


};

int main()
{
Integer sum,diff, in1,in2;
in1.SetArr();
/*in2.SetArr();

in1.addNumbers();
in1.print();
in1.subNumbers();
in1.print();*/




}
Integer::Integer()
{
size=0;
arr1=NULL;
}
Integer::Integer(Integer& a)
{
a.size=0;
a.arr1=NULL;
}
void Integer::SetArr()
{
cout<<"How many digits is the number?"<<endl;
cin>>size;
int* arr1=new int[size];
cout<<"Enter the sequence of the "<<size<<" integers"<<endl;
for(int i=(size-1);i>=0;i--)
cin>>arr1[i];

cout<<endl;
for(int i=0;i>size2;
int* arr2=new int[size2];
cout<<"Enter the sequence of the "<<size2<<" integers"<<endl;
for(int i=(size2-1);i>=0;i--)
cin>>arr2[i];

cout<<endl;
for(int i=0;i=size2)
size3=size+1;
else
size3=size2+1;

int* arr3=new int[size3];


int carry=0;
for(int i=0;i=0;i--)
cout<<arr3[i];

cout<<endl<<endl;




for(int i=0;iarr2[i])
arr3[i]=arr1[i]-arr2[i];
else{
arr1[i+1]=(arr1[i+1]-1);
arr1[i]=arr1[i]+10;
arr3[i]=arr1[i]-arr2[i];
}
}
cout<<endl;
for(int i=0;i=0;i--)
cout<<arr3[i];

}
void Integer::print()
{
for(int i=0;iarr2[i])
arr3[i]=arr1[i]-arr2[i];
else{
arr1[i+1]=(arr1[i+1]-1);
arr1[i]=arr1[i]+10;
arr3[i]=arr1[i]-arr2[i];
}
}
}
GeneralRe: Large integer class please help Pin
jschell30-Sep-12 8:12
memberjschell30-Sep-12 8:12 
QuestionHOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pin
williamjr19-Sep-12 22:09
memberwilliamjr19-Sep-12 22:09 
AnswerRe: HOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pin
Wes Aday20-Sep-12 3:57
memberWes Aday20-Sep-12 3:57 
AnswerRe: HOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pin
Pete O'Hanlon20-Sep-12 4:40
protectorPete O'Hanlon20-Sep-12 4:40 
QuestionWindows Shutdown notification in a MFC Dialog app Pin
sunilkpv13-Sep-12 0:20
membersunilkpv13-Sep-12 0:20 
AnswerRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan13-Sep-12 0:27
mvpRichard MacCutchan13-Sep-12 0:27 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Rajesh R Subramanian20-Sep-12 3:36
memberRajesh R Subramanian20-Sep-12 3:36 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan20-Sep-12 3:56
mvpRichard MacCutchan20-Sep-12 3:56 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Wes Aday20-Sep-12 5:53
memberWes Aday20-Sep-12 5:53 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan20-Sep-12 6:09
mvpRichard MacCutchan20-Sep-12 6:09 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
sunilkpv20-Sep-12 4:58
membersunilkpv20-Sep-12 4:58 
QuestionQuestion about ternary operator in initializer list Pin
elelont211-Sep-12 22:29
memberelelont211-Sep-12 22:29 
AnswerRe: Question about ternary operator in initializer list Pin
jschell12-Sep-12 8:13
memberjschell12-Sep-12 8:13 
AnswerRe: Question about ternary operator in initializer list Pin
Richard MacCutchan12-Sep-12 22:32
mvpRichard MacCutchan12-Sep-12 22:32 
Questionimage to speech and speech to image Pin
buzz chemistry11-Sep-12 8:11
memberbuzz chemistry11-Sep-12 8:11 
AnswerRe: image to speech and speech to image Pin
Kenneth Haugland11-Sep-12 10:20
memberKenneth Haugland11-Sep-12 10:20 
GeneralRe: image to speech and speech to image Pin
buzz chemistry4-Jan-13 13:45
memberbuzz chemistry4-Jan-13 13:45 
AnswerRe: image to speech and speech to image Pin
jschell11-Sep-12 11:56
memberjschell11-Sep-12 11:56 
GeneralRe: image to speech and speech to image Pin
buzz chemistry4-Jan-13 13:47
memberbuzz chemistry4-Jan-13 13:47 
Questionc++ small project Pin
Asmita s. patil9-Sep-12 4:38
memberAsmita s. patil9-Sep-12 4:38 
AnswerCross post Pin
Wes Aday9-Sep-12 5:51
memberWes Aday9-Sep-12 5:51 
AnswerRe: c++ small project Pin
Shameel19-Sep-12 23:48
memberShameel19-Sep-12 23:48 
QuestionMCF Class Templates Pin
davidconnerley5-Sep-12 10:34
memberdavidconnerley5-Sep-12 10:34 
AnswerRe: MCF Class Templates Pin
Wes Aday5-Sep-12 11:49
memberWes Aday5-Sep-12 11:49 
SuggestionRe: MCF Class Templates Pin
Albert Holguin5-Sep-12 12:30
memberAlbert Holguin5-Sep-12 12:30 
GeneralRe: MCF Class Templates Pin
Wes Aday5-Sep-12 12:56
memberWes Aday5-Sep-12 12:56 
AnswerRe: MCF Class Templates Pin
Albert Holguin5-Sep-12 12:31
memberAlbert Holguin5-Sep-12 12:31 
AnswerRe: MCF Class Templates Pin
Richard MacCutchan5-Sep-12 23:25
mvpRichard MacCutchan5-Sep-12 23:25 
Questionheap corruption error Pin
igotmymtv200521-Aug-12 9:33
memberigotmymtv200521-Aug-12 9:33 
AnswerRe: heap corruption error Pin
Wes Aday21-Aug-12 10:07
memberWes Aday21-Aug-12 10:07 
GeneralMessage Removed Pin
igotmymtv200521-Aug-12 10:18
memberigotmymtv200521-Aug-12 10:18 
GeneralRe: heap corruption error Pin
Richard MacCutchan21-Aug-12 22:47
mvpRichard MacCutchan21-Aug-12 22:47 
GeneralRe: heap corruption error Pin
igotmymtv200522-Aug-12 16:03
memberigotmymtv200522-Aug-12 16:03 
GeneralRe: heap corruption error Pin
Richard MacCutchan22-Aug-12 21:06
mvpRichard MacCutchan22-Aug-12 21:06 
GeneralRe: heap corruption error Pin
jschell23-Aug-12 9:01
memberjschell23-Aug-12 9:01 
QuestionHow to call a function in DLL created in C++ in 2008 .NET Pin
Andraw11120-Aug-12 4:39
memberAndraw11120-Aug-12 4:39 

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 | Mobile
Web02 | 2.8.160530.1 | Last Updated 24 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid