Student Registration System problem, error & question

Posted 06 June 2012 - 06:35 AM

I am trying to make a student registration with student login. It has the ability to register courses and check grades of previues courses he took semsters ago.

So the student first logins then he has option to either check grades or register courses. After the student selected the semester, he has two options either to register or to check grades. The registration lets the student select the semester for the current year and add multiple courses, also it has the option to drop them.

______________________________________________________________
These are code files to know what I'm planning.

The real problem I'm having is with the logic I do not know how to let the registered student assign a semester with 5 courses max in registration. Also I do not know how to assign a course with a grade.
I mean all of em are array of strings. I do not know how to implement the idea or the logic any suggestions.

You desperately need to find an indentation style you like and use it consistently. As your code is presented, without any logical formatting, it is very hard to read.

Jim

I am surprised it seems you never read the error properly. I think its got something to do with external non related to the code I already mentioned that the error is related to symbols.
I clicked properties then linker then input these are the .lib included under additional dependencies

Re: Student Registration System problem, error & question

I am surprised it seems you never read the error properly. I think its got something to do with external non related to the code I already mentioned that the error is related to symbols.

No, I read the error messages but because of the horrible formatting I didn't look too closely at your code. This is definitely an issue with your code, not some missing lib file.

It seems that you have not properly read your errors properly.

In your original code there was no main(), it was called menu(). Also the function main() should not be within your SRSY namespace, it should be in the global scope.

I also still don't see an SRS::setlogin() function, I see a grades::setlogin(), a login::setlogin(), but no SRS::setlogin().

Also since you are playing with namespaces I recommend you stop using the using namespace std; clause, especially inside your header files. When you use this you are basically defeating the purpose of namespaces. By using this statement in your header file, every file that includes that header now has this using statement.

Re: Student Registration System problem, error & question

I am surprised it seems you never read the error properly. I think its got something to do with external non related to the code I already mentioned that the error is related to symbols.

No, I read the error messages but because of the horrible formatting I didn't look too closely at your code. This is definitely an issue with your code, not some missing lib file.

It seems that you have not properly read your errors properly.

In your original code there was no main(), it was called menu(). Also the function main() should not be within your SRSY namespace, it should be in the global scope.

I also still don't see an SRS::setlogin() function, I see a grades::setlogin(), a login::setlogin(), but no SRS::setlogin().

Also since you are playing with namespaces I recommend you stop using the using namespace std; clause, especially inside your header files. When you use this you are basically defeating the purpose of namespaces. By using this statement in your header file, every file that includes that header now has this using statement.

Jim

I apologies for my mistakes. I edited few of the problems.
* menu changed to main
* removed using namespace std;
* removed SRSY namespace from SRS.cpp
* I did not write SRS::setlogin because its only accessable by login::Setlogin so only login class can setlogin. That is my goal its like read only for SRS.h but read & write in login.h

Re: Student Registration System problem, error & question

I did not write SRS::setlogin because its only accessable by login::Setlogin so only login class can setlogin. That is my goal its like read only for SRS.h but read & write in login.h

Then why are you trying to use the SRS class inside main()? You make an instance of SRS called S1 in main then try to call S1.setlogin(). This is calling SRS::setlogin(), which you have not implemented.

Also main should be defined as returning an int, int main() and you should return an int from this function.

Re: Student Registration System problem, error & question

I did not write SRS::setlogin because its only accessable by login::Setlogin so only login class can setlogin. That is my goal its like read only for SRS.h but read & write in login.h

Then why are you trying to use the SRS class inside main()? You make an instance of SRS called S1 in main then try to call S1.setlogin(). This is calling SRS::setlogin(), which you have not implemented.

Also main should be defined as returning an int, int main() and you should return an int from this function.

Jim

I think your right it fixed it but there still is a missing symbol library.

Re: Student Registration System problem, error & question

Posted 07 June 2012 - 09:53 AM

Please update the code so that we can see what changes you have done. Most of us do not have psychic abilities of mind reading or clairoyance, nor can we astrally project to see what is on your computer.

Re: Student Registration System problem, error & question

Posted 07 June 2012 - 10:03 AM

Skydiver, on 07 June 2012 - 09:53 AM, said:

Please update the code so that we can see what changes you have done. Most of us do not have psychic abilities of mind reading or clairoyance, nor can we astrally project to see what is on your computer.

Please, please, please, take the 15 minutes to fix your indents.

I have changed the code before you posted this reply. After every suggestion I update my code above by clicking the edit button. Since the code is long and the font is small you might not notice small changes like replacing SRS S1 to login l1 for the recent post that I did minutes ago before you replied.

Re: Student Registration System problem, error & question

I did not write SRS::setlogin because its only accessable by login::Setlogin so only login class can setlogin. That is my goal its like read only for SRS.h but read & write in login.h

Then why are you trying to use the SRS class inside main()? You make an instance of SRS called S1 in main then try to call S1.setlogin(). This is calling SRS::setlogin(), which you have not implemented.

Also main should be defined as returning an int, int main() and you should return an int from this function.

Re: Student Registration System problem, error & question

I did not write SRS::setlogin because its only accessable by login::Setlogin so only login class can setlogin. That is my goal its like read only for SRS.h but read & write in login.h

Then why are you trying to use the SRS class inside main()? You make an instance of SRS called S1 in main then try to call S1.setlogin(). This is calling SRS::setlogin(), which you have not implemented.

Also main should be defined as returning an int, int main() and you should return an int from this function.

Jim

Can you also add menu.h to your original post?

* I overlooked the idea menu.h I have deleted it from the code. It was an idea but then I think it was useless.

* For the setlogin SRS I fixed that issue already I have updated that there are problems related to symbols now check the spoiler for errors above.

* I am used to use int main but then the book I have started to use void when using classes. Anyways I have changed to int main the problem still exists and I have updated the code.

Re: Student Registration System problem, error & question

Posted 07 June 2012 - 10:38 AM

Do not edit your previous posts, this makes it harder for anyone else to see what has been happening, post your modified code in a new post.

From looking at your current error messages it looks like you are trying to compile a console app as a Win32 app. You need to insure your project is setup to compile a console app not the default Win32 app.