Click here to Skip to main content
14,485,233 members

Managed C++/CLI

 
AnswerRe: Stuck in Delegates and Events concept, what are the differences and when do we use them? Pin
Richard Andrew x6416-Nov-13 10:53
professionalRichard Andrew x6416-Nov-13 10:53 
QuestionI'm learning C++/CLI by reading MS VC++/CLI Step by Step, any advice guys? Pin
atoi_powered14-Nov-13 4:03
Memberatoi_powered14-Nov-13 4:03 
SuggestionRe: I'm learning C++/CLI by reading MS VC++/CLI Step by Step, any advice guys? Pin
Richard MacCutchan14-Nov-13 6:11
mveRichard MacCutchan14-Nov-13 6:11 
AnswerRe: I'm learning C++/CLI by reading MS VC++/CLI Step by Step, any advice guys? Pin
John Schroedl15-Nov-13 2:55
professionalJohn Schroedl15-Nov-13 2:55 
Questionhaching with MD5 Pin
Member 102601559-Nov-13 1:04
MemberMember 102601559-Nov-13 1:04 
AnswerRe: haching with MD5 Pin
Richard MacCutchan9-Nov-13 2:17
mveRichard MacCutchan9-Nov-13 2:17 
AnswerRe: haching with MD5 Pin
WuRunZhe22-Nov-13 2:57
MemberWuRunZhe22-Nov-13 2:57 
Questiontest Pin
Member 103174293-Nov-13 4:51
MemberMember 103174293-Nov-13 4:51 
#include <stdio.h>
#include<string.h>

char f[10000];
char factorial[1010][10000];

void multiply(int k)
{
int cin,sum,i;
int len = strlen(f);
cin=0;
i=0;
while(i<len)
{
sum=cin+(f[i] - '0') * k;
f[i] = (sum % 10) + '0';
i++;
cin = sum/10;
}
while(cin>0)
{
f[i++] = (cin%10) + '0';
cin/=10;
}
f[i]='\0';
for(int j=0;j<i;j++)
factorial[k][j]=f[j];

factorial[k][i]='\0';
}
void fac()
{
int k;
strcpy(f,"1");
for(k=2;k<=1000;k++)
multiply(k);
}
void print(int n)
{
int i;
int len = strlen(factorial[n]);
printf("%d!\n",n);
for(i=len-1;i>=0;i--)
printf("%c",factorial[n][i]);
printf("\n");
}
int main()
{
int n;
factorial[0][0]='1';
factorial[1][0]='1';
fac();
while(scanf("%d",&n)==1){
print(1);
}
return 0;
}

AnswerRe: test Pin
super14-Nov-13 2:41
professionalsuper14-Nov-13 2:41 
AnswerRe: test Pin
WuRunZhe22-Nov-13 15:19
MemberWuRunZhe22-Nov-13 15:19 
AnswerRe: test Pin
Squiggs8-Dec-13 6:41
MemberSquiggs8-Dec-13 6:41 
AnswerRe: test Pin
David.Moore8718-Dec-13 5:25
MemberDavid.Moore8718-Dec-13 5:25 
AnswerRe: test Pin
Stefan_Lang24-Feb-14 0:27
mveStefan_Lang24-Feb-14 0:27 
QuestionI met a hard problem in qt! Pin
wuxuangle30-Oct-13 3:09
Memberwuxuangle30-Oct-13 3:09 
AnswerRe: I met a hard problem in qt! Pin
John Schroedl30-Oct-13 8:36
professionalJohn Schroedl30-Oct-13 8:36 
GeneralRe: I met a hard problem in qt! Pin
wuxuangle31-Oct-13 3:10
Memberwuxuangle31-Oct-13 3:10 
GeneralRe: I met a hard problem in qt! Pin
rekolnet25-Jul-15 10:45
Memberrekolnet25-Jul-15 10:45 
QuestionLNK2019: unresolved external Pin
af0000123-Oct-13 20:44
Memberaf0000123-Oct-13 20:44 
AnswerRe: LNK2019: unresolved external Pin
Richard MacCutchan23-Oct-13 21:38
mveRichard MacCutchan23-Oct-13 21:38 
GeneralRe: LNK2019: unresolved external Pin
af0000124-Oct-13 6:35
Memberaf0000124-Oct-13 6:35 
AnswerRe: LNK2019: unresolved external Pin
Freak3023-Oct-13 23:07
MemberFreak3023-Oct-13 23:07 
GeneralRe: LNK2019: unresolved external Pin
Richard MacCutchan23-Oct-13 23:32
mveRichard MacCutchan23-Oct-13 23:32 
GeneralRe: LNK2019: unresolved external Pin
af0000124-Oct-13 6:34
Memberaf0000124-Oct-13 6:34 
GeneralRe: LNK2019: unresolved external Pin
af0000124-Oct-13 6:33
Memberaf0000124-Oct-13 6:33 
AnswerRe: LNK2019: unresolved external Pin
WuRunZhe22-Nov-13 15:23
MemberWuRunZhe22-Nov-13 15:23 

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.