Karthik Agarwal

Karthik Agarwal

  • NA
  • 748
  • 266.1k

How to read from console window in visual studio?

Nov 9 2011 9:14 AM
I have some text like
T_411_A/T_414_B,T_412_A/T_415_A
in which every one of them i.e T_411_A, T_414_B so on are all defined as macro's as follows:

#define T_411_A  0x2341 

every one of them has a unique value. 0x2341 is a unique and the max size of the value which macro may consist of is 4 bytes.

in the above example i need to read those T_411_A or any other macro's from console window as then get the value of the macro.

example: if i give T_411_A in the command prompt then i should get the value of that 0x2341 according to the above example.
Note: this is C code where i am working on visual studio 2008.

Answers (22)