| Off Topic > Off Topic |
| Programming Megathread |
| << < (222/241) > >> |
| Foxscotch:
--- Quote from: SetGaming on March 09, 2017, 11:38:41 PM ---honestly the way I see it is that pointers aren't necessarily types, so it might be confusing for people who are learning types to put it as char* s --- End quote --- a char is obviously distinct from a pointer to a char, and for me that's enough to qualify it (conceptually) as a separate type and I read the statement as "char pointer named [name]". char pointer, then the name. I guess I could see it the other way too, but it doesn't look as clear to me |
| Steve5451²:
--- Quote from: Foxscotch on March 09, 2017, 11:46:12 PM ---a char is obviously distinct from a pointer to a char, and for me that's enough to qualify (conceptually) it as a separate type and I read the statement as "char pointer named [name]". char pointer, then the name. I guess I could see it the other way too, but it doesn't look as clear to me --- End quote --- this is where I stand |
| Aide33:
--- Quote from: Foxscotch on March 09, 2017, 11:46:12 PM ---a char is obviously distinct from a pointer to a char, and for me that's enough to qualify it (conceptually) as a separate type and I read the statement as "char pointer named [name]". char pointer, then the name. I guess I could see it the other way too, but it doesn't look as clear to me --- End quote --- idk the way i justify it is because it looks nice to me and a read it like "this char type variable points to S" whereas you see it as "this character pointer is equal to s" idk why I do it tbh |
| ArmyUnit:
--- Quote from: Pecon on February 17, 2017, 05:36:57 PM ---[img ]https://i.imgur.com/u6o04HM.jpg[/img] --- End quote --- Being that I am finally learning C++, I have immense appreciation for this image |
| Metario:
--- Code: ---def coolsisLogin(u, p): blah = {'alias':'spa', 'memberName':'LoginStudent', 'dataSourceName':'', 'operationType':'call'} blah['_transaction'] = '<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><clientTypeCode>FTP</clientTypeCode><username>%s</username><password>%s</password><operationConfig/></elem></operations></transaction>' % (u, p) r = requests.post('https://(myschool).sis.cool/Gateway.ashx?outputXML=true', data = blah) pp = r.text.decode('utf-8') xmlParser = ET.fromstring(pp.replace("utf-16", "utf-8")) response = xmlParser[1].text return response --- End code --- Why does this need to be so damn complicated just to get a session |
| Navigation |
| Message Index |
| Next page |
| Previous page |