Click here to Skip to main content
15,850,446 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SSE3 Intrinsic in g++ Pin
Luc Pattyn4-Nov-09 16:48
sitebuilderLuc Pattyn4-Nov-09 16:48 
GeneralRe: SSE3 Intrinsic in g++ Pin
godot_gildor4-Nov-09 16:57
godot_gildor4-Nov-09 16:57 
QuestionCSocket and "Socket Notification Sink" exception Pin
includeh104-Nov-09 11:35
includeh104-Nov-09 11:35 
AnswerRe: CSocket and "Socket Notification Sink" exception Pin
Richard Andrew x644-Nov-09 15:52
professionalRichard Andrew x644-Nov-09 15:52 
GeneralRe: CSocket and "Socket Notification Sink" exception Pin
Rajesh R Subramanian4-Nov-09 21:26
professionalRajesh R Subramanian4-Nov-09 21:26 
Question[Message Deleted] Pin
includeh104-Nov-09 10:47
includeh104-Nov-09 10:47 
QuestionRe: CSocket and "Socket Notification Sink" PinPopular
David Crow4-Nov-09 11:02
David Crow4-Nov-09 11:02 
Questionchar array contains #define directive [modified] Pin
nikhil_864-Nov-09 10:15
nikhil_864-Nov-09 10:15 
Hey guys,

So I have a directive like this:

#define NOOB_ME 1

Now let's say I have the following char array:

char buf[] = "NOOB_ME"

I want to store the char array in an int variable so that when I do a printf I should get a 1 (as per the value of the directive). Example:

int num = buf(I know this assignment is incorrect, but I want it to be the same as int num = NOOB_ME which is valid and produces an output 1)

Is there any way to get this done?

modified on Wednesday, November 4, 2009 3:32 PM

QuestionRe: char array contains #define directive Pin
David Crow4-Nov-09 10:48
David Crow4-Nov-09 10:48 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 11:01
nikhil_864-Nov-09 11:01 
QuestionRe: char array contains #define directive Pin
David Crow4-Nov-09 11:06
David Crow4-Nov-09 11:06 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 11:13
nikhil_864-Nov-09 11:13 
QuestionRe: char array contains #define directive Pin
David Crow4-Nov-09 11:22
David Crow4-Nov-09 11:22 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 11:41
nikhil_864-Nov-09 11:41 
GeneralRe: char array contains #define directive Pin
David Crow4-Nov-09 11:43
David Crow4-Nov-09 11:43 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 12:01
mveCPallini4-Nov-09 12:01 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 11:47
mveCPallini4-Nov-09 11:47 
QuestionRe: char array contains #define directive Pin
CPallini4-Nov-09 10:52
mveCPallini4-Nov-09 10:52 
AnswerRe: char array contains #define directive Pin
includeh104-Nov-09 10:54
includeh104-Nov-09 10:54 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 11:59
mveCPallini4-Nov-09 11:59 
QuestionCStatusBar & Tool Tips Pin
BarryPearlman4-Nov-09 9:19
BarryPearlman4-Nov-09 9:19 
Question[Message Deleted] Pin
iMikki4-Nov-09 8:57
iMikki4-Nov-09 8:57 
AnswerRe: Creating variables with a variable in its name Pin
Maximilien4-Nov-09 9:18
Maximilien4-Nov-09 9:18 
AnswerRe: Creating variables with a variable in its name Pin
«_Superman_»4-Nov-09 9:30
professional«_Superman_»4-Nov-09 9:30 
GeneralRe: Creating variables with a variable in its name Pin
iMikki4-Nov-09 9:49
iMikki4-Nov-09 9:49 

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.