1kolok_OOP

Resenija na zadacite za vezbanje za prv kolokvium OOP postaveni na kursot.
gorazd avatargorazd
Public03/19/2025 4:16 PM22 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

03/23/2025 10:21 AM
20.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

18

03/23/2025 1:06 AM
18.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

22

03/23/2025 12:48 AM
22.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

21

03/22/2025 6:54 PM
21.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

16

03/22/2025 6:47 PM
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

03/22/2025 6:43 PM
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

03/22/2025 6:19 PM
19.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
class IceCream {
    char *name;
    char sostav[100];
    float price;
    int sale;
public:

17

03/22/2025 5:14 PM
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

03/22/2025 12:46 PM
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

03/22/2025 11:06 AM
5.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

4

03/22/2025 9:55 AM
4.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

class Patnik{

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

14

03/21/2025 8:39 PM
14.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;
enum Extension{DEFAULT = -1,pdf,txt,exe};


class File {

    char *name;

12

03/21/2025 7:51 PM
12.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

11

03/21/2025 12:09 AM
11.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

3

03/20/2025 11:29 PM
3.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

10

03/20/2025 7:15 PM
10.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

9*

03/20/2025 6:58 PM
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

03/20/2025 6:55 PM
8.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

7

03/19/2025 10:49 PM
7.cpp
#include <iostream>
#include <cstring>
#include  <iomanip>
using namespace std;

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

2

03/19/2025 10:23 PM
2.cpp
#include <iostream>
using namespace std;

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

6

03/19/2025 10:23 PM
6.cpp
#include <iostream>
#include <cstring>
using namespace std;

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

1

03/19/2025 4:17 PM
1.cpp
#include <iostream>
#include <cstring>
using namespace std;

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

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