Leave these fields empty (spam trap):
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists


Polymorphism and Base class pointers returning derived class? by Ernest Fiblingway - Fri, 11 Jul 2014 22:21:16 EST ID:43+Cp8qc No.32050 Ignore Report Reply Quick Reply
1405131676650.jpg -(82148 B, 609x768) Thumbnail displayed, click image for full size. 82148
Why doesn't this work:

Command * Input::handleInput( bool input )
if ( input == true ) // if the user inputs
return onInput; // return the input command
return nullptr; // return nothing
Ernest Fiblingway - Fri, 11 Jul 2014 22:45:56 EST ID:43+Cp8qc No.32051 Ignore Report Quick Reply
Nevermind, it does. It was a really obvious solution in a differnt part of the code.

OOP uses by Charlotte Banningpitch - Thu, 03 Jul 2014 17:00:32 EST ID:lr8q479+ No.31998 Ignore Report Reply Quick Reply
1404421232264.jpg -(287193 B, 510x428) Thumbnail displayed, click image for full size. 287193
So I just finished making pong, and have been looking at other peoples code for game loops and games in general.

I personally did not declare much of the core engine as classes, but in looking at other peoples code they have made a game class that inherits an event class and rendering class.

When and why should I program like this?

Pic not related.
Esther Grimgold - Thu, 03 Jul 2014 17:29:17 EST ID:FaQqdZHU No.31999 Ignore Report Quick Reply
Might be useful
William Sirringfet - Thu, 03 Jul 2014 17:37:20 EST ID:2OdEhbdO No.32000 Ignore Report Quick Reply
This guys videos help a lot
Charlotte Banningpitch - Thu, 03 Jul 2014 18:48:59 EST ID:lr8q479+ No.32001 Ignore Report Quick Reply
I should note that I used c++

>>31999 Excellent. I prefer reading while learning as opposed to video. My mind is already blown by decoupling haha.
Hamilton Pezzlehene - Thu, 03 Jul 2014 22:20:16 EST ID:FaQqdZHU No.32002 Ignore Report Quick Reply
Glad the link is some help, the author only just finished his multi-year journey to completing that site. Definitely some useful stuff there.

Decoupling is one of the basic tenets of good design, I'd suggest working with one other person on a small project, someone else who codes not just an artist, and you'll soon discover why it's such a useful design pattern.
William Clacklewine - Tue, 08 Jul 2014 19:28:08 EST ID:5M822B0h No.32039 Ignore Report Quick Reply

Don't kick yourself for doing it the quick and dirty way. As long as it works and works well then I see no reason to put yourself down. Just try to conform to the best practice standards in the future I guess.

shi painter by Clara Sammerteck - Tue, 08 Jul 2014 13:28:41 EST ID:9agYKwHZ No.32036 Ignore Report Reply Quick Reply
1404840521196.jpg -(210763 B, 1280x1024) Thumbnail displayed, click image for full size. 210763
I have a website and i run it through something like word press. How would i get a shi painter without making a whole html doc. i just have a section i put my code in.
sorry if this sounds vauge
Phoebe Crengerhood - Thu, 10 Jul 2014 19:33:34 EST ID:kZ/qry9q No.32044 Ignore Report Quick Reply

Literally the first Google result for "shi-painter wordpress". nb
Phoebe Crengerhood - Thu, 10 Jul 2014 19:39:20 EST ID:kZ/qry9q No.32045 Ignore Report Quick Reply
Sorry, I missed the "something like word press" part of your post and felt like a bit of a dick so I did some more digging:


HTML5 Canvas-based thing. There's a link to a demo which worked great for me and allows you to 'save' your art in several formats (file, share, data URL) so I imagine you could just change the save action to store that data on your site's server somehow. nb

My attempt at c programming by Emma Suffinglet - Fri, 04 Jul 2014 03:37:53 EST ID:KH9l0Yka No.32003 Ignore Report Reply Quick Reply
1404459473787.png -(3411 B, 480x301) Thumbnail displayed, click image for full size. 3411
Idk where else to turn to but I cannot get my code to count the number of times a user defined "codon" appears" within my first char array (gene).
So far ive gotten it to return values of 0 and 6.
I don't know what Im doing wrong.
can someone show me where my code is wrong?


