473,473 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

More Macro questions

mdh
I have asked a few questions about Macros...and think what I have been
missing ...and which all who have replied clearly understand...is that
this is a Pre-processor action.
Hopefully the above is true.
So, could someone look at this code, and help me understand why I get
this error.
#include <stdio.h>

#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)

int main (int argc, const char * argv[]) {
int c;
while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
put_char(c);
return 0;
}

I **thought** what would happen is that get_char would be replaced by
"getc(stdin)".

Thanks
Sep 30 '08 #1
16 2750
mdh said:

<snip>
#include <stdio.h>

#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)

int main (int argc, const char * argv[]) {
int c;
while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
put_char(c);
return 0;
}

I **thought** what would happen is that get_char would be replaced by
"getc(stdin)".
Then you'll want #define get_char getc(stdin)

Please bear in mind, though, that this is a poor use of a macro.

The above program would be better written as follows:

#include <stdio.h>

int main(void)
{
int c;
while((c = getchar()) != EOF)
putchar(c);
return 0;
}

Avoid macros except on occasions where their advantages outweigh their
disadvantages, which is pretty rare.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 30 '08 #2
mdh
On Sep 30, 7:21*am, Richard Heathfield <r...@see.sig.invalidwrote:
mdh said:

<snip>
#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)
int main (int argc, const char * argv[]) {
* * int c;
* * while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
* * * * put_char(c);
* * return 0;
}
I **thought** what would happen is that get_char would be replaced by
"getc(stdin)".

Then you'll want #define get_char getc(stdin)

Richard...you lost me. I thought that is what the define statement
did?

>
Please bear in mind, though, that this is a poor use of a macro.

Richard...I have no doubt that this is true. The only reason I did
this was to see **how** they work. Perhaps you could explain why it is
a poor use and when you tend to use it ( rarely...as noted below!) ,
as a good example.

>
The above program would be better written as follows:

#include <stdio.h>

int main(void)
{
* int c;
* while((c = getchar()) != EOF)
* * putchar(c);
* return 0;

}


>
Avoid macros except on occasions where their advantages outweigh their
disadvantages, which is pretty rare.
Sep 30 '08 #3
mdh wrote:
On Sep 30, 7:21 am, Richard Heathfield <r...@see.sig.invalidwrote:
>mdh said:

<snip>
>>>
>>#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)
>>int main (int argc, const char * argv[]) {
int c;
while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
put_char(c);
return 0;
}
>>I **thought** what would happen is that get_char would be replaced
by "getc(stdin)".

Then you'll want #define get_char getc(stdin)


Richard...you lost me. I thought that is what the define statement
did?
with RH's
#define get_char getc(stdin)

you define a plain macro vs. your
#define get_char() getc(stdin)

which defines a function like macro.
But in your code you don't use it as a function like macro:
(c = get_char)

So either use
#define get_char getc(stdin)

or
(c = get_char())

Bye, Jojo
Sep 30 '08 #4
mdh
On Sep 30, 7:35*am, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
wrote:
>
So either use
#define get_char getc(stdin)

or
(c = get_char())

Bye, Jojo
oops...thanks.
Sep 30 '08 #5
On 30 Sep, 15:26, mdh <m...@comcast.netwrote:
On Sep 30, 7:21*am, Richard Heathfield <r...@see.sig.invalidwrote:
mdh said:
#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)
int main (int argc, const char * argv[]) {
* * int c;
* * while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
* * * * put_char(c);
* * return 0;
}
I **thought** what would happen is that get_char would be replaced by
"getc(stdin)".
Then you'll want #define get_char getc(stdin)

Richard...you lost me. I thought that is what the define statement
did?
Please bear in mind, though, that this is a poor use of a macro.

Richard...I have no doubt that this is true. The only reason I did
this was to see **how** they work. Perhaps you could explain why it is
a poor use and when you tend to use it ( rarely...as noted below!) ,
as a good example.
<snip>

macro substitution is carroed out by a macro processor.
The so-called "pre-processor"[1]. The pp is pretty ignorant
of C. It simply substitutes text. This means you have missed
important argument checking that the compiler proper can carry out.
You also get that multiple argument evaluation stuff.

#define SQUARE(A) A * A

looks ok? What does these do?

SQUARE(a++);
SQUARE(a + b);

Another nasty practice is people who decide C syntax can
be improved with a few macros

