preprocessor tag

13 questions


3 answers
60 views
0
What is the difference between const and define?

How do you use these two differently?Should I unify it to one of them?I may have skipped it when I was getting started, but I don't remember it at all

2 years ago

4 answers
106 views
0
# With regard to

You are now trying to deploy the C++ macro on your own.So I found #define and it looked like this.#ifndef OuHolder_h#define OuHolder_h#define like this seems to indicate OuHolder_h is defined.I don't ...

2 years ago

4 answers
123 views
0
# With regard to

You are now trying to deploy the C++ macro on your own.So I found #define and it looked like this.#ifndef OuHolder_h#define OuHolder_h#define like this seems to indicate OuHolder_h is defined.I don't ...

2 years ago

3 answers
129 views
0
In Java, to use macros in the C language,

Now I'm trying to convert the source written in C++ to Java.I'm having trouble expanding and rewriting macros.In particular, I am having trouble developing #define, #ifdef/#ifndefCould someone tell me...

2 years ago

3 answers
62 views
0
In Java, to use macros in the C language,

Now I'm trying to convert the source written in C++ to Java.I'm having trouble expanding and rewriting macros.In particular, I am having trouble developing #define, #ifdef/#ifndefCould someone tell me...

2 years ago

4 answers
145 views
0
What is the clear difference between declaration and definition?

What is the clear difference between declaration and definition?For example, can I consider the following examples as both definitions?#define a100#define ba

2 years ago

2 answers
99 views
0
What is the difference between include and declaration?

For example, in the sentence below, #include<iostream># include <cmath>float Myabs (float x);int main() { float a = 2.5; std::cout<<Myabs(a)<<std::abs(a); a = -5.25; std::cout&...

2 years ago

1 answers
76 views
0
To detect OS (OS X/Linux/Windows, etc.) on a C preprocessor?

I'm going to make a C/C++ code that supports multiple platformsYou want to determine which platform the preprocessor is using.Where can I find relevant information?


1 answers
108 views
0
Why does "No newline at end of file" appear?

The C++ compiler keeps saying No newline at end of file and raising the warning.Why should I enter at the end of the source/header file?It's not even an error. It's annoying and I don't feel like it. ...


1 answers
103 views
0
How to handle scripts woven from C language to bone shell

You are about to use bash script in C language.You don't have to run the bash script fileAs shown in the source below, I want to define the bash script as a definition statement and then run it in the...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.