PS the while loop is unfinished. I still need to add a "do you want to continue y/n" type deals but that's not the part im having issues with.
13 posts omitted. Click Reply to view.
Molly Sarringwill - Mon, 07 Jul 2014 20:06:56 EST ID:ZMQnkpih No.32030 Ignore Report Quick Reply
Another thing, you are searching 'user' at [0], [1] and [2], but declare it as user[2], which is going beyond the bounds of the buffer. You need a character for each of the characters you are going to enter into the buffer as well as one additional one for the terminating zero.

Using scanf() for strings is pretty dangerous, if someone enters a string into your program that's longer than 1 character then it will begin to overwrite the "count" variable and then will start eating into whatever next is placed on the call stack. You might want to look at fgets(), it takes a size parameter so that it can't exceed the given buffer length.

char boo[2];
fgets( boo, sizeof( boo ), stdin );
Ebenezer Fanridge - Mon, 07 Jul 2014 22:27:48 EST ID:KH9l0Yka No.32031 Ignore Report Quick Reply
1404786468781.png -(21798 B, 581x388) Thumbnail displayed, click image for full size. 21798
Thanks, I didnt catch this.

I'm not sure if I'm allowed to use that function.
Only thing we've learned in class so far is scanf.

also, i got my code working for the most part.
Not sure why my while loop isn't breaking when a user inputs 'n'.
and if you enter the same codon twice it just adds the result to the previous result. (attatched screenshot)
actual code: http://pastebin.com/AYLKYFv2

Also, not sure if it matters but Im writing/compiling/running the code using codeblocks in Ubuntu 14.04
Edwin Hibblefield - Mon, 07 Jul 2014 23:45:11 EST ID:I31z+CiS No.32032 Ignore Report Quick Reply
>my while loop isn't breaking when a user inputs 'n'
Just read in a string instead of a character and compare the same way you are comparing the codons

>it just adds the result to the previous result
This is because you are declaring and initializing your count variable to 0 outside the loop
Ebenezer Fanridge - Tue, 08 Jul 2014 00:16:06 EST ID:KH9l0Yka No.32033 Ignore Report Quick Reply
Molly Sarringwill - Tue, 08 Jul 2014 02:10:54 EST ID:ZMQnkpih No.32034 Ignore Report Quick Reply
1404799854646.jpg -(1330122 B, 2837x1901) Thumbnail displayed, click image for full size. 1330122
>I'm not sure if I'm allowed to use that function. Only thing we've learned in class so far is scanf.

I don't know if you're interested in pursuing this sort of thing long-term or if this is just a class that you need to slog through, but you might want to ask about scanf() use in class.

Buffer overflow vulnerabilities have laid a carnage-filled road to hell and back (including heartbleed) and I think it's worth knowing about those things right from the start. When you're first learning you'll fuck up with pointers, memory allocation and the like (at least, I know I did...and still do from time-to-time). But telling someone who isn't in the know to grab strings with scanf() is kind of like telling someone to hammer in fence posts with a large container of nitroglycerin.

There are certain functions in C that you can really fuck yourself with if you're not careful or don't know about beforehand. Food for thought maybe, you can decide if this sort of thing is important to you or not.

Anyhow, I'm glad your stuff is working now.

Determining the color of a pixel by Brick Shittington - Sat, 05 Jul 2014 18:39:07 EST ID:Ao5vURDI No.32014 Ignore Report Reply Quick Reply
1404599947618.png -(11083 B, 756x110) Thumbnail displayed, click image for full size. 11083
I'm trying to make a program that determines the color of a pixel at a specific point on the screen. I tried to do it in C using the code given at RosettaCode.

When I attempt to compile it (gcc using cygwin on a windows 8 pc) I get this error. Tried to find some more information elsewhere but I couldn't find anybody experiencing the same error.
Brick Shittington - Sat, 05 Jul 2014 18:42:07 EST ID:Ao5vURDI No.32015 Ignore Report Quick Reply
My source code
Brick Shittington - Sat, 05 Jul 2014 18:43:17 EST ID:Ao5vURDI No.32016 Ignore Report Quick Reply
Lillian Sopperstone - Sat, 05 Jul 2014 19:53:02 EST ID:ZMQnkpih No.32017 Ignore Report Quick Reply
You've got to link to the library that holds those missing functions. I think this is what you're looking for,

Brick Shittington - Sat, 05 Jul 2014 20:53:31 EST ID:Ao5vURDI No.32018 Ignore Report Quick Reply
Linked the library and it's compiling now, thanks!

