-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRover.cpp
More file actions
37 lines (32 loc) · 762 Bytes
/
Rover.cpp
File metadata and controls
37 lines (32 loc) · 762 Bytes
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
#include <bits/stdc++.h>
#include "SpaceMission.h"
#include "Rover.h"
#include "unistd.h"
#include "unwind.h"
using namespace std;
Rover::Rover()
{
printf("Enter the destination of the rover : ");
getline(cin, destination);
sleep(1);
printf("Enter weight of rover : ");
cin >> weight_of_rover;
sleep(1);
}
// void Rover::set_destination(string s){
// destination = s;
// }
// void Rover::set_weight_of_rover(int n){
// weight_of_rover = n;
// }
void Rover::check_successful_loading()
{
printf("performing rover loading checkes\n");
sleep(2);
printf("All checks of rover are successful\n");
}
void Rover::load_rover_in_rocket()
{
sleep(2);
printf("Rover is loading and is ready to launch in the orbit");
}