代码搜索:Programs
找到约 10,000 项符合「Programs」的源代码
代码结果 10,000
www.eeworm.com/read/256102/12028224
cpp fig08_27.cpp
// Fig. 8.27: fig08_27.cpp
// Card shuffling and dealing program.
#include "DeckOfCards.h" // DeckOfCards class definition
int main()
{
DeckOfCards deckOfCards; // create DeckOfCards object
www.eeworm.com/read/256102/12028231
cpp fig08_12.cpp
// Fig. 8.12: fig08_12.cpp
// Attempting to modify data through a
// non-constant pointer to constant data.
void f( const int * ); // prototype
int main()
{
int y;
f( &y ); // f at
www.eeworm.com/read/256102/12028237
cpp fig08_04.cpp
// Fig. 8.4: fig08_04.cpp
// Using the & and * operators.
#include
using std::cout;
using std::endl;
int main()
{
int a; // a is an integer
int *aPtr; // aPtr is an int * --
www.eeworm.com/read/256102/12028268
cpp fig08_13.cpp
// Fig. 8.13: fig08_13.cpp
// Attempting to modify a constant pointer to non-constant data.
int main()
{
int x, y;
// ptr is a constant pointer to an integer that can
// be modified
www.eeworm.com/read/256102/12028330
cpp fig07_18.cpp
// Fig. 7.18: fig07_18.cpp
// Creates GradeBook object using an array of grades.
#include "GradeBook.h" // GradeBook class definition
// function main begins program execution
int main()
{
www.eeworm.com/read/256102/12028336
cpp fig07_09.cpp
// Fig. 7.9: fig07_09.cpp
// Bar chart printing program.
#include
using std::cout;
using std::endl;
#include
using std::setw;
int main()
{
const int arraySize = 11
www.eeworm.com/read/256102/12028358
cpp fig07_06.cpp
// Fig. 7.6: fig07_06.cpp
// Using a properly initialized constant variable.
#include
using std::cout;
using std::endl;
int main()
{
const int x = 7; // initialized constant var
www.eeworm.com/read/256101/12028415
cpp fig04_18.cpp
// Fig. 4.18: fig04_18.cpp
// Test program for class Analysis.
#include "Analysis.h" // include definition of class Analysis
int main()
{
Analysis application; // create Analysis object
www.eeworm.com/read/256101/12028419
h analysis.h
// Fig. 4.16: Analysis.h
// Definition of class Analysis that analyzes examination results.
// Member function is defined in Analysis.cpp
// Analysis class definition
class Analysis
{
public:
www.eeworm.com/read/256101/12028455
cpp ex04_21.cpp
// Exercise 4.21: ex04_21.cpp
// What does this program print?
#include
using std::cout;
using std::endl;
int main()
{
int count = 1; // initialize count
while ( count