#define procedure void
#define integer int
#define begin {
#define end }
#define writeln(n) printf ("%d\n", n)
procedure p (integer i)
begin
writeln (i);
end
trust me, no one will thank you for this
[1] at least conceptually. A clever compiler writer may avoid having
a
separate pp stage provided he gets the same answer "as-if" he'd used
a pp. The so-called "as-if" rule.
--
Nick Keighley

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone."
- Bjarne Stroustrup
Sep 30 '08 #6
mdh
On Sep 30, 8:11*am, Nick Keighley <nick_keighley_nos...@hotmail.com>
wrote:
On 30 Sep, 15:26, mdh <m...@comcast.netwrote:
>
<snip>

macro substitution is carroed out by a macro processor.
The so-called "pre-processor"[1]. The pp is pretty ignorant
of C. It simply substitutes text. This means you have missed
important argument checking that the compiler proper can carry out.
You also get that multiple argument evaluation stuff.

thanks Nick. I find it instructive to understand why something is poor
as well as good practice. One of the **disadvantages** ( if there are
any) of K&R is that they do not teach you **bad** C, so this is left
to you ( as in me) to discover. Fortunately, the clc soon disavows one
of one's bad habits!!! :-)

Sep 30 '08 #7
mdh <md**@comcast.netwrites:
I have asked a few questions about Macros...and think what I have been
missing ...and which all who have replied clearly understand...is that
this is a Pre-processor action.
Hopefully the above is true.
So, could someone look at this code, and help me understand why I get
this error.
#include <stdio.h>

#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)

int main (int argc, const char * argv[]) {
int c;
while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
put_char(c);
return 0;
}

I **thought** what would happen is that get_char would be replaced by
"getc(stdin)".
There are two different kinds of macros, "function-like" and
"object-like".

A function-like macro, like your get_char and put_char, takes zero or
more arguments. In the definition, the opening '(' immediately
follows the macro name, without even whitespace between them. An
invocation looks very much like a function call. A reference to the
name of a function-like macro that's not followed by a '(' (possibly
with whitespace in between) isn't recognized. (Possibly making this
an error would have been better.)

And that's the problem in your program; you need to write "get_char()"
rather than "get_char".

An object-like macro takes no arguments; it just expands to whatever
it's defined as. EOF and NULL are examples.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 30 '08 #8
mdh
On Sep 30, 9:46*am, Keith Thompson <ks...@mib.orgwrote:
mdh <m...@comcast.netwrites:

int main (int argc, const char * argv[]) {
* * int c;
* * while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
* * * * put_char(c);
* * return 0;
}
.

A function-like macro, like your get_char and put_char, takes zero or
more arguments. *In the definition, the opening '(' immediately
follows the macro name, without even whitespace between them. *An
invocation looks very much like a function call. *A reference to the
name of a function-like macro that's not followed by a '(' (possibly
with whitespace in between) isn't recognized. *(Possibly making this
an error would have been better.)

And that's the problem in your program; you need to write "get_char()"
rather than "get_char".

An object-like macro takes no arguments; it just expands to whatever
it's defined as. *EOF and NULL are examples.
Thanks Keith.
Just out of curiosity, when would you choose to use a function-like
Macro? I think we spoke before about that being the way that C
implements va_list. But have not seen good examples of user-written
function-like Macros.
Being one who follows good advice ( as far as I can) I take Richard
Heathfield's admonition seriously. "Avoid macros except on occasions
where their advantages outweigh their disadvantages, which is pretty
rare", but I am still curious.

Sep 30 '08 #9
mdh <md**@comcast.netwrites:
[...]
Just out of curiosity, when would you choose to use a function-like
Macro? I think we spoke before about that being the way that C
implements va_list. But have not seen good examples of user-written
function-like Macros.
va_list itself isn't (necessarily) a macro at all, but va_arg,
va_copy, va_end, and va_start are all function-like macros.

Use a function-like macro when you want something that looks and
(mostly) behaves like a callable function, but when an actual function
won't do the job. In the old days, the most common reason was
performance, but modern compilers are generally able to inline small
functions. A function-like macro can be used when you want to pass
something other than an expression value.

The standard offsetof macro is a good example; its second argument is
a member name, something that you couldn't pass to a function.

And any standard function may additionally be implemented as a macro,
usually for performance reasons.

Here's my favorite example of a horrid mis-use of the macro facility,
a demonstration that Douglas Adams was right in The Hitchhiker's Guide
to the Galaxy:

#include <stdio.h>

