Click here to Skip to main content
15,893,814 members
Articles / Programming Languages / C++

Building a simple C++ script compiler from Scintilla and CINT

Rate me:
Please Sign up or sign in to vote.
4.74/5 (26 votes)
8 Jul 2006CPOL7 min read 154.4K   7.6K   85  
How to build a simple C++ script compiler from Scintilla and CINT.
/*******************************************************************
* constants.h
*
*******************************************************************/

#ifndef G__CONSTANTS_H
#define G__CONSTANTS_H

const double PI = 3.141592653590; // the circular constant

const double E0 = 8.854e-12;// absolute permittivity of vacuum (F/m)
const double U0 = 4*PI*1e-7; // absolute permeability of vacuum (H/m)

const double E = 1.60210e-19; // charge of an electron (C)

const double ME = 9.1091e-31; // mass of an electron (kg)
const double MA = 1.67252e-27; // mass of a proton (kg)

const double C0 = 2.997925e8; // light velocity in vacuum (m/sec)

const double KCU = 5.800e7; // cupper consuctivity (moh/m)

const double G = 9.807; // gravity accelaration (m/sec^2)

const double K = 1.380e-23; // Boltzmann's constant (J/K)
const double H = 6.625e-34; // Planck's constant (J*sec)
const double N = 6.025e26; // Avogadro's number (1/kg/mol)

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions