comp.lang.c.moderated
  Home FAQ Contact Sign in
comp.lang.c.moderated only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.c.moderated Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  comp.lang.c FAQ list Table of Contents         


Author: Steve Summit
Date: Jun 1, 2008 03:00

Archive-name: C-faq/toc
Comp-lang-c-archive-name: C-FAQ-list.toc
URL: http://www.eskimo.com/~scs/C-faq/top.html

[Last modified July 3, 2004 by scs.]

This article is a table of contents for the comp.lang.c frequently-asked
questions (FAQ) list, listing the questions which the abridged and full
versions of the FAQ list answer. (Both lists answer all questions; the
wordings of the questions in this article are taken from the abridged
list.)

If you have only just come across this article, you will naturally be
wondering where the lists which it indexes can be found. The unabridged
version is normally posted to comp.lang.c on the first of...
Show full article (30.21Kb)
no comments
  Macro substitutions and overriding preprocessor checking.         


Author: bravetanveer
Date: May 29, 2008 08:58

Is the code below possible?

Actually, I wanted to achieve the behavior shown in comments (in the
code below), but I could not do the same with macro substitution for
the code below.

#define A_CLASS_NAME a_t
#define B_CLASS_NAME b_t

#define INITIALIZE_CLASS(myclass, arg) \
initialize_class_##myclass(##arg)

void initialize_class_a_t( int i){}
void initialize_class_b_t( int j){}

int main()
{
int i;

INITIALIZE_CLASS( A_CLASS_NAME, i);
Show full article (0.93Kb)
1 Comment
  Challenging Logic         


Author: Nash
Date: May 29, 2008 08:58

Hi,
I am new to c language and i have a problem to solve. Imagine a
parent child relationship let me take menu as an example

File Edit
New Cut
Window Copy
Message
Open

here File and Edit are Top Level Parents(root menu), New and Open are
children of File. Window and MEssage are children of NEw. Similarly
Cut and Copy are children of Edit.

I can have only 2 functions like Next and GetSubMenu. Initially i will
display File when i say next it should show me edit when i say next it
should show me file.

When i am in File when is say get submenu it should display new and
now next should give me open and next should take me to File since
Open is the last child of File. Similary when i am in New and say
GetSubMenu it should give me Window and Next should give me Message
and Next should give me New.
Show full article (1.20Kb)
2 Comments
  initializer is not a constant         


Author: skyworld
Date: May 28, 2008 11:35

Hi,

I have defined such parameters in my test.h file:

DEFINE_GUID(CY_DEVICE_ORIGINAL,
0xfeca14b8, 0x9796, 0x452c, 0xac, 0x3b, 0x87, 0x8c, 0x9e, 0xbd, 0x54,
0x2b);

GUID CY_DEVICE = CY_DEVICE_ORIGINAL;

But when I compile my test code, I got such errors:

error C2099: initializer is not a constant

Can anybody help me to understand this? Thanks very much.
--
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
4 Comments