#define SIX 1+5
#define NINE 8+1

int main(void)
{
printf("%d * %d = %d\n", SIX, NINE, SIX * NINE);
return 0;
}
Being one who follows good advice ( as far as I can) I take Richard
Heathfield's admonition seriously. "Avoid macros except on occasions
where their advantages outweigh their disadvantages, which is pretty
rare", but I am still curious.
Emininently reasonable on both counts.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 30 '08 #10
mdh
On Sep 30, 1:06*pm, Keith Thompson <ks...@mib.orgwrote:
mdh <m...@comcast.netwrites:

[...]
Just out of curiosity, when would you choose to use a function-like
Macro? *I think we spoke before about that being *the way that C
implements *va_list. But have not seen good examples of user-written
function-like Macros.

va_list itself isn't (necessarily) a macro at all, but va_arg,
va_copy, va_end, and va_start are all function-like macros.

Use a function-like macro when you want something that looks and
(mostly) behaves like a callable function, but when an actual function
won't do the job. *In the old days, the most common reason was
performance, but modern compilers are generally able to inline small
functions. *A function-like macro can be used when you want to pass
something other than an expression value.

The standard offsetof macro is a good example; its second argument is
a member name, something that you couldn't pass to a function.

And any standard function may additionally be implemented as a macro,
usually for performance reasons.

Here's my favorite example of a horrid mis-use of the macro facility,
a demonstration that Douglas Adams was right in The Hitchhiker's Guide
to the Galaxy:

#include <stdio.h>

#define SIX 1+5
#define NINE 8+1

int main(void)
{
* * printf("%d * %d = %d\n", SIX, NINE, SIX * NINE);
* * return 0;

}
Being one who follows good advice ( as far as I can) I take Richard
Heathfield's admonition seriously. "Avoid macros except on occasions
where their advantages outweigh their disadvantages, which is pretty
rare", but I am still curious.

Emininently reasonable on both counts.

--
Keith Thompson (The_Other_Keith) ks...@mib.org *<http://www.ghoti.net/~kst>
Nokia
"We must do something. *This is something. *Therefore, we must do this."
* * -- Antony Jay and Jonathan Lynn, "Yes Minister"
Thank you Richard for that explanation.
Sep 30 '08 #11
mdh
On Sep 30, 1:06*pm, Keith Thompson <ks...@mib.orgwrote:
mdh <m...@comcast.netwrites:

[...]
Just out of curiosity, when would you choose to use a function-like
Macro? *I think we spoke before about that being *the way that C
implements *va_list. But have not seen good examples of user-written
function-like Macros.

va_list itself isn't (necessarily) a macro at all, but va_arg,
va_copy, va_end, and va_start are all function-like macros.

Use a function-like macro when you want something that looks and
(mostly) behaves like a callable function, but when an actual function
won't do the job. *In the old days, the most common reason was
performance, but modern compilers are generally able to inline small
functions. *A function-like macro can be used when you want to pass
something other than an expression value.

The standard offsetof macro is a good example; its second argument is
a member name, something that you couldn't pass to a function.

And any standard function may additionally be implemented as a macro,
usually for performance reasons.

Here's my favorite example of a horrid mis-use of the macro facility,
a demonstration that Douglas Adams was right in The Hitchhiker's Guide
to the Galaxy:

#include <stdio.h>

#define SIX 1+5
#define NINE 8+1

int main(void)
{
* * printf("%d * %d = %d\n", SIX, NINE, SIX * NINE);
* * return 0;

}
Being one who follows good advice ( as far as I can) I take Richard
Heathfield's admonition seriously. "Avoid macros except on occasions
where their advantages outweigh their disadvantages, which is pretty
rare", but I am still curious.

Emininently reasonable on both counts.

--
Keith Thompson (The_Other_Keith) ks...@mib.org *<http://www.ghoti.net/~kst>
Nokia
"We must do something. *This is something. *Therefore, we must do this."
* * -- Antony Jay and Jonathan Lynn, "Yes Minister"
Red in Face!!!

Thanks Keith!
Sep 30 '08 #12
mdh <md**@comcast.netwrites:
On Sep 30, 1:06*pm, Keith Thompson <ks...@mib.orgwrote:
>mdh <m...@comcast.netwrites:
[...]
Being one who follows good advice ( as far as I can) I take Richard
Heathfield's admonition seriously. "Avoid macros except on occasions
where their advantages outweigh their disadvantages, which is pretty
rare", but I am still curious.

