代码搜索:Exercise
找到约 10,000 项符合「Exercise」的源代码
代码结果 10,000
www.eeworm.com/read/208576/15243942
cpp ex06_03.cpp
// Exercise 6.3: ex06_03.cpp
// Testing the math library functions.
#include
using std::cout;
using std::endl;
using std::fixed;
#include
using std::setprecision;
#inc
www.eeworm.com/read/208576/15243943
cpp ex06_10.cpp
// Exercise 6.10: ex06_10.cpp
// Inline function that calculates the volume of a sphere.
#include
using std::cout;
using std::cin;
using std::endl;
#include
using std::pow;
www.eeworm.com/read/207217/15279287
h lengths.h
// Exercise 16.4 Lengths.h
// Length classes
#ifndef LENGTHS_H
#define LENGTHS_H
#include
using std::string;
// Class name declarations - we need these because we want to refer
//
www.eeworm.com/read/207217/15279296
h lengths.h
// Exercise 16.3 Lengths.h
// Length classes
#ifndef LENGTHS_H
#define LENGTHS_H
#include
using std::string;
// Class name declarations - we need these because we want to refer
//
www.eeworm.com/read/207217/15279297
h integer.h
// Exercise 12.3 Integer.h
#ifndef INTEGER_H
#define INTEGER_H
class Integer {
private:
int n;
public:
Integer(int m = 0);
Integer(Integer& obj); // Copy constructor
//
www.eeworm.com/read/207217/15279303
h integer.h
// Exercise 12.2 Integer.h
#ifndef INTEGER_H
#define INTEGER_H
class Integer {
private:
int n;
public:
Integer(int m = 0);
Integer(Integer& obj); // Copy constructor
www.eeworm.com/read/207217/15279315
h time.h
// Exercise 19.1 Time.h
// Definition of Time class
#ifndef TIME_H
#define TIME_H
#include
class Time {
public:
Time(): hours(0),minutes(0), seconds(0){} // Defaul
www.eeworm.com/read/207217/15279317
cpp time.cpp
// Exercise 19.1 Time.cpp
//Time class implementation File
#include "Time.h"
#include
#include
// Constructor
Time::Time(int h, int m, int s) {
seconds = s%60;
www.eeworm.com/read/207217/15279320
cpp time.cpp
// Exercise 19.3 Time.cpp
// Time class implementation File
#include "Time.h"
#include
#include
// Constructor
Time::Time(int h, int m, int s) {
seconds = s%60;
www.eeworm.com/read/207217/15279326
cpp time.cpp
// Exercise 19.2 Time.cpp
// Time class implementation File
#include "Time.h"
#include
#include
// Constructor
Time::Time(int h, int m, int s) {
seconds = s%60;