[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I don't know what to program in C for practice

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 53
Thread images: 6

File: ofTgCAS.gif (67KB, 600x400px) Image search: [Google]
ofTgCAS.gif
67KB, 600x400px
I don't know what to program in C for practice
>>
>>59144889
try writing a simple todo app
>>
a html parser
>>
>>59144889

try programming a game and enjoy coding 1000 lines to display a button haaha
>>
>>59144889
A calculator.
>>
>>59144905
but what do I use for the interface

>>59144917
okay

>>59144930
I'd rather an hero

>>59144934
but I already did that multiple times
>>
>>59144947
>but what do I use for the interface
nothing, just do it in the terminal

>>59144917
lol
>>
File: flat800x800075f.u1.jpg (115KB, 531x800px) Image search: [Google]
flat800x800075f.u1.jpg
115KB, 531x800px
>>59144889
Make a program to organize cute anime pics.
>>
>>59144889
Write a C++ compiler.
>>
>>59144964
you know, I've always wondered how those programs with a terminal user interface are made, like a terminal file manager(ranger) or music player.
that can be done with ncurses, right?

>>59145005
Actually , I was going to make a program which puts a cute waifu on your opened window

>>59145007
m-maybe in a few years
>>
>>59144889
Implement allocators and basic data structures like hashtable, vector...
You could also just take some small/middle sized sepples library that somebody might want to make bindings from other languages but have not done because you can't do it with c++ libraries.
>>
>>59145047
>You could also just take some small/middle sized sepples library
and rewrite it in C.
>>
>>59145022
yeah, it's done with ncurses

what i had in mind though was something more like git in terms of the interface

for example, to add a task, you'd type `todo add 'Go grocery shopping'`, and it would be added to the current date

or `todo ls` to list the tasks, `todo check 1` to mark task with index 1 as completed, etc
>>
>>59145047
Good idea, it might even come in handy

>>59145068
I could always make both, probably will
>>
>>59144889
Try writing an interpreter for a subset of Python that has a better C API.
>>
>>59145022
>I don't know what to program in C for practice
You can do it with Ncurses, it would be very fun too. Start small, hello world with Ncurses.
>>
>>59144889
create your own tiny bytecode and write a vm for it
>>
File: killthema.png (161KB, 535x422px) Image search: [Google]
killthema.png
161KB, 535x422px
>>59144889
Create a program that spawns a process. As soon as one tries to kill that process it spawns another process that outputs "psshh nothin personnel kid"
>>
>>59144930
>He didn't use an open source renderer
top pleb
>>
>>59145302

why not use a WYSIWYG Game Dev Meme Tool from Steam for $50 ?!?!

or maybe you just want to write it all by yourself like a man
>>
File: f53.png (157KB, 500x500px) Image search: [Google]
f53.png
157KB, 500x500px
and not to worry guys, all of these will be free and open source projects underd the MIT license

>>59145283
kek
>>
>>59144947
Use nuklear
>single header
>cross-platform
>no bloat
>skinnable and feature-rich af
Literally the one and only acceptable gui-toolkit ever.
>>
>>59145863
damn, thanks
>>
>>59144889
Please don't post pictures of my wife without permission.
>>
>>59144889
A program that grabs all anime pictures with tag inputs and heuristically identifies whether it's lewd
>>
>>59144947
>but what do I use for the interface
ncurses
>>
>>59146119
your wife is my sex slave, dude
>>
Program an imageviewer which can open ZIP/RAR files and sort all images into a big infinite scrolling reel, and then add an auto-scrolling feature where the speed of scrolling can be set.
>>
>>59146255
and add support for sad panda as well?
>>
>>59146323
There's already a browser script doing that anon:
https://sleazyfork.org/en/scripts/12657-manga-loader-nsfw

What we are lacking is the same for offline imageviewers.
>>
>>59146371
damn,why didn't I know about this
>>
>>59146407
Because there is a lack of a technical term for
"loading up all images on a site into one page, in a vertical manner with infinite scrolling, like a movie reel". So google searching it is a bitch. Or at least there is one but we are unaware of it, which is also a problem.
>>
>>59144889
Fizzbuzz.

Then a red-black tree implementation.
>>
>>59146438
#include <stdio.h>

int main(void) {

enum { a=012, b, c, d, e, f };

struct format {

const char *format;

struct format *next;

} formats[] = {

[1] = { "Fizz\n", &formats[6] },

[d] = { "Fizz\n", &formats[3] },

[8] = { "%d\n", &formats[c] },

[2] = { "%d\n", &formats[d] },

[7] = { "%d\n", &formats[2] },

[b] = { "%d\n", &formats[1] },

[9] = { "FizzBuzz\n", &formats[7] },

[e] = { "%d\n", &formats[9] },

[a] = { "Buzz\n", &formats[b] },

[4] = { "Fizz\n", &formats[a] },

[5] = { "Buzz\n", &formats[0] },

[0] = { "Fizz\n", &formats[8] },

[3] = { "%d\n", &formats[5] },

[6] = { "%d\n", &formats[e] },

[c] = { "%d\n", &formats[4] },

};

struct format *format = formats+7;

for (int i = 1; i <= 100; i ++) {

printf(format->format, i);

format = format->next;

}

}
>>
Try a simple ASCII rogue-like/game that works on a simple grid.

Bonus, user can make levels in text editor.

Doesn't have to be to fancy. Monster movements can be evaluated after user has moved.
>>
i always try to do puzzles for algorithmic problem solving practice.
>>
>>59146255
you mean like the slideshow view?
>>
>>59146119
>wife
>my
>>
>>59147886
Slideshow view is more image flipping.
I mean this
>>59146431

Like those manga sites where instead of clicking for the next page you just scroll down as the pages of the chapter/volume are stacked one beneath the other.

I'm calling it "reel" mode from now on.
That actually sounds good.
"Reel" mode for when you are scrolling pages.
"Flip" mode for when you are clicking for the next image.
>>
favicon.ico drawer using curses
>>
>>59144889
An operating system with network stack and GUI.
>>
>>59148038
explain
you want to draw in a terminal?
>>
Write a DNS hijacker that redirects all porn websites to islam learning websites
>>
artifictial inteligence to create furry art (judging by op image you should like that)
>>
Avatarfagging is against the rules
>>
>>59148083
sure, just give users like 256x256 or less grids and then a basic color palette. you know, to make those stupid icons in browser address bars or tabs.

if you don't do it, I will anyhow.

I need to make a terminal toolkit for javascript anyhow.
>>
>>59148124
not if it's cute
>>
>>59148000
what other application is there for such a thing other than reading manga shit?
you could just make those images into a cbr and read it on a reader with autoscroll
>>
>>59148265
>what other application
Does it matter?
If it does have an application, then it has a reason to exist.
>>
>>59148124
not since moot sold the boards off to a marketing firm now its a big business regurgitating anime memes pretending to fit in
>>
a
>>
>>59148365
b
>>
>>59148758
c
Thread posts: 53
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.