Help please!

I just now started to learn this and i dont know why i cant get it to work please help

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//main.cpp
#include "program.cpp"
#include "header.h"


int main ()
{
   int d;
   char* array[10];
   chararray b(array[10]);
    b.change();
    b.big();
    b.small();
    b.print();
   return 0;
};


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
//program.cpp
#include "header.h"

class chararray
{
private:
    char* bm[11];
    int m,asci,A,a;

public:
    chararray(char bm[11])
    {
        bm={'a','b','c','d','e','f','e','g','h','j','\0'};
    };
    void change()
    {
        cin>>m;
        cin>>bm[m];
    }
    void big()
    {
        asci=A-a;
        for(m=0;m<10;m++)
        {
          bm[m]=int (bm[m])+asci;
        }
    };
    void small()//burtu parveidosana par mazajiem
    {
        for(m=0;m<10;m++)
        {
            bm[m]=int(bm[m])-asci;
        };
    };
    void print(){for(int m=0;m<=10;m++)cout<<bm[m]<<" ";}
};


And i have to make a decomposer, i just dont understand why it does not work :(
Please help
and i have a header.h
Last edited on
What exactly is your issue?
Oh i found the problem i was incorrectly using the part which connects class to main
Last edited on
If his topic is done CLOSE THE TOPIC!
Last edited on
Topic archived. No new replies allowed.