TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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.
Reply
Answers (
22
)
How to write code based on the typedef? thread.
How to read a numerical value from console window and store it in a character array?