{"action":"opened","issue":{"url":"https://api.github.com/repos/syeaw0/CS1C---Class-Project-Warehouse/issues/44","labels_url":"https://api.github.com/repos/syeaw0/CS1C---Class-Project-Warehouse/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/syeaw0/CS1C---Class-Project-Warehouse/issues/44/comments","events_url":"https://api.github.com/repos/syeaw0/CS1C---Class-Project-Warehouse/issues/44/events","html_url":"https://github.com/syeaw0/CS1C---Class-Project-Warehouse/issues/44","id":61354284,"number":44,"title":"My Main on my eclipse isn't working so can someone test my code for me. ","user":{"login":"armanJafa","id":10765355,"avatar_url":"https://avatars.githubusercontent.com/u/10765355?v=3","gravatar_id":"","url":"https://api.github.com/users/armanJafa","html_url":"https://github.com/armanJafa","followers_url":"https://api.github.com/users/armanJafa/followers","following_url":"https://api.github.com/users/armanJafa/following{/other_user}","gists_url":"https://api.github.com/users/armanJafa/gists{/gist_id}","starred_url":"https://api.github.com/users/armanJafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armanJafa/subscriptions","organizations_url":"https://api.github.com/users/armanJafa/orgs","repos_url":"https://api.github.com/users/armanJafa/repos","events_url":"https://api.github.com/users/armanJafa/events{/privacy}","received_events_url":"https://api.github.com/users/armanJafa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-14T02:06:12Z","updated_at":"2015-03-14T02:06:12Z","closed_at":null,"body":"\r\nI have been having trouble to get my main to work on my machine at home so can someone test the following code for me and tell me if it is working properly. If not let me know what I need to change. I would normally like for someone to help me fix my main but there is no time so this is the fastest way to fix this I believe. Please let me know what I would need to fix also.  \r\n\r\nHere is my code: \r\n\r\nvoid Warehouse::PrintAmountDueByMonthReport(Date aDate)\r\n{\r\n\tconst int TITLE = 29;\r\n\tconst int MONTH = 11;\r\n\tconst int MEMBER_NAME = 10;\r\n\tconst int AMOUNT_DUE = 10;\r\n\r\n\tint i=0;\r\n\tBasic *perPtr = members.GetHead();\r\n\r\n\tstring memberArray[11];\r\n\r\n\twhile(perPtr!=NULL)\r\n\t{\r\n\t\tmemberArray[i]=perPtr->GetName();\r\n\t\tperPtr=perPtr->GetNext();\r\n\t\ti++;\r\n\t}\r\n\r\n\r\n\t int j;\r\n\r\n\t string tmp;\r\n\t for (i = 0; i < 11; i++)\r\n\t {\r\n\t\t j = i;\r\n\t\t while (j > 0 && memberArray[j - 1] > memberArray[j])\r\n\t\t {\r\n\t\t\t tmp = memberArray[j];\r\n\t\t\t memberArray[j] = memberArray[j - 1];\r\n\t\t\t memberArray[j - 1] = tmp;\r\n\t\t\t j--;\r\n\t\t }//end of while loop\r\n\r\n\t }//end of for loop\r\n\tcout << left;\r\n\tcout << setfill('*');\r\n\tcout << setw(TITLE) << '*' << endl;\r\n\tcout << \"* AMOUNT DUE AT THE END OF MONTH REPORT *\" << endl;\r\n\tcout << setw(TITLE) << '*' << endl;\r\n\tcout << setfill(' ');\r\n\tcout << endl;\r\n\r\n\tcout << setw(MONTH) << \"MONTH   \";\r\n\tcout << setw(MEMBER_NAME) << \"MEMBER NAME  \";\r\n\tcout << setw(AMOUNT_DUE) << \"AMOUNT DUE\";\r\n\tcout << endl;\r\n\r\n\tcout << setfill('-');\r\n\tcout << setw(MONTH) << '-' << \"   \";\r\n\tcout << setw(MEMBER_NAME) << '-' << \"   \";\r\n\tcout << setw(AMOUNT_DUE) << '-';\r\n\tcout << endl;\r\n\r\n\twhile (perPtr != NULL)\r\n\t{\r\n\t\tint i=0;\r\n\t\tif (aDate.GetMonth() == perPtr->GetExpiration().GetMonth())\r\n\t\t{\r\n\t\t\tcout << setw(MONTH) << aDate.GetMonth();\r\n\t\t\tcout << setw(MEMBER_NAME) << memberArray[i];\r\n\t\t\tif (perPtr->GetMemberType() == BASIC)\r\n\t\t\t{\r\n\t\t\t\tcout << setw(AMOUNT_DUE) << \"$55.00\";\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcout << setw(AMOUNT_DUE) << \"$95.00\";\r\n\t\t\t}\r\n\t\t\tcout << endl;\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tperPtr = perPtr->GetNext();\r\n\t}\r\n\r\n\tcout << right;\r\n}\r\n\r\n"}}