1kolok_OOP

Resenija na zadacite za vezbanje za prv kolokvium OOP postaveni na kursot.
 avatargorazd
Publica year ago22 snippets
20.cpp
18.cpp
22.cpp
21.cpp
16.cpp
15.cpp
19.cpp
17.cpp
13.cpp
5.cpp
4.cpp
14.cpp
12.cpp
11.cpp
3.cpp
10.cpp
9.cpp
8.cpp
7.cpp
2.cpp
6.cpp
1.cpp

20

a year ago
20.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Pacient {
    char fullName[100];
    bool insurance;
    int checkups;
};

18

a year ago
18.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct SkiLift {
    char name[15];
    int max;
    bool func;
};

22

a year ago
22.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Proizvod {
    char code[20];
    int price;
    int stock;
};

21

a year ago
21.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Tanc {
    char name[15];
    char origin[15];
};
struct Tancer {

16

a year ago
16.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
#define NEDELI 4
#define DENOVI 5

struct RabotnaNedela {
    int rabotniChasovi[5];
    int nedela;

15

a year ago
15.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
#define NEDELI 4
#define DENOVI 5

struct RabotnaNedela {
    int rabotniChasovi[5];
    int nedela;

19

a year ago
19.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
class IceCream {
    char *name;
    char sostav[100];
    float price;
    int sale;
public:

17

a year ago
17.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
enum osE{DEFAULT=-1,LINUX,UNIX,WINDOWS};
class OperativenSistem {
    char *name;
    float version;
    osE type;
    float size_gb;

13

a year ago
13.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class Zichara {
    char *location;
    int price;
public:
    Zichara(const char *_location = "", int _price = 0) {

5

a year ago
5.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class Gitara {
	char serial[25];
	float price;
	int year;
	char type[40];

4

a year ago
4.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class Patnik{

private:
    char name[100];
    int wagonClass; //1 or 2

14

a year ago
14.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
enum Extension{DEFAULT = -1,pdf,txt,exe};


class File {

    char *name;

12

a year ago
12.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class Pica {
    char name[15];
    int price;
    char *ingredients;
    int percentOff;

11

a year ago
11.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class Ucesnik {
    char *name;
    bool gender;
    int age;
public:

3

a year ago
3.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class StockRecord {
private:
    char id[12];
    char company[50];
    float purchasePrice;

10

a year ago
10.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Igrac {
    char username[15];
    int level;
    int points;
};

9*

a year ago
isto resenie kako 8
9.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Laptop {
    char brand[100];
    float display;
    bool touchScreen;
    int price;

8

a year ago
8.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Laptop {
    char brand[100];
    float display;
    bool touchScreen;
    int price;

7

a year ago
7.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

struct Vozenje {
    char name[100];
    int minutes;
    float price;
    int studentSale;

2

a year ago
2.cpp
#include <iostream>
using namespace std;

class List {
    int *nums;
    int numberOfElements;
public:
    List() {
        nums = nullptr;
        numberOfElements = 0;

6

a year ago
6.cpp
#include <iostream>
#include <cstring>
using namespace std;

struct Voz {
    char relacija[50];
    float km;
    int patnici;
};
struct ZeleznickaStanica {

1

a year ago
1.cpp
#include <iostream>
#include <cstring>
using namespace std;

enum type{DEFAULT = -1,pop,rap,rock};

class Pesna {
	char *name;
	int length;
	type songType;