-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcamera.cp
More file actions
64 lines (56 loc) · 1.54 KB
/
camera.cp
File metadata and controls
64 lines (56 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Camera.cp
* Camera
*
* Created by Michelle Cortese on 2013-09-16.
* Copyright (c) 2013 Michelle Cortese. All rights reserved.
*
*/
#include <iostream>
#include <cstring>
#include "Camera.h"
#include "CameraPriv.h"
using namespace std;
void printCamera( struct CameraInside camera );
struct CameraInside
{
int filmNumberMM;
int shotNumber;
int shutterSpeed;
float aperture;
bool filmWinder;
bool shutterState;
bool lightIn;
bool filmIn;
std::string bodyType;
std::string lensType;
};
int main( )
{
struct CameraInside cam1;
cam1.filmNumberMM = 35;
cam1.shotNumber = 1;
cam1.shutterSpeed = 60;
cam1.aperture = 1.8;
cam1.filmWinder = false;
cam1.shutterState = true;
cam1.lightIn = true;
cam1.filmIn = true;
cam1.bodyType = "Yashica FX-2";
cam1.lensType = "Yashica DSB 50mm 1:1.9";
printCamera( cam1 );
return 0;
}
void printCamera( struct CameraInside camera )
{
cout << "Film Millimetre : " << camera.filmNumberMM <<endl;
cout << "Shot Number : " << camera.shotNumber <<endl;
cout << "Shutter Speed : " << camera.shutterSpeed <<endl;
cout << "Aperture : " << camera.aperture <<endl;
cout << "Winder in Use : " << camera.filmWinder <<endl;
cout << "Shutter is Open : " << camera.shutterState <<endl;
cout << "Light is Inside Camera : " << camera.lightIn <<endl;
cout << "Film is Loaded : " << camera.filmIn <<endl;
cout << "Camera Body : " << camera.bodyType <<endl;
cout << "Lens : " << camera.lensType <<endl;
}