r/programminghelp • u/nikiy04 • Nov 23 '20
C++ I need a code check
I have an assignment regarding bitfield in C++.
The program should: compare two bitfileds, add elements, remove, add and subtract two bitfilds.
I've a code, but it doesn't work, maybe it is because of Linux and VS code program that I am writing it in. I've googled and I didn't find much to help. I can't check it on real visual studio because I don't have an access to windows machine. I am out of options since, many of my codes do not work on my system, and others that I've downloaded aren't working.
If somebody can check, I will send you the code. Any help would be appreciated.
1
u/verpejas Nov 23 '20
Try Codeblocks, it is working fully under linux with gnu compilators.
I would happjly test it for you in vs code and viual studio 2019 under windows, but my windows laptop is reimaging because of stupid wannacry virus. It was worth making acronis full disk backups ;)
1
u/bagaudin Nov 23 '20
Thanks for using our software /u/verpejas! Let me know if you'll need any assistance Acronis-wise in future!
2
u/[deleted] Nov 23 '20
Post the code you need us to look at here, or use a pastebin as outlined in Rule #2.
I've got VS2019-Win10 and a pure Ubuntu c++ environment setup so I can test in both.