{"action":"created","issue":{"url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project/issues/1","repository_url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project","labels_url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project/issues/1/comments","events_url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project/issues/1/events","html_url":"https://github.com/WildsoulandLoneDruid/Home-Project/issues/1","id":140868462,"number":1,"title":"My  version of Room Class","user":{"login":"NSuri1","id":15632487,"avatar_url":"https://avatars.githubusercontent.com/u/15632487?v=3","gravatar_id":"","url":"https://api.github.com/users/NSuri1","html_url":"https://github.com/NSuri1","followers_url":"https://api.github.com/users/NSuri1/followers","following_url":"https://api.github.com/users/NSuri1/following{/other_user}","gists_url":"https://api.github.com/users/NSuri1/gists{/gist_id}","starred_url":"https://api.github.com/users/NSuri1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSuri1/subscriptions","organizations_url":"https://api.github.com/users/NSuri1/orgs","repos_url":"https://api.github.com/users/NSuri1/repos","events_url":"https://api.github.com/users/NSuri1/events{/privacy}","received_events_url":"https://api.github.com/users/NSuri1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-15T04:24:15Z","updated_at":"2016-03-15T04:46:12Z","closed_at":null,"body":"#include <iostream>\r\n#include <cstring>\r\nusing namespace std;\r\n\r\n#ifndef ROOM_H\r\n#define ROOM_H\r\n\r\nconst int SIZE = 100;\r\n\r\nclass Room()\r\n{\r\n\tprivate:\r\n\tchar color[SIZE];\r\n\tint lf;\r\n\tint li;\r\n\tint wf;\r\n\tint wi;\r\n\tint hf;\r\n\tint hi;\r\n\tchar floor[SIZE];\r\n\r\n\tpublic:\r\n    Room()\r\n    {\r\n        strcpy(color, \" \");\r\n        lf=0;\r\n        li=0;\r\n        wf=0;\r\n        wi=0;\r\n        hf=0;\r\n        hi=0;\r\n        strcpy(floor, \" \");\r\n    }\r\n\r\n    Room(const Room &blueprint)\r\n\t{\r\n\t\tstrcpy(color, blueprint.getColor());\r\n        lf=blueprint.getLF();\r\n        li=blueprint.getLI();\r\n        wf=blueprint.getWF();\r\n        wi=blueprint.getWI();\r\n        hf=blueprint.getHF();\r\n        hi=blueprint.getHI();\r\n        strcpy(floor, blueprint.getFloor());\r\n\t}\r\n\r\n\tvoid operator=(const Room &right)\r\n\t{\r\n        strcpy(color, right.getColor());\r\n        lf=right.getLF();\r\n        li=right.getLI();\r\n        wf=right.getWF();\r\n        wi=right.getWI();\r\n        hf=right.getHF();\r\n        hi=right.getHI();\r\n        strcpy(floor, right.getFloor());\r\n\t}\r\n\r\n\t~Room()\r\n\t{\r\n\t    delete [] color;\r\n\t    delete [] floor;\r\n\t}\r\n\r\n\tvoid setColor(string c)\r\n\t{\r\n        strcpy(color, c.c_str());\r\n\t}\r\n\r\n\tvoid setLF(int f)\r\n\t{\r\n\t    lf=f;\r\n\t}\r\n\r\n\tvoid setLI(int i)\r\n\t{\r\n\t    li=i;\r\n\t}\r\n\r\n\tvoid setWF(int f)\r\n\t{\r\n\t    wf=f;\r\n\t}\r\n\r\n\tvoid setWI(int i)\r\n\t{\r\n\t    wi=i;\r\n\t}\r\n\r\n\tvoid setHF(int f)\r\n\t{\r\n\t    hf=f;\r\n\t}\r\n\r\n\tvoid setHI(int i)\r\n\t{\r\n\t    hi=i;\r\n\t}\r\n\tvoid setFloor(string fl)\r\n\t{\r\n\t    strcpy(floor, fl.c_str());\r\n\t}\r\n\r\n\tstring getColor()\r\n    {\r\n        string c;\r\n        c=color;\r\n        return c\r\n    }\r\n\r\n    int getLF()\r\n    {\r\n        return lf;\r\n    }\r\n\r\n    int getLI()\r\n    {\r\n        return li;\r\n    }\r\n\r\n    int getWF()\r\n    {\r\n        return wf;\r\n    }\r\n\r\n    int getWI()\r\n    {\r\n        return wi;\r\n    }\r\n\r\n    int getHF()\r\n    {\r\n        return hf;\r\n    }\r\n\r\n    int getHI()\r\n    {\r\n        return hi;\r\n    }\r\n\r\n    string getFloor()\r\n    {\r\n        string Fl;\r\n        Fl=floor;\r\n        return Fl\r\n    }\r\n\r\n    void addData(string c, int linch, int winch, int hinch, string fl)\r\n    {\r\n        setColor(c);\r\n        string i=0;\r\n        string f=0;\r\n        i=linch%12;\r\n        f=(linch-(linch%12))/12;\r\n        setLF(f);\r\n        setLI(i);\r\n        i=winch%12;\r\n        f=(winch-(winch%12))/12;\r\n        setWF(f);\r\n        setWI(i);\r\n        i=hinch%12;\r\n        f=(hinch-(hinch%12))/12;\r\n        setHF(f);\r\n        setHI(i);\r\n        setFloor(fl);\r\n    }\r\n\r\n    void display()\r\n    {\r\n        cout<<\"The color of this room is \"<<color<<\" .\\n\";\r\n        cout<<\"The dimensions are \"<< lf<<\" '\"<<li<<\"\\\" X \"<< wf<<\" '\"<< wi<<\"\\\" X \"<< hf<<\" '\"<<hi<<\"\\\" .\\n\";\r\n\t\tcout<< \"The room is \"<<(((lf*12)+li)*((wf*12)+wi))<< \" sq.in. or about \"<< (((lf*12)+li)*((wf*12)+wi))/144<< \" sq.ft.\\n\";\r\n    }\r\n};\r\n#endif\r\n"},"comment":{"url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project/issues/comments/196655036","html_url":"https://github.com/WildsoulandLoneDruid/Home-Project/issues/1#issuecomment-196655036","issue_url":"https://api.github.com/repos/WildsoulandLoneDruid/Home-Project/issues/1","id":196655036,"user":{"login":"NSuri1","id":15632487,"avatar_url":"https://avatars.githubusercontent.com/u/15632487?v=3","gravatar_id":"","url":"https://api.github.com/users/NSuri1","html_url":"https://github.com/NSuri1","followers_url":"https://api.github.com/users/NSuri1/followers","following_url":"https://api.github.com/users/NSuri1/following{/other_user}","gists_url":"https://api.github.com/users/NSuri1/gists{/gist_id}","starred_url":"https://api.github.com/users/NSuri1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSuri1/subscriptions","organizations_url":"https://api.github.com/users/NSuri1/orgs","repos_url":"https://api.github.com/users/NSuri1/repos","events_url":"https://api.github.com/users/NSuri1/events{/privacy}","received_events_url":"https://api.github.com/users/NSuri1/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T04:46:12Z","updated_at":"2016-03-15T04:46:12Z","body":"Fixed all 44 errors from the previous post:\r\n\r\n#include <iostream>\r\n#include <cstring>\r\n#include <string>\r\nusing namespace std;\r\n\r\n#ifndef ROOM_H\r\n#define ROOM_H\r\n\r\nconst int SIZE = 100;\r\n\r\nclass Room\r\n{\r\n\tprivate:\r\n\tchar color[SIZE];\r\n\tint lf;\r\n\tint li;\r\n\tint wf;\r\n\tint wi;\r\n\tint hf;\r\n\tint hi;\r\n\tchar floor[SIZE];\r\n\r\n\tpublic:\r\n    Room()\r\n    {\r\n        strcpy(color, \" \");\r\n        lf=0;\r\n        li=0;\r\n        wf=0;\r\n        wi=0;\r\n        hf=0;\r\n        hi=0;\r\n        strcpy(floor, \" \");\r\n    }\r\n\r\n    Room(const Room &blueprint)\r\n\t{\r\n\t\tstrcpy(color, blueprint.color);\r\n        lf=blueprint.lf;\r\n        li=blueprint.li;\r\n        wf=blueprint.wf;\r\n        wi=blueprint.wi;\r\n        hf=blueprint.hf;\r\n        hi=blueprint.hi;\r\n        strcpy(floor, blueprint.floor);\r\n\t}\r\n\r\n\tvoid operator=(const Room &right)\r\n\t{\r\n        strcpy(color, right.color);\r\n        lf=right.lf;\r\n        li=right.li;\r\n        wf=right.wf;\r\n        wi=right.wi;\r\n        hf=right.hf;\r\n        hi=right.hi;\r\n        strcpy(floor, right.floor);\r\n\t}\r\n\r\n\t~Room()\r\n\t{\r\n\t    delete [] color;\r\n\t    delete [] floor;\r\n\t}\r\n\r\n\tvoid setColor(string c)\r\n\t{\r\n        strcpy(color, c.c_str());\r\n\t}\r\n\r\n\tvoid setLF(int f)\r\n\t{\r\n\t    lf=f;\r\n\t}\r\n\r\n\tvoid setLI(int i)\r\n\t{\r\n\t    li=i;\r\n\t}\r\n\r\n\tvoid setWF(int f)\r\n\t{\r\n\t    wf=f;\r\n\t}\r\n\r\n\tvoid setWI(int i)\r\n\t{\r\n\t    wi=i;\r\n\t}\r\n\r\n\tvoid setHF(int f)\r\n\t{\r\n\t    hf=f;\r\n\t}\r\n\r\n\tvoid setHI(int i)\r\n\t{\r\n\t    hi=i;\r\n\t}\r\n\tvoid setFloor(string fl)\r\n\t{\r\n\t    strcpy(floor, fl.c_str());\r\n\t}\r\n\r\n\tstring getColor()\r\n    {\r\n        string c;\r\n        c=color;\r\n        return c;\r\n    }\r\n\r\n    int getLF()\r\n    {\r\n        return lf;\r\n    }\r\n\r\n    int getLI()\r\n    {\r\n        return li;\r\n    }\r\n\r\n    int getWF()\r\n    {\r\n        return wf;\r\n    }\r\n\r\n    int getWI()\r\n    {\r\n        return wi;\r\n    }\r\n\r\n    int getHF()\r\n    {\r\n        return hf;\r\n    }\r\n\r\n    int getHI()\r\n    {\r\n        return hi;\r\n    }\r\n\r\n    string getFloor()\r\n    {\r\n        string Fl;\r\n        Fl=floor;\r\n        return Fl;\r\n    }\r\n\r\n    void addData(string c, int linch, int winch, int hinch, string fl)\r\n    {\r\n        setColor(c);\r\n        int i=0;\r\n        int f=0;\r\n        i=linch%12;\r\n        f=(linch-(linch%12))/12;\r\n        setLF(f);\r\n        setLI(i);\r\n        i=winch%12;\r\n        f=(winch-(winch%12))/12;\r\n        setWF(f);\r\n        setWI(i);\r\n        i=hinch%12;\r\n        f=(hinch-(hinch%12))/12;\r\n        setHF(f);\r\n        setHI(i);\r\n        setFloor(fl);\r\n    }\r\n\r\n    void display()\r\n    {\r\n        cout<<\"The color of this room is \"<<color<<\" .\\n\";\r\n        cout<<\"The dimensions are \"<< lf<<\" '\"<<li<<\"\\\" X \"<< wf<<\" '\"<< wi<<\"\\\" X \"<< hf<<\" '\"<<hi<<\"\\\" .\\n\";\r\n\t\tcout<< \"The room is \"<<(((lf*12)+li)*((wf*12)+wi))<< \" sq.in. or about \"<< (((lf*12)+li)*((wf*12)+wi))/144<< \" sq.ft.\\n\";\r\n\t\tcout<<\"The flooring is \"<<floor<<\".\\n\";\r\n    }\r\n};\r\n#endif"}}