|
by: s |
last post by:
Can I do this:
#define MYSTRING "ABC"
..
..
..
char mychar = MYSTRING;
..
..
..
|
by: Carl Ribbegaardh |
last post by:
What other c++ constructs can I use instead of #define for executing a
couple of functions?
Example:
#define DO_STUFF doThis(); doThat();
I'd guess that I can either use a template function,...
|
by: Jorge Naxus |
last post by:
Hello
I would like to write a macro like that:
#ifdef DEBUG
#define printj(...) printf(...)
#else
#printj(...)
#endif
|
by: BQ |
last post by:
Hello
Is there a way to declare 'FUNCT' via a define so that if its parameter x, a constant, is
greater than 35, it returns 56, if not, 20.
I would like that at compile time, not at run time.
...
|
by: No Spam |
last post by:
----snip
#define POSITIVE_INTEGRATOR_SATURATION 0x03000000L //
#define NEGATIVE_INTEGRATOR_SATURATION 0xFD000000L //
long integrator;
integrator=0;
|
|
by: baumann |
last post by:
hi all,
typedef int (*pfunc)(int , int);
pfunc a_func;
i know it's ok,
but how can define a_func without typedef statement?
thanks .
|
by: Nobody |
last post by:
Anyone have a clean way of solving this define issue?
In Windows, there are sometimes unicode functions and multibyte functions...
the naming convention used is FunctionA for multibyte and...
|
by: Ancient_Hacker |
last post by:
It sure would be nice if I could have a macro that add a level of
indirection to its argument.
So if I write: AddIndirection( X )
The macro AddIndirection will do: #define X (*X)
...
|
by: leonm54 |
last post by:
I have nightmares about code similar to the following:
#define NUM_TRIES 10 // Number of tries before we eject them
....
if ( iCurrentTicks NUM_TRIES)
{
....
}
|
by: aaragon |
last post by:
Hi everyone, I have a simple question. I'm trying to make a macro in
one file so I can use it in main.cpp. The idea is that I the user of
my code has simple to type the macro definition to replace...
|
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,...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
|