A
adrian suri
Hi
playing with enum, for example system DosCall return int values for disk
partition so say I use an enum
#include <iostream>
using namespace std;
int main()
{
enum drv { A=1, B, C,D,E,F,G,H,I,J,K,L,M,N,O,P };
char dv=drv(1);
cout <<dv;
}
how can I get the letter from the number value char dv=drv(1); does not
work, or is it best to use an array of char instead
adrian
playing with enum, for example system DosCall return int values for disk
partition so say I use an enum
#include <iostream>
using namespace std;
int main()
{
enum drv { A=1, B, C,D,E,F,G,H,I,J,K,L,M,N,O,P };
char dv=drv(1);
cout <<dv;
}
how can I get the letter from the number value char dv=drv(1); does not
work, or is it best to use an array of char instead
adrian