Emininently reasonable on both counts.

--
Keith Thompson (The_Other_Keith) ks...@mib.org *<http://www.ghoti.net/~kst>
Nokia
"We must do something. *This is something. *Therefore, we must do this."
* * -- Antony Jay and Jonathan Lynn, "Yes Minister"

Red in Face!!!

Thanks Keith!
You're welcome.

You could un-redden your face even more by not quoting the entire
article (particularly the signature) just for a "thanks". Quote just
enough so your followup makes sense on its own.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 30 '08 #13
"mdh" <md**@comcast.netwrote in message
news:79**********************************@z66g2000 hsc.googlegroups.com...
On Sep 30, 9:46 am, Keith Thompson <ks...@mib.orgwrote:
mdh <m...@comcast.netwrites:
>
int main (int argc, const char * argv[]) {
int c;
while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
put_char(c);
return 0;
}
.
A function-like macro, like your get_char and put_char, takes zero or
more arguments. In the definition, the opening '(' immediately
follows the macro name, without even whitespace between them. An
invocation looks very much like a function call. A reference to the
name of a function-like macro that's not followed by a '(' (possibly
with whitespace in between) isn't recognized. (Possibly making this
an error would have been better.)

And that's the problem in your program; you need to write "get_char()"
rather than "get_char".

An object-like macro takes no arguments; it just expands to whatever
it's defined as. EOF and NULL are examples.
Thanks Keith.
Just out of curiosity, when would you choose to use a function-like
Macro?
[...]

You can use function macro names as function pointers for other macros...
Think along lines of something like:
__________________________________________________ _______________
#include <stdio.h>

#define QUOTE_IMPL(mp_text)#mp_text
#define QUOTE(mp_text) \
QUOTE_IMPL(mp_text)
#define PLACE(mp_text)mp_text
#define MY_MACRO_FUNC_1(mp_text) \
PLACE(Hello from my macro func 1 mp_text)

#define MY_MACRO_FUNC_2(mp_text) \
PLACE(Hello from my macro func 2 mp_text)

#define INVOKE_MACRO_FUNC(mp_fpname, mp_params) \
mp_fpname mp_params
int main(void) {
puts(QUOTE(INVOKE_MACRO_FUNC(MY_MACRO_FUNC_1, (invoker.))));
puts(QUOTE(INVOKE_MACRO_FUNC(MY_MACRO_FUNC_2, (invoker.))));
return 0;
}

__________________________________________________ _______________


Here is real world use of macro function pointer:

http://webpages.charter.net/appcore/...-c-v0-002.html

Look at the section under `Array Init Support' and study the PLACE macros.
Then look at the `Global Lock Table' and study the way I initialize the
arrays.


Also read here:

http://groups.google.com/group/comp....674afb7c772df8

Macro function pointers using names of func-like macros as the actual
func-pointer has advantages, such as automating static initialization.

Oct 2 '08 #14
"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
mdh <md**@comcast.netwrites:
>I have asked a few questions about Macros...and think what I have been
missing ...and which all who have replied clearly understand...is that
this is a Pre-processor action.
Hopefully the above is true.
So, could someone look at this code, and help me understand why I get
this error.
#include <stdio.h>

#define get_char() getc(stdin)
#define put_char(x) putc(x, stdout)

int main (int argc, const char * argv[]) {
int c;
while ( (c = get_char) != EOF) /* error: 'get_char' undeclared
(first use in this function) */
put_char(c);
return 0;
}

I **thought** what would happen is that get_char would be replaced by
"getc(stdin)".

There are two different kinds of macros, "function-like" and
"object-like".

A function-like macro, like your get_char and put_char, takes zero or
more arguments. In the definition, the opening '(' immediately
follows the macro name, without even whitespace between them. An
invocation looks very much like a function call.
I am a little confused about the whitespace comment... Are you saying the
following is actually invalid:
#define PLACE(token)token

PLACE ((1+1)==2);
If so, then I really need to correct my awnser to mdh found here:

http://groups.google.com/group/comp....08ac8f4809f335
The 'INVOKE_MACRO_FUNC' macro expansion will insert a whitespace between the
macro "function pointer" name and its argument list... Here is simple
attempt to omit whitespace:
__________________________________________________ _____________
#include <stdio.h>
#include <assert.h>

