Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes from Version 1 of MakingCalculations

Show
Ignore:
Author:
jcc7 (IP: 68.97.93.38)
Timestamp:
11/05/05 00:13:04 (18 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MakingCalculations

    v0 v1  
     1= Declaring Variables = 
     2 
     3''Part of'' TutorialFundamentals 
     4 
     5In order to store information within a D program, you must declare variables before they are used. The syntax is ''name_of_type'' ''identifier''. 
     6 
     7{{{ 
     8#!d 
     9void main() 
     10{ 
     11    int myInteger; 
     12    double myDouble; 
     13    bit myBit; 
     14    char[] myString; 
     15} 
     16}}}