james Posted on Oct 14, 2021 • Edited on Apr 17, 2022 using c++ like plain c #cpp its a bubble sort (sorting algorithm), i was trying to make it look more readable for beginners. Without any function and any class just simple as c. Top comments (2) Subscribe Submit Preview Dismiss Collapse Expand Tiago Melo Jucá Tiago Melo Jucá Tiago Melo Jucá Follow Joined Jan 31, 2021 • Nov 4 '21 Dropdown menu Copy link Hide You can write your c++ code almost exactly like a plain c code. Just look up for the c*.h headers, like cstdio instead of stdio.h. But if it's your intention, why not just write in C? C++ can link against C code too. Collapse Expand james james james Follow ;) passionate about JavaScript. Location india Education high-school Work coding for myself Joined Sep 30, 2021 • Apr 17 '22 Dropdown menu Copy link Hide Yeah it can.Just messing with the syntax. Code of Conduct • Report abuse
Top comments (2)
You can write your c++ code almost exactly like a plain c code. Just look up for the c*.h headers, like cstdio instead of stdio.h. But if it's your intention, why not just write in C? C++ can link against C code too.
Yeah it can.Just messing with the syntax.