代码搜索:PROGRAMS
找到约 10,000 项符合「PROGRAMS」的源代码
代码结果 10,000
www.eeworm.com/read/199568/7844688
java enhancedfortest.java
// Fig. 7.12: EnhancedForTest.java
// Using enhanced for statement to total integers in an array.
public class EnhancedForTest
{
public static void main( String args[] )
{
int ar
www.eeworm.com/read/199568/7844696
java gradebooktest.java
// Fig. 7.15: GradeBookTest.java
// Creates GradeBook object using an array of grades.
public class GradeBookTest
{
// main method begins program execution
public static void main( Strin
www.eeworm.com/read/199568/7844765
java spheretest.java
// Exercise 6.6: SphereTest.java
// Calculate the volume of a sphere.
public class SphereTest
{
// application starting point
public static void main( String args[] )
{
Sphere
www.eeworm.com/read/199568/7844807
java crapstest.java
// Fig. 6.10: CrapsTest.java
// Application to test class Craps.
public class CrapsTest
{
public static void main( String args[] )
{
Craps game = new Craps();
game.play();
www.eeworm.com/read/199568/7844827
java continuetest.java
// Fig. 5.13: ContinueTest.java
// continue statement terminating an iteration of a for statement.
public class ContinueTest
{
public static void main( String args[] )
{
for ( int c
www.eeworm.com/read/199568/7844839
java forcounter.java
// Fig. 5.2: ForCounter.java
// Counter-controlled repetition with the for repetition statement.
public class ForCounter
{
public static void main( String args[] )
{
// for state
www.eeworm.com/read/199568/7844871
java breaktest.java
// Fig. 5.12: BreakTest.java
// break statement exiting a for statement.
public class BreakTest
{
public static void main( String args[] )
{
int count; // control variable also used
www.eeworm.com/read/399312/7870817
cpp fig05_14.cpp
// Fig. 5.14: fig05_14.cpp
// continue statement terminating an iteration of a for statement.
#include
using std::cout;
using std::endl;
int main()
{
for ( int count = 1; count
www.eeworm.com/read/399312/7870831
cpp fig05_02.cpp
// Fig. 5.2: fig05_02.cpp
// Counter-controlled repetition with the for statement.
#include
using std::cout;
using std::endl;
int main()
{
// for statement header includes initi
www.eeworm.com/read/399312/7870835
cpp ex05_07.cpp
// Exercise 5.7: ex05_07.cpp
// What does this program print?
#include
using std::cout;
using std::cin;
using std::endl;
int main()
{
int x; // declare x
int y; // declar