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

Managed C++/CLI

 
GeneralRe: wondering for some help Pin
Christian Graus15-Sep-04 14:35
protectorChristian Graus15-Sep-04 14:35 
GeneralC# to managed C++ Pin
sreejith ss nair9-Sep-04 22:50
sreejith ss nair9-Sep-04 22:50 
GeneralRe: C# to managed C++ Pin
BAIJUMAX9-Sep-04 23:54
professionalBAIJUMAX9-Sep-04 23:54 
Generalaccess control in a derived class Pin
void()9-Sep-04 13:33
void()9-Sep-04 13:33 
GeneralAn unhandled exception has occurred in your application Pin
Waleed Eissa9-Sep-04 9:46
Waleed Eissa9-Sep-04 9:46 
Generalhelp!!!!! fork program Pin
nivsah7-Sep-04 14:33
nivsah7-Sep-04 14:33 
GeneralHELP!!I code due tomorrow Pin
benibo7-Sep-04 13:52
benibo7-Sep-04 13:52 
GeneralRe: HELP!!I code due tomorrow Pin
BAIJUMAX7-Sep-04 19:32
professionalBAIJUMAX7-Sep-04 19:32 
// Written By Baiju Max
//EMail:- Baijumax@gmail.com,baijumax@yahoo.com

hi man,

enjoy coding .see below solution for u r problem.

#include "stdafx.h"

#using <mscorlib.dll>
#include <tchar.h>

using namespace System;

int _tmain(void)
{
int nMark1(0),nMark2(0),nStudentID(0),nCurrentStudentID(0);
float flAvg(0),flMaxAvg(0);
String* strGrade = new String("No Grade");

//Read The Input From The User
for ( int iIndex = 0 ; iIndex < 2 ; iIndex ++ )
{
Console::Write(S"Pl's Enter The Student ID:");
nCurrentStudentID = Int32::Parse(Console::ReadLine());

Console::Write(S"Enter The Test One Score:") ;
nMark1 = Int32::Parse(Console::ReadLine());

Console::Write(S"Enter The Test One Score:") ;
nMark2 = Int32::Parse(Console::ReadLine());

//Now Caculate Avg
flAvg = (float) (nMark1 + nMark2 )/ 2 ;

if( flMaxAvg < flAvg )
{
flMaxAvg = flAvg;
nStudentID = nCurrentStudentID;

// Now Calculate The Grade
if ( flMaxAvg >= 50 && flMaxAvg < 60 ) //D- Grade 50-59
{ strGrade = "D" ;}
else if ( flMaxAvg >= 60 && flMaxAvg < 70 ) // C- Grade 60-69
{ strGrade = "C" ;}
else if ( flMaxAvg >= 70 && flMaxAvg < 80 ) // B- Grade 70-79
{ strGrade = "B" ;}
else if ( flMaxAvg >= 80 && flMaxAvg < 90 ) // A- Grade 80-89
{ strGrade = "A" ;}
else if ( flMaxAvg >= 90 && flMaxAvg <= 100 ) // S- Grade 90-100
{ strGrade = "A" ;}
else { strGrade = "F" ; }
}
}
Console::Write(S"Student ID Is:" );
Console::Write(nStudentID.ToString());
Console::Write(S"Highest Avg is:");
Console::Write( flMaxAvg.ToString());
Console::Write(S" Grade:");
Console::Write(strGrade);

Console::ReadLine();
return 0;
}

by
baijumaxBig Grin | :-D
GeneralRe: HELP!!I code due tomorrow Pin
benibo12-Sep-04 10:35
benibo12-Sep-04 10:35 
GeneralRe: HELP!!I code due tomorrow Pin
BAIJUMAX12-Sep-04 19:35
professionalBAIJUMAX12-Sep-04 19:35 
GeneralRe: HELP!!I code due tomorrow Pin
benibo13-Sep-04 5:04
benibo13-Sep-04 5:04 
GeneralRe: HELP!!I code due tomorrow Pin
Christian Graus15-Sep-04 14:25
protectorChristian Graus15-Sep-04 14:25 
GeneralRe: HELP!!I code due tomorrow Pin
BAIJUMAX16-Sep-04 4:28
professionalBAIJUMAX16-Sep-04 4:28 
Question&amp;#12298;c++ template&amp;#12299;&amp;#65292;what means the following text? Pin
lzh086-Sep-04 17:20
lzh086-Sep-04 17:20 
AnswerRe: &amp;#12298;c++ template&amp;#12299;&amp;#65292;what means the following text? Pin
Christian Graus15-Sep-04 14:26
protectorChristian Graus15-Sep-04 14:26 
GeneralC++ Problem please respond Pin
jonny55555-Sep-04 22:52
jonny55555-Sep-04 22:52 
GeneralControlling services Pin
Its due when5-Sep-04 21:28
Its due when5-Sep-04 21:28 
Generalopen file Pin
kikicat4-Sep-04 20:33
kikicat4-Sep-04 20:33 
GeneralRe: open file Pin
Christian Graus15-Sep-04 14:28
protectorChristian Graus15-Sep-04 14:28 
QuestionHow to use CreateRemoteThread on every process in every windowstation ? Pin
n4_t14-Sep-04 17:41
n4_t14-Sep-04 17:41 
Generalpseudocode Pin
rapchick3-Sep-04 11:29
rapchick3-Sep-04 11:29 
QuestionHow to add a reference in VC++ Pin
kayhustle3-Sep-04 7:07
kayhustle3-Sep-04 7:07 
AnswerRe: How to add a reference in VC++ Pin
BAIJUMAX7-Sep-04 0:37
professionalBAIJUMAX7-Sep-04 0:37 
GeneralRe: How to add a reference in VC++ Pin
kayhustle7-Sep-04 16:22
kayhustle7-Sep-04 16:22 
GeneralNewbie question Pin
Daniel3000i31-Aug-04 7:52
Daniel3000i31-Aug-04 7:52 

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.