Click here to Skip to main content
15,895,817 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SSE3 Intrinsic in g++ Pin
Luc Pattyn4-Nov-09 15:48
sitebuilderLuc Pattyn4-Nov-09 15:48 
GeneralRe: SSE3 Intrinsic in g++ Pin
godot_gildor4-Nov-09 15:57
godot_gildor4-Nov-09 15:57 
QuestionCSocket and "Socket Notification Sink" exception Pin
includeh104-Nov-09 10:35
includeh104-Nov-09 10:35 
AnswerRe: CSocket and "Socket Notification Sink" exception Pin
Richard Andrew x644-Nov-09 14:52
professionalRichard Andrew x644-Nov-09 14:52 
GeneralRe: CSocket and "Socket Notification Sink" exception Pin
Rajesh R Subramanian4-Nov-09 20:26
professionalRajesh R Subramanian4-Nov-09 20:26 
Question[Message Deleted] Pin
includeh104-Nov-09 9:47
includeh104-Nov-09 9:47 
QuestionRe: CSocket and "Socket Notification Sink" PinPopular
David Crow4-Nov-09 10:02
David Crow4-Nov-09 10:02 
Questionchar array contains #define directive [modified] Pin
nikhil_864-Nov-09 9:15
nikhil_864-Nov-09 9: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 9:48
David Crow4-Nov-09 9:48 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 10:01
nikhil_864-Nov-09 10:01 
QuestionRe: char array contains #define directive Pin
David Crow4-Nov-09 10:06
David Crow4-Nov-09 10:06 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 10:13
nikhil_864-Nov-09 10:13 
QuestionRe: char array contains #define directive Pin
David Crow4-Nov-09 10:22
David Crow4-Nov-09 10:22 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 10:41
nikhil_864-Nov-09 10:41 
GeneralRe: char array contains #define directive Pin
David Crow4-Nov-09 10:43
David Crow4-Nov-09 10:43 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 11:01
mveCPallini4-Nov-09 11:01 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 10:47
mveCPallini4-Nov-09 10:47 
QuestionRe: char array contains #define directive Pin
CPallini4-Nov-09 9:52
mveCPallini4-Nov-09 9:52 
AnswerRe: char array contains #define directive Pin
includeh104-Nov-09 9:54
includeh104-Nov-09 9:54 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 10:59
mveCPallini4-Nov-09 10:59 
QuestionCStatusBar & Tool Tips Pin
BarryPearlman4-Nov-09 8:19
BarryPearlman4-Nov-09 8:19 
Question[Message Deleted] Pin
iMikki4-Nov-09 7:57
iMikki4-Nov-09 7:57 
AnswerRe: Creating variables with a variable in its name Pin
Maximilien4-Nov-09 8:18
Maximilien4-Nov-09 8:18 
AnswerRe: Creating variables with a variable in its name Pin
«_Superman_»4-Nov-09 8:30
professional«_Superman_»4-Nov-09 8:30 
GeneralRe: Creating variables with a variable in its name Pin
iMikki4-Nov-09 8:49
iMikki4-Nov-09 8: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.