#define QUOTE_IMPL(mp_text)#mp_text
#define QUOTE(mp_text) \
QUOTE_IMPL(mp_text)
#define PLACE(mp_text)mp_text
#define MY_MACRO_FUNC_1(mp_text) \
PLACE(Hello from my macro func 1 mp_text)

#define MY_MACRO_FUNC_2(mp_text) \
PLACE(Hello from my macro func 2 mp_text)

#define INVOKE_MACRO_FUNC(mp_fpname, mp_params) \
PLACE(mp_fpname)mp_params
int main(void) {
puts(QUOTE(INVOKE_MACRO_FUNC(MY_MACRO_FUNC_1, (invoker.))));
puts(QUOTE(INVOKE_MACRO_FUNC(MY_MACRO_FUNC_2, (invoker.))));
return 0;
}

__________________________________________________ _____________
Now I use PLACE macro to output the token, then the function params
immediately follow it. The expansion should not insert any whitespaces in
between them; well, at least I think it should not! ;^/

Anyway, if I misunderstood you, well, then I am sorry for _wasting_ your
time!

;^(
[...]

Oct 2 '08 #15
"Chris M. Thomasson" <no@spam.invalidwrites:
"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
[...]
>There are two different kinds of macros, "function-like" and
"object-like".

A function-like macro, like your get_char and put_char, takes zero or
more arguments. In the definition, the opening '(' immediately
follows the macro name, without even whitespace between them. An
invocation looks very much like a function call.

I am a little confused about the whitespace comment...
Yes.
Are you saying
the following is actually invalid:
No.
#define PLACE(token)token

PLACE ((1+1)==2);
For a function-like macro, you can't have whitespace between the macro
name and the '(' *in the definition* (i.e., in the #define directive).
In a macro invocation, you can have as much whitespace as you like, or
none at all.

The reason (apart from "the standard says so!") is that, in a macro
definition, the lack of whitespace distinguishes between a definition
of a function-like macro and of an object-like macro that happens to
start with a '('. A macro invocation, on the other hand, looks and
works (in some cases) just like a function call, where all that
matters is the sequence of tokens. "foo(arg)", "foo( arg )", and
"foo ( arg )" are equally valid, and all mean the same thing.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Oct 2 '08 #16

"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
"Chris M. Thomasson" <no@spam.invalidwrites:
>"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
[...]
>>There are two different kinds of macros, "function-like" and
"object-like".

A function-like macro, like your get_char and put_char, takes zero or
more arguments. In the definition, the opening '(' immediately
follows the macro name, without even whitespace between them. An
invocation looks very much like a function call.

I am a little confused about the whitespace comment...

Yes.
[...]

DOH! I am sorry for this retarded non-sense; I totally __MISSED__ the first
three words in the following sentence that you wrote:

[...]
In the definition, the opening '(' immediately follows
the macro name, without even whitespace between them.
[...]

Stupid ME!

ARGH!!!
;^(...

Oct 2 '08 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joel Just Joel | last post by:
Good day, dotnet.general Folks, I'm not sure if this is the correct forum for posting general Visual Studio ..NET questions, but I hope so. If not, please forgive and tell me where to post...
20
by: Jim Ford | last post by:
I understand that some compilers define a symbol that can be used anywhere in the code in order to find out, at run time, the name of the file where the code corresponding to the current execution...
8
by: sathyashrayan | last post by:
/* ** PLURALTX.C - How to print proper plurals ** public domain - original algorithm by Bob Stout */ #include <stdio.h> #define plural_text(n) &"s"
17
by: sounak | last post by:
How could we get a macro name from a macro value such that in a header file #define a 100 #define b 200 now the source file will be such that the user gives 100 then the value is outputted as...
7
by: fei.liu | last post by:
#define ONCFILE_ERR1(funcname, name) \ { \ #ifdef DEBUG\ cerr << __FILE__ << ":" << __LINE__ << " duplicated call to " << funcname << " " << name << endl; \ #endif \ } I want to have...
1
by: David | last post by:
I inherited an excel macro that compares two different worksheets and matches rows from worksheet 2. I created a module that would let me know if there are any duplicates in worksheet 2. The...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
13
by: lightning | last post by:
I have a search form that returns records to another form, rather than a table. Here are my questions: 1) Is it possible to export the form results (as opposed to query results) to CSV? I've been...
6
by: Bing | last post by:
Hi folks, Is there a way to define a macro that may contain #include directive in its body. If I just put the "#include", it gives error C2162: "expected macro formal parameter" since here I am...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.