+ 10
Have you tried writing C on the Cpp Playground?
It really works for those who were wishing this app had C lessons and a compiler. You can include C libraries, write functions and all the other things else, but it has some bugs I think. For example, It's kinda impossible to make some information input to work as the other languages. Anyways, It's a great way to practice your writing skills and to keep your mind safe from oblivion
30 odpowiedzi
+ 11
Here is an example
Utilizes
- C
- C++
- Assembly
https://code.sololearn.com/c3fUwnZDpjJK/?ref=app
+ 10
Hello Martin Taylor.
First thank you for your suggestions, really useful.
But I've to correct you in one point..
" c++ is a superset of c " is not really right..
Bjarne Stroustrup said c is not a subset of cpp.
cpp started from an early c but they evolved separately.
Most people think so but it's important to clarify this point I think.
IDE for both are often integrated in a single program and they were developed to be compatible as much as possible and maintain a large subset.
That's why they seems to be like father and son, but they're more like brothers.
+ 8
As C is subset of Cpp , you can use C in Cpp.
+ 8
sorry I misunderstood..
C is still one of the most important language and widely used, for example in GPU programming or hardwares generally.
I think #Sololearn should make a course and implement code playground for that!
+ 7
thank you! I'll take a look
+ 6
scanf doesn't work :(
https://code.sololearn.com/cDq0BzB7rrIt/?ref=app
+ 6
What I found was that the c functions for getting user input were not recognised, so you don't get asked for user input. The code would compile without error though. My fix was that if I used 1 c++ function to get user input, sololearn would ask for user input, and the c input functions work normally.
+ 5
It looks like Cpp to me, bro. The same libraries, the namespace thing, the cout printing method instead of printf. I told about writing literally using C language
+ 5
The classic Hello World haha
This one goes well. The bugs come through when you try to get user input using scanf or gets
+ 4
Scanf should work if you make a string with "cin >> whatever" for every scanf you have.
+ 4
Code Playground is a code playground indeed.
It is great for small exercises and little snippets of code.
Obviously you'll need an IDE if you want to write just a simple program.
That's why Sololearn suggest code::blocks for example ;)
+ 3
Fair hahaha I am getting used to it (Playground)
+ 3
I tried my best on these ones. I only got the last one to compile correctly.
https://code.sololearn.com/cZJOr4Zcyn5k/?ref=app
https://code.sololearn.com/cr6cX50Zuai3/?ref=app
https://code.sololearn.com/c4NSKzu981a1/?ref=app
I thought about mixing up the String feature from Cpp with the scanf and printf from C, but it got some errors. I kinda prefer strings on OOP than in C, where you simply use a Char array. No use to my idea on this code
+ 3
for real thanks for the tips people! fantastic!
+ 2
A looooot ! It is my favorite unwanted feature ! :D
https://code.sololearn.com/ctaBYdlTM5rP/?ref=app
https://code.sololearn.com/c8zDe1LsXiOC/?ref=app
https://code.sololearn.com/ctUFM62Kzz30/?ref=app
https://code.sololearn.com/c8zUSU9r2tqe/?ref=app
https://code.sololearn.com/czJ6h1t7gmCM/?ref=app
https://code.sololearn.com/cpMRQhPbfu0p/?ref=app
And some more ! :)
+ 2
hey it's not c actually c++ is designed to run c codes however it do have major difference
+ 2
Thanks AZTECCO. I use CodeBlocks, NetBeans, Notepad++, MonoDevelop and Visual Studio. The question was specially about Code Playground, exactly because of the fact it's a multilanguage mobile coding environment :)
+ 1
I agree. I really love how things are done in here. The courses are awesome and we get free certificates! This is unbelievable to me. Here where I live, getting programming formation is kinda expensive
+ 1
Yes, I tried.
Even my first code on Sololearn is in C on the Cpp playground.
https://code.sololearn.com/cSk9d1N991nh/?ref=app
0
c+