[ all ] [ a / b / c / f / h / jp / l / o / q / s / sw / lounge ] [ cgi ] [ up ] [ wiki ]
[Home] [Catalog] [Search] [RSS feed] [Inbox] [Write PM] [Admin]
[Return]
Posting mode: Reply
[]
(for deletion, 8 chars max)
  • Allowed file types are: GIF, JPG, JPEG, PNG, BMP, SWF, WEBM, MP4
  • Maximum file size allowed is 50000 KB.
  • Images greater than 200 * 200 pixels will be thumbnailed.

  • Switch Form Position | BBCode Reference
  • Read the rules before you post.
  • Protect your username, use a tripcode!
  • 日本のへゆり
    boku

  • 2025/05/04 - Heyuri Calendar has been launched. Find out about upcoming Heyuri events!
  • 2025/04/01 - NEW GAME: Slime Breeder! Commit slimecest with your ancestors to create teh ultimate slime!
  • 2024/09/12 - NEW GAME: Battle Royale R! Make characters and see if they can win the Heyuri Cup!
  • 2024/09/10 - Tegaki function has been added
  • [Show All]


203 KB
Paying 25k/yr usd for this computer science education and this is my third year... sweat

Marked for deletion (Old)
>>
So if that's on the third year, what was on the first two? dark
>>
daer 2 b diferant!! *drools all over self* ~(゚¬・)~
>>
to be fair, it does teach to be diffərənt xd
>>
grade == ´Д`)
>>
>>140338
LOL
>>
>>140337
year 1: how to plug a computer in and start browsing the world wide web
year 2: how to create a google and facebook account
year 3: how to get javascript and rust to say "hello world"
year 4: how to use powerpoint
Congratulation! You are now a computer scienceist!
>>
I almost got raped by programming way beyond this level on electrical engineering in second semester xd
>>
programming was not easy but at least manageable compared to other EE courses dark
>>
>>140336
LOL

>>140340
LOL
>>
>>140336
You'd be better off with a $15 "for dummies" book. sweat3
>>
This thread made me feel good about myself, i know more about coding than a college professor biggrin
>>
>>140356
Saved you 15$
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
>>
Beside being incomplete, the C code example is also wrong because the cases are not being break'd out of (C has flow-through case's).

Not that I learned anything in CS but at least my education was real LOL
>>
my college education sucked but this is infinitely worse than anything I had to deal with (;´ω`)
>>
File: computer science.jpg
(44 KB, 606x586) [ImgOps]
44 KB
>>140340
>>
i dropped out of high school iyahoo
>>
I feel you my negro, it's also my third years and we haven't even gotten to pointers yet (´~`) I just read textbooks from the library on my own
>>
>>140397
me too ! iyahoo
>>
You can watch the entire "Intro to C" part of Handmade Hero in a single day for 0 dollars. There's 5 videos about 1+ hour each.
https://www.youtube.com/watch?v=F3ntGDm6hOs
>>
Hey at least you've probably got something after you graduate. I'm doing an art degree...sweat2
>>
I wish I was doing an art degree...
>>
I wish i had a degree...
>>
>>140340
WIN
>>
>>140336
meanwhile me failing my 3rd year of compsci ...
>>
Im in this three month program that speedruns Python, django, APIs and a bunch of other stuff 8 hours a day. Its 4000jewros but the government paid for it biggrin
>>
>>140397
I graduated high school by doing a last-chance make-up-for-credits program at the beginning of summer iyahoo
>>
I was supposed to be doing my thesis now but I don't qualify for it. I will have to figure out ways to collect credits to make up for the courses I missed credits on that are hard to do retakes on after I've moved away. Everything hurts.
>>
>>140336
That's really shitty code. He should've used an associative array like


#include <stdio.h>
int main () {
char * a[] = {
['A'] = "Excellent",
['B'] =
...
};
printf(a[grade]);
return 0;
}
[/grade]
[grade][/grade]
>>
>>140656
Huh, it seems that Heyuri has somehow messed by formatting. Just ignore that last lines. I think that you can figure out which ones
>>
File: dot com man.png
(505 KB, 1200x675) [ImgOps]
505 KB
>>140336
Is that the dotcom man?
>>
>>140656
i've never heard of associative arrays, that looks a bit ugly ┐(゚~゚)┌
>>
File: books.jpg
(27 KB, 500x373) [ImgOps]
27 KB
キタ━━━(゚∀゚)━━━!!
>>
>>140656
That's just a funny way to make a regular array with 67 slots. Associative array would allow you to use any string as the key, like a["heyuri"], but you can't do it that way in C.
>>
>>140658
Cool guy. Hope he keeps explaining computers for a long time.
>>
>Cool guy. Hope he keeps explaining computers for a long time.
I first saw his "ExplainingTheFuture" channel in liek 2009 sweat
>>
>>140679
is there any real benefit to doing that instead of the "classic" way?
>>
>>140701
I am not sure what you mean by "classic", but every data structure has it's own benefits and drawbacks.

Associative array, AKA map, AKA dictionary, AKA hash table, is useful when you can't use simple number IDs. For example when you request a page from >>>/jp/ the server doesn't know if "jp" is the name of the first or second or third board in it's board list. It could do a loop and check every board's name, which works if there aren't many boards, but if there's 5000 boards then it would be better to use a hash table so you can just use the word "jp" as the key.

If you already know exactly what you need, then it would be better to use enums as the keys to a normal array. It's a more useful way to do >>140656 and looks like this:
#include <stdio.h>

enum {
A,
B,
HEYURI,
};
char * grades [] = {
[A] = "Excellent",
= "Boo...",
[HEYURI] = "The place to be!",
};
void main () {
printf(grades[HEYURI]); // Will print "The place to be!"
}[/a]
[/heyuri][/heyuri]
[a][heyuri][heyuri][/heyuri][/heyuri][/a]
>>
File: enum.png
(9 KB, 571x322) [ImgOps]
9 KB
>>140715
Wow I didn't expect the code tags to get B0RK'd that badly. Enjoy this screenshot instead.
>>
Teh code b0rking is a known issue - I think it's fixed in the upcoming overhaul sweat2
>>
it's fixed with the upcoming code overhaul, though I think that specific code could b0rk for using the tag for bold (b)
maybe the inner of code blocks shouldn't try to "fix" user inputted BBCode... to be thought l8r
>>
i like SQL and database .. i liked my database class x3
>>
>>140715
It's not the same thing since enums kinda require the values to be known at compile time whereas >>140656 works on arbitrary data
>>
>>141090
That's still compile time, it only works for values between 0 and 66. The array becomes as big as the highest index in it, which in that case is 66 (from 'B'), trying to use a['C'] will overflow the array and explode your house because the value of 'C' is 67. You also can't use multiple characters in a "character constant", you can't do a['LoL'], so it's kinda pointless to do it like that.

If you want to use arbitrary values then neither solution is the right thing.
>>
>>141096
The ... in the code represented filling in all the remaining letters. Also, a grade only has one letter, so it works.
>>
>>141098
What if you get A++? nagato
>>
>>141100
In the OP image, it starts from A and then goes to B, meaning that there is nothing above A and nothing between A and B meaning that all grades are single letters
>>
>>141101
What if you reincarnate and god gives you an SSS grade?
>>
>>141105
Can you not read?
>it starts from A
>>
File: 1738587145048800.png
(656 KB, 801x802) [ImgOps]
656 KB
>>141116
YOU DARE DEFY GOD!!??
>>
File: whale.png
(26 KB, 461x421) [ImgOps]
26 KB
>>141117


Delete Post: []
Password:
First[0] Last