/***************************** Example of a Variable Bound at Run-Time in Java *******************************/ import java.lancs.*; public class PrintInteger { public static void main (String[] agrs) throws Exception { BasicIo.prompt("Enter an integer value: "); //perform a test to verify data integrity int Number = BasicIo.readInteger(); System.out.println(Number); } }
/******************************* Example of a Variable Bound at Run-Time in C++ ********************************/ #includevoid main() { int Number; fstream file("IntegerFile.dat", ios::binary); //open file file >> Number; //extract data from file // verify data integrity cout << Number << "\n"; }
/******************************* Example of a Variable Bound at Run-Time in C ********************************/ main() { /* ... */ int Grade = GetGradeFromInput(); /* ... */ }
These pages were edited for style and content by
Allan Caine,
Laura Drever,
Gorana Jankovic,
Megan King, and
Marie Lewis.
The original authors of these pages were Graeme Humphries, Chantal
Laplante, Chris Mills, and Melvin Lenz.
Last Modified: Wednesday, June 7th 23:45:30
Copyright 2000 Department of Computer Science, University of
Regina.