|
hey computer WHAT how big is a char A CHAR IS 0x001 BIG char *anArray = new char[100]; OK what's &anArray? 0x6000 convenient. what's the address of the first element 0x6000 and the second? 0x6004 wa.... wahat?
|
# ¿ Jul 17, 2018 20:38 |
|
|
# ¿ Apr 26, 2024 09:50 |
|
if i define an array explicitly with char asdf[100], the element[i] of asdf will be i bytes away from wherever asdf[0] is but if i declare it with char *ptrAsdf[100], then element[i] of asdf is 4i bytes away from asdf[0] and that's why i'm confused doubly confused because on onlinegdb both arrays' elements are 1 byte apart the answer is that i'm bad at c++ and i'm cool with that much, i just don't know why i'm getting 2 different answers to the same question
|
# ¿ Jul 17, 2018 20:48 |
|
oh gently caress me thanks i need a break
|
# ¿ Jul 17, 2018 20:52 |
|
Share Bear posted:i really like python ive found it very easy to work with and get stuff done in as long as i never ever have to deploy it outside one specific environment
|
# ¿ Jul 17, 2018 21:08 |
|
Deep Dish Fuckfest posted:always put the * next to the base type, not the variable name! it's part of the type! hi i'm a half-forgotten book from 1997 with an important announcement about asterisks gently caress them and malloc too (thanks i was kinda wondering about that)
|
# ¿ Jul 17, 2018 21:13 |
|
Sapozhnik posted:Nope, this is where you hosed up. yup i befuckled it course fun, so what
|
# ¿ Jul 18, 2018 00:53 |
|
Peeny Cheez posted:Almost.
|
# ¿ Jul 18, 2018 19:03 |
|
oh hey assert() is dead, that's good news try {wait i already validated this, gently caress off} throw (my hands in the air like i do not care)
|
# ¿ Jul 19, 2018 00:46 |
|
Luigi Thirty posted:my x86 assembly knowledge really only applies to DOS and the 486 era hi mister gibson, thanks for warning us about those raw sockets
|
# ¿ Jul 19, 2018 15:45 |
|
file io in c++ is hard and it makes me feel stupid
|
# ¿ Jul 20, 2018 19:58 |
|
c assignment s: it compiled this was way too much work for a five-point question but they said "everything i could think of" i'm afraid to run it whoops gently caress you can't do that with inputs, this is an old version where did oh gently caress i saved over it thanks sublime
|
# ¿ Jul 24, 2018 03:27 |
|
this is because i didn't give you $80 isn't it well guess what gently caress off
|
# ¿ Jul 24, 2018 03:29 |
|
Fiedler posted:visual studio is free what the gently caress are you doing no ides allowed
|
# ¿ Jul 24, 2018 05:33 |
|
Lutha Mahtin posted:yeesh what is the reasoning behind this? my cs dept was all for regular text editors but that was because they were all old hacker types. question and answer in one easy package
|
# ¿ Jul 24, 2018 05:42 |
|
prof is an old hacker type
|
# ¿ Jul 24, 2018 05:53 |
|
Luigi Thirty posted:I made a working button but idk why my app looks like windows 3.1 instead of windows 95 given the state of widows, I'd say that's working as intended
|
# ¿ Jul 24, 2018 12:46 |
|
i'll comment out the wiki
|
# ¿ Jul 24, 2018 21:30 |
|
Deep Dish Fuckfest posted:maybe someone could make a language that compiles to latex, except that this new language would be less garbage? sounds like an actual use-case for text-to-speech
|
# ¿ Jul 26, 2018 13:40 |
|
Luigi Thirty posted:comic sans is good for people with dyslexia, I forget why but it’s true. most of the letters are too distinct to be confused for each other; they have different heights and the round/straight parts are drawn differently
|
# ¿ Jul 26, 2018 13:59 |
|
isn't the whole reason design purists hate it because of the inconsistency from one letter to the next?
|
# ¿ Jul 26, 2018 14:20 |
|
Spime Wrangler posted:ctps: plotly es6 vuejs babel webpack npm django python2 matlab pregnant elsa spider-man
|
# ¿ Oct 5, 2018 20:23 |
|
|
# ¿ Apr 26, 2024 09:50 |
|
pokeyman posted:this is so close to a tabs v spaces joke but I can’t quite get there something about an unjustified ruler and marginalized groups
|
# ¿ Nov 5, 2018 15:16 |