Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can submit50 or check50 take in .cpp (c++) files too? #296

Closed
goyalyashpal opened this issue Jan 23, 2023 · 1 comment
Closed

can submit50 or check50 take in .cpp (c++) files too? #296

goyalyashpal opened this issue Jan 23, 2023 · 1 comment

Comments

@goyalyashpal
Copy link

goyalyashpal commented Jan 23, 2023

Hi!

i recently was taught C++, and I found the concept of encapsulation (of data & functions) in OO (object oriented paradigm) very handy. So:

  • Do cs50 accept submissions in cpp?
  • Even if the cpp program are not accepted in submit50 submissions
  • ... then too i would still love to be able to check50 if my program in c++ yields correct results for the given problems

I am asking specifically for C++ as:

  • for checking: only compilation commands, run commands, and output is required i think
  • and since C++ shares a lot with C in the compile environment,
  • so, commands for compiling C++ should apply on C too - thus providing an opportunity to unify the check50 for both languages at once.
@goyalyashpal goyalyashpal changed the title is submission in cpp (c++) accepted? can submit50 or check50 take in .cpp (c++) files too? Jan 23, 2023
@goyalyashpal
Copy link
Author

goyalyashpal commented Mar 5, 2023

yes... the operator overloading (for assignment, sum, & division) in cpp would have helped a lot in the pset of filter (week 4).

handling those 3 members again and again is ... umh, quite a part of fun lol.


Edit: well, if an operation is used that often, then it might as well be defined in a separate function. Sure, passing structs, accessing members would require some more syntax, and ensuring data integrity will require more care - but it is achievable in C too.

As for being able to check it in c++ too - it's not my main focus at the moment. So, closing the issue as not planned for now. maybe will look into it in some distant future.

@goyalyashpal goyalyashpal closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant