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

Managed C++/CLI

 
GeneralSHGetFolderPathW function syntax - question Pin
Stanimir_Stoyanov14-Jun-04 5:21
Stanimir_Stoyanov14-Jun-04 5:21 
GeneralRe: SHGetFolderPathW function syntax - question Pin
palbano14-Jun-04 6:10
palbano14-Jun-04 6:10 
Questiondisassembling (correctly) managed c++ assemblies? Pin
Stanimir_Stoyanov14-Jun-04 5:20
Stanimir_Stoyanov14-Jun-04 5:20 
AnswerRe: disassembling (correctly) managed c++ assemblies? Pin
cppmanuf25-Jun-04 18:03
cppmanuf25-Jun-04 18:03 
GeneralRe: disassembling (correctly) managed c++ assemblies? Pin
Stanimir_Stoyanov27-Jun-04 9:03
Stanimir_Stoyanov27-Jun-04 9:03 
GeneralRe: disassembling (correctly) managed c++ assemblies? Pin
cppmanuf30-Jun-04 16:58
cppmanuf30-Jun-04 16:58 
GeneralRe: disassembling (correctly) managed c++ assemblies? Pin
Stanimir_Stoyanov3-Jul-04 3:14
Stanimir_Stoyanov3-Jul-04 3:14 
GeneralHelp I want to change While loop to Nested for loo Pin
JawedVikia8010-Jun-04 21:51
JawedVikia8010-Jun-04 21:51 
Hi friends i am new to c++ and also in the forum this question is my
experiment .Now problem is that , i want to change the while loop to
the nested for loop.
The program's description is as follows :-
Writ a program for a Match stick game between the computer and user .
Program should ensure that the computer always wins .
Rules for the Game are as follows:-
-There are 21 match sticks.
-The computer asks the player to pick 1, 2 ,3, or 4 match sticks .
-After the person picks , the computer does its picking .
-However is forced to pickup the last match stick looses the game .
The programs code is as under



/*Match Stick Game */
# include <stdio.h>
# include<conio.h>
void main ()
{
int m = 21,p,c;
clrscr();
while(1)
{
printf("\n\nNo.of matches left = %d",m);

printf("\npickup 1,2,3,or 4matches");
scanf("%d",&p");
if(p>4||p< 1)
continue;
m = m -p;
printf("\n\nNo. of matches picked up %d",c);
m =m-c;
if(m== 1)
{
printf ("\n\nNumber of matches left %d" ,m);
printf("\nYou lost hte Game !!");
break;
}
}
printf("\n\n\n\n\nPress any key to Exit...");
getch();
}
GeneralRe: Help I want to change While loop to Nested for loo Pin
Jon G11-Jun-04 1:21
Jon G11-Jun-04 1:21 
GeneralNon-unicode to Unicode Pin
ilkertanli9-Jun-04 19:25
ilkertanli9-Jun-04 19:25 
GeneralQuick and easy question Pin
Adam Durity9-Jun-04 9:29
Adam Durity9-Jun-04 9:29 
GeneralRe: Quick and easy question Pin
palbano9-Jun-04 16:08
palbano9-Jun-04 16:08 
GeneralConversion of Unmanaged COM in VC++ to Managed VC++ or C# Pin
imran1899-Jun-04 2:55
imran1899-Jun-04 2:55 
GeneralRe: Conversion of Unmanaged COM in VC++ to Managed VC++ or C# Pin
palbano9-Jun-04 5:49
palbano9-Jun-04 5:49 
Generalimage in a window Pin
nyquisttt8-Jun-04 22:15
nyquisttt8-Jun-04 22:15 
GeneralRe: image in a window Pin
palbano9-Jun-04 5:41
palbano9-Jun-04 5:41 
Generalfiles in c++ Pin
reddys8-Jun-04 22:06
reddys8-Jun-04 22:06 
Generalproblems regarding embedded dlls... Pin
JRacle8-Jun-04 1:27
JRacle8-Jun-04 1:27 
GeneralUsing SetupAPI for installing Ramdrive driver Pin
mtaghiloo7-Jun-04 23:57
mtaghiloo7-Jun-04 23:57 
GeneralCan't compile homework Pin
MisNemesis7-Jun-04 14:55
professionalMisNemesis7-Jun-04 14:55 
GeneralRe: Can't compile homework Pin
Ravi Bhavnani8-Jun-04 10:49
professionalRavi Bhavnani8-Jun-04 10:49 
Generalstring Pin
nyquisttt7-Jun-04 7:13
nyquisttt7-Jun-04 7:13 
GeneralRe: string Pin
Ravi Bhavnani7-Jun-04 7:32
professionalRavi Bhavnani7-Jun-04 7:32 
GeneralRe: string Pin
Ni@m8-Jun-04 10:44
Ni@m8-Jun-04 10:44 
GeneralUsing C++ DLL (from .NET) in C# Pin
choged7-Jun-04 3:19
choged7-Jun-04 3:19 

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.