Bump When Unraring by Edwin Borringbad - Mon, 23 Jun 2014 04:55:36 EST ID:P68obXhY No.31950 Ignore Report Reply Quick Reply
1403513736625.jpg -(10831 B, 480x360) Thumbnail displayed, click image for full size. 10831
>BWUR Don't know if it's a thing, don't give a fuck
Post your steaming pile of "holy fuck I wish this shit would Unrar already" Because you're bored
Currently unpacking the delicious and nutritious OMNISPHERE!
Basil Blatherwater - Mon, 23 Jun 2014 12:31:27 EST ID:FaQqdZHU No.31951 Ignore Report Quick Reply
Extracting Caustic Window lost album, fuck yes
Eliza Worthingspear - Tue, 24 Jun 2014 03:30:53 EST ID:P68obXhY No.31955 Ignore Report Quick Reply
That's pretty fuckin cool, I like when people come together for the artists
Ernest Pommermat - Fri, 04 Jul 2014 21:48:15 EST ID:P68obXhY No.32012 Ignore Report Quick Reply
Sony Soundforge, get iiiit!

why start coding? by Nigger Sugglefug - Tue, 24 Jun 2014 06:47:49 EST ID:GHX510P7 No.31956 Ignore Report Reply Quick Reply
1403606869479.jpg -(23776 B, 700x575) Thumbnail displayed, click image for full size. 23776
Jack Gonnernick - Thu, 03 Jul 2014 06:01:57 EST ID:GHX510P7 No.31997 Ignore Report Quick Reply
1404381717971.jpg -(29252 B, 700x553) Thumbnail displayed, click image for full size. 29252

ANDROID + C by Nell Dartcocke - Wed, 18 Jun 2014 15:56:41 EST ID:gawhOahX No.31923 Ignore Report Reply Quick Reply
1403121401844.jpg -(58426 B, 491x600) Thumbnail displayed, click image for full size. 58426
Sup /prog/,

I'm just wondering if it's feasible to code android apps in C because that's pretty much the only language I know to use in this kind of thing. Please tell me it's possible, because I definitely don't want to start learning a new language all over again and download all the shit that comes with it. I'm absolutely sure there are some libraries that can be used to translate C code that can be run in android , or even certain flavor of android, or a certain environment, or an emulator, or something.

And if it's possible, where should I start? I'm past the point of busting my ass to get info like this and for that I apologize, it's just that I need to know. Thanks again.

Oh also, I'm not gonna make games and whatnot, just simple apps for convenience and such, and just gonna fiddle with simple pre-existing open-source projects.
11 posts omitted. Click Reply to view.
Jarvis Pittwill - Wed, 25 Jun 2014 20:34:30 EST ID:SVZjhRzL No.31974 Ignore Report Quick Reply
Install native dev kit
Write C code all day long

Personally I wouldn't bother unless it's for crypto engineering. Java is much easier just point and click basically to drop in Android API calls and then your app runs in the Java virtual machine as it's supposed to instead of a C program with crazy privileges

I also share your hatred of Java. As soon as Golang is fully supported I will never touch Java again for the rest of my life hopefully
James Dinningkud - Sun, 29 Jun 2014 08:19:04 EST ID:2PLGUfus No.31983 Ignore Report Quick Reply
I know some people here hated on Python, but I say it's unfounded and they simple never learned it's full power. Python/Kivy is an ungodly combo for simple ways to make an app that's cross platform (same code on Windows, Linux, Mac OSX, Android, iOS but that's the odd one out :<).
Faggy Guddlemone - Sun, 29 Jun 2014 12:55:11 EST ID:7alaund4 No.31984 Ignore Report Quick Reply
>I'm not in my teens anymore.

... so what? This looks like a complete non-sequitor to me.
Polly Pupperfoot - Sun, 29 Jun 2014 20:00:30 EST ID:SkgVApkK No.31985 Ignore Report Quick Reply
It would be better if you could just run python programs directly on Android. If Heroku/Google App Engine can figure how to do this in a VM then Google can get "ART" (dalvik replacement) to do it.

I mainly code in Lisp so have been using Clojure lately to build apps. Now playing around with Golang
Ernest Poshtat - Mon, 30 Jun 2014 12:31:11 EST ID:xtelIQ1k No.31992 Ignore Report Quick Reply
>If Heroku/Google App Engine can figure how to do this in a VM then Google can get "ART" (dalvik replacement) to do it.

Well, that's the most retarded thing I'll read all day.

<<Last Pages
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Report Post
Please be descriptive with report notes,
this helps staff resolve issues quicker.