Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
flakeloaf
Feb 26, 2003

Still better than android clock

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?

Adbot
ADBOT LOVES YOU

flakeloaf
Feb 26, 2003

Still better than android clock

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

flakeloaf
Feb 26, 2003

Still better than android clock

oh gently caress me

thanks i need a break

flakeloaf
Feb 26, 2003

Still better than android clock

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


:same:

flakeloaf
Feb 26, 2003

Still better than android clock

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)

flakeloaf
Feb 26, 2003

Still better than android clock

Sapozhnik posted:

Nope, this is where you hosed up.

&anArray is a pointer to a pointer to your 100 chars.

That being said where did you get that other pointer, like from (&anArray)[1] or something?

Also nice 32 bit dev machine for a clown to use at etc etc

yup i befuckled it

course fun, so what

flakeloaf
Feb 26, 2003

Still better than android clock

Peeny Cheez posted:

Almost.
code:
if (isBarFalse.toString().toLowerCase()=="false")
                                                                       {
        return new Boolean("true").booleanValue()
       ;}
        return null;

NOW WE'RE COOKING WITH GBS!

flakeloaf
Feb 26, 2003

Still better than android clock

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)

flakeloaf
Feb 26, 2003

Still better than android clock

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

flakeloaf
Feb 26, 2003

Still better than android clock

file io in c++ is hard and it makes me feel stupid

flakeloaf
Feb 26, 2003

Still better than android clock

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

Only registered members can see post attachments!

flakeloaf
Feb 26, 2003

Still better than android clock

this is because i didn't give you $80 isn't it

well guess what gently caress off

flakeloaf
Feb 26, 2003

Still better than android clock

Fiedler posted:

visual studio is free what the gently caress are you doing

no ides allowed

flakeloaf
Feb 26, 2003

Still better than android clock

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

flakeloaf
Feb 26, 2003

Still better than android clock

prof is an old hacker type

flakeloaf
Feb 26, 2003

Still better than android clock

Luigi Thirty posted:

I made a working button but idk why my app looks like windows 3.1 instead of windows 95

https://twitter.com/LuigiThirty/status/1021654799987736576

given the state of widows, I'd say that's working as intended

flakeloaf
Feb 26, 2003

Still better than android clock

i'll comment out the wiki

flakeloaf
Feb 26, 2003

Still better than android clock

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

flakeloaf
Feb 26, 2003

Still better than android clock

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

flakeloaf
Feb 26, 2003

Still better than android clock

isn't the whole reason design purists hate it because of the inconsistency from one letter to the next?

flakeloaf
Feb 26, 2003

Still better than android clock

Spime Wrangler posted:

ctps: plotly es6 vuejs babel webpack npm django python2 matlab

pregnant elsa spider-man

Adbot
ADBOT LOVES YOU

flakeloaf
Feb 26, 2003

Still better than android clock

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply