Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Proof of concept

@proofofconcept
  • list object type thing

    Cover page
    Made with C
    Recent comments (0)
  • Final Project C compiler

    Cover page
    Made with C
    Recent comments (0)
Repls
Community
proofofconcept
proofofconcept
shared a Post
3 years ago
Object Oriented C - except it works!
It was painful, but I got the object oriented C to work. Here's how: When an object is created, its function pointers are initialized to addresses. Th
object oriented c final edition
C
kidd81
kidd81
Obviously Chicago bound3 years ago
MatthewDoan1
MatthewDoan1
Wow, this is a pretty impressive image!3 years ago
proofofconcept
proofofconcept
shared a Post
3 years ago
I've tried to boil down the problem of https://repl.it/talk/ask/Object-oriented-C/24356 to a simpler program that still fails. It causes an error whic
ooc follow up
Bash
proofofconcept
proofofconcept
shared a Post
3 years ago
I've been trying to mess with some weird features in C to make it look object oriented. I created that repl (linked), and it defines a struct that has
object oriented c
Bash
proofofconcept
proofofconcept
I've boiled this down to a simpler program with the same issue: https://repl.it/talk/ask/Object-oriented-C-part-2/243643 years ago
theangryepicbanana
theangryepicbanana
I don't do C much, but you probably need to free this memory here, right? struct MyClass* st = malloc(sizeof(MyClass)); `3 years ago
proofofconcept
proofofconcept
shared a Post
3 years ago
Have you ever wanted to parse a mathematical expression without any newlines in your code? Of course you have - we've all been there. For those times
One line expression parser
Python
Kai_Justice
Kai_Justice
Wow, that's intimidating. How long did it take you?3 years ago
proofofconcept
proofofconcept
shared a Post
5 years ago
This calculator uses a recursive descent parser. It supports variables with one letter names so far https://repl.it/@proofofconcept/Basic-recursive-de
emilian1000000
emilian1000000
I did the problem 9208375209478529038572975803.50972892857 \*798250, and the answer was incorrect \(I checked on Google\). Any ideas what the problem could be?5 years ago
proofofconcept
proofofconcept
New improvement: functions! These can evaluate an expression given arguments. You define them like: <func_name> of <comma separated arguments>: <expression> For example: square of x: x\*x Then you can say square\(5\) for example, returning 25 They can be nested however you want5 years ago
proofofconcept
proofofconcept
Variable names can be longer than one letter now!5 years ago
proofofconcept
proofofconcept
shared a Post
5 years ago
https://repl.it/@proofofconcept/Text-based-super-mario-bros
itbarsoum
itbarsoum
im not sure what happened with this game but you can't get past the first function5 years ago
orien
orien
you die within 5 seconds5 years ago
proofofconcept
proofofconcept
shared a Post
5 years ago
A text based \(very basic\) minimal dungeon game! https://repl.it/@ShmeeVorz_/Murderous-Dungeon-12
proofofconcept
proofofconcept
shared a Post
5 years ago
In this game you must adventure through a dangerous cave! https://repl.it/@proofofconcept/Cave PS if you can beat the game on hard without cheating tw