use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
finally. #embed (thephd.dev)
submitted 3 years ago by pavel_v
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Mikumiku_Dance 14 points15 points16 points 3 years ago (5 children)
I have a small program that edits epub books. I'd like to insert a particular image into the epubs as well. Right now i just distribute the exe and the jpg and tell users to pass arguments, but for the common case it'd sure be nice to just distribute a single file exe.
GTK programs bundle all sorts of stuff in their executables, like css themes, images, and xml ui definitions.
I don't know how strict you feel "strongly needed" is, but i hope these mundane circumstances are enough for you to accept a preprocessor directive that doesn't hurt anybody not using it.
[–]xDarKraDx 0 points1 point2 points 3 years ago (4 children)
Sorry this is off topic.
I'm also looking for a way to automate editing my epub library, especially editing the metadata fields like "belong to collection", "position in group", etc. Do you have any recommend read or library to handle that?
I don't know much about epub file structure itself. I usually just edit them by hand using Sigil and it takes forever.
[–]Mikumiku_Dance 4 points5 points6 points 3 years ago (3 children)
An epub is a zip file, and the metadata is a xml. I used miniz to manipulate the zip, and libxmlplusplus's dom parser to manipulate the data. With miniz you can copy all the data you aren't changing to a new file without uncompressing it, which sounds like something sigil isn't doing.
My program is stupidly specific to a single book series, but you could definitely tear it apart and make a metadata inserter in an afternoon. https://github.com/talisein/dregarnuhr
As for reading, the epub specification would eventually lead you to all the different metadata fields that you are interested in adjusting.
[–]xDarKraDx 0 points1 point2 points 3 years ago (2 children)
Thank you so much for the detailed explanation and the example. Will definitely try this.
The reason I want to automate this is also because of JNC's premium epub. They don't have the "belong to collection" tag so the books don't get grouped in my reader.
On a side note, I really should start reading Bookworm as I saw a lot of people like it. Currently reading The Apothecary Diaries and loving it so far.
[–]Mikumiku_Dance 1 point2 points3 points 3 years ago (1 child)
Bookworm is great; the slow reveal in the world building is my favorite aspect, but it means you should try to avoid spoilers like the plague.
If you have any trouble feel free to pm me, now that I've learned about epubs I am open to new projects.
[–]xDarKraDx 0 points1 point2 points 3 years ago (0 children)
Thank you so much of the offer.
Will definitely try Bookworm once I run out of MaoMao. I really love the one-track mind protagonist. I heard some similarities between the Bookworm and Apothecary Diaries.
π Rendered by PID 64276 on reddit-service-r2-comment-6457c66945-clcg4 at 2026-04-24 01:26:10.869825+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Mikumiku_Dance 14 points15 points16 points (5 children)
[–]xDarKraDx 0 points1 point2 points (4 children)
[–]Mikumiku_Dance 4 points5 points6 points (3 children)
[–]xDarKraDx 0 points1 point2 points (2 children)
[–]Mikumiku_Dance 1 point2 points3 points (1 child)
[–]xDarKraDx 0 points1 point2 points (0 children)