+ 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

18th Oct 2017, 11:27 PM
Jonathan Álex
Jonathan Álex - avatar
30 odpowiedzi
+ 11
Here is an example Utilizes - C - C++ - Assembly https://code.sololearn.com/c3fUwnZDpjJK/?ref=app
18th Oct 2017, 11:38 PM
Manual
Manual - avatar
+ 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.
22nd Oct 2017, 3:22 AM
AZTECCO
AZTECCO - avatar
+ 8
As C is subset of Cpp , you can use C in Cpp.
19th Oct 2017, 11:58 AM
Rushikesh Deshmukh
Rushikesh Deshmukh - avatar
+ 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!
21st Oct 2017, 10:46 AM
AZTECCO
AZTECCO - avatar
+ 7
thank you! I'll take a look
21st Oct 2017, 2:31 PM
AZTECCO
AZTECCO - avatar
19th Oct 2017, 3:16 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 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.
19th Oct 2017, 4:34 AM
Jared Bird
Jared Bird - avatar
+ 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
18th Oct 2017, 11:50 PM
Jonathan Álex
Jonathan Álex - avatar
+ 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
19th Oct 2017, 12:08 AM
Jonathan Álex
Jonathan Álex - avatar
+ 4
Scanf should work if you make a string with "cin >> whatever" for every scanf you have.
19th Oct 2017, 12:23 PM
LunarCoffee
LunarCoffee - avatar
+ 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 ;)
20th Oct 2017, 8:34 PM
AZTECCO
AZTECCO - avatar
+ 3
Fair hahaha I am getting used to it (Playground)
19th Oct 2017, 1:12 AM
Jonathan Álex
Jonathan Álex - avatar
+ 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
19th Oct 2017, 11:08 AM
Jonathan Álex
Jonathan Álex - avatar
+ 3
for real thanks for the tips people! fantastic!
20th Oct 2017, 12:07 AM
Isaac Clemerson
Isaac Clemerson - avatar
+ 2
hey it's not c actually c++ is designed to run c codes however it do have major difference
19th Oct 2017, 4:00 PM
Mrityunjay Jha
Mrityunjay Jha - avatar
+ 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 :)
20th Oct 2017, 11:37 PM
Jonathan Álex
Jonathan Álex - avatar
+ 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
21st Oct 2017, 10:50 AM
Jonathan Álex
Jonathan Álex - avatar
+ 1
Yes, I tried. Even my first code on Sololearn is in C on the Cpp playground. https://code.sololearn.com/cSk9d1N991nh/?ref=app
23rd Oct 2017, 7:07 AM
Aniket Kumar
Aniket Kumar - avatar
0
c+
19th Oct 2017, 6:25 PM
Bharat Mundhra
Bharat Mundhra - avatar