代码搜索:Programs
找到约 10,000 项符合「Programs」的源代码
代码结果 10,000
www.eeworm.com/read/113029/15472405
cpp fig07_10.cpp
// Fig. 7.10: fig07_10.cpp
// Demonstrating composition--an object with member objects.
#include
using std::cout;
using std::endl;
#include "employee1.h" // Employee class definit
www.eeworm.com/read/113029/15472415
h time4.h
// Fig. 6.21: time4.h
// Declaration of class Time.
// Member functions defined in time4.cpp
// prevent multiple inclusions of header file
#ifndef TIME4_H
#define TIME4_H
class Time {
www.eeworm.com/read/113029/15472439
cpp fig15_03.cpp
// Fig. 16.3: fig16_03.cpp
// Demonstrating string member function substr.
#include
using std::cout;
using std::endl;
#include
using std::string;
int main()
{
s
www.eeworm.com/read/113029/15472455
cpp fig05_04.cpp
// Fig. 5.4: fig05_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 a p
www.eeworm.com/read/113029/15472459
cpp fig05_12.cpp
// Fig. 5.12: fig05_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
www.eeworm.com/read/113029/15472468
cpp fig05_13.cpp
// Fig. 5.13: fig05_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 modi
www.eeworm.com/read/113029/15472476
cpp fig13_04.cpp
// Fig. 13.4: fig13_04.cpp
// Demonstrating pre-standard new returning 0 when memory
// is not allocated.
#include
using std::cout;
int main()
{
double *ptr[ 50 ];
// a
www.eeworm.com/read/113029/15472482
cpp fig01_05.cpp
// Fig. 1.5: fig01_05.cpp
// Printing multiple lines with a single statement.
#include
// function main begins program execution
int main()
{
std::cout
www.eeworm.com/read/113029/15472483
cpp fig01_04.cpp
// Fig. 1.4: fig01_04.cpp
// Printing a line with multiple statements.
#include
// function main begins program execution
int main()
{
std::cout
www.eeworm.com/read/113029/15472491
cpp ex02_42.cpp
// Ex. 2.42: ex02_42.cpp
// What does this program print?
#include
using std::cout;
using std::cin;
using std::endl;
// function main begins program execution
int main()
{
i