• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

When to use #define?

for ex- #define PI 3.14

t
18th Apr 2018, 5:22 PM
ELECTRICAL ENGINEER
ELECTRICAL ENGINEER - avatar
1 Antwort
+ 2
https://stackoverflow.com/questions/6274008/why-would-someone-use-define-to-define-constants?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa But also useful to stop a .hpp or .h file being processed more than once. #ifndef __fred__h__ #define __fred__h__ // put innards of .h file here. #endif
18th Apr 2018, 6:28 PM
Emma

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
What programming language should i learn to make applications or games?
0 Votes
I need help
1 Votes
My hearts are disappering :(
0 Votes
How to learn python fast than usual in sololearn?
0 Votes
What can html, css and javascript do
0 Votes
Pressure and tension
2 Votes
How to make a selection on a calculator in Python
0 Votes
Conducción de calor o Q=−kAdTdxQ = -k A \frac{dT}{dx}Q=−kAdxdT o Pared 2 m², espesor 0.1 m, k = 50 W/m°C, ΔT = 30°C → Q ≈ 30,0
0 Votes
a phone or a laptop
0 Votes
Where is code bit
0 Votes