Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

What Do these Brackets Do?

Name: Anonymous 2007-03-15 23:54 ID:MpPbmHJ2

std::queue< char * > m_vMsgVal;

The < and > brackets. I don't understand why they're there.

Name: Anonymous 2007-03-16 0:04 ID:MlIyImDr

they're there because they make templates work.

Name: Anonymous 2007-03-16 2:10 ID:baImQ0BQ

If it works like Java (lol fail), then those angle brackets tell the compiler what type you expect m_vMsgVal to be.

Name: Anonymous 2007-03-16 4:54 ID:Heaven

More importantly, what's with the hungarian notation? Drop that shit.

Name: Anonymous 2007-03-16 5:56 ID:zEHY4/Gv

Hungarian notation is for losers. If you can't tell the type of a variable from its name, you've chosen the wrong name, or you are using the wrong types.

Name: Anonymous 2007-03-16 6:00 ID:Xn2lc2L/

>>1
they make your code ugly

Name: Anonymous 2007-03-16 6:56 ID:VnOjN4Cl

>>6
XML, motherfucker!

Name: Anonymous 2007-03-19 1:28 ID:gP+rxy0t

(what do these brackets do?)

Name: Anonymous 2007-03-19 7:24 ID:TLMKJ5lu

>>8

Betray your past lisp experience.

Name: Anonymous 2007-03-19 7:28 ID:09kzswht

[what do these brackets do?]

Name: Anonymous 2007-03-19 7:43 ID:WjGHXOVq


>>what do
>>  these brackets do ?

Name: Anonymous 2007-03-19 7:51 ID:0W3rxDLc

irb(main):001:0> what do
irb(main):002:1*   these brackets do
irb(main):003:2*     ?
irb(main):004:2*   end
irb(main):005:1> end

Name: Anonymous 2007-03-19 8:27 ID:WjGHXOVq

import all.the.shit
System.Call.Stupid.Question./prog/.About.Faggotry("What does this brackets do ?");

Name: Anonymous 2007-03-19 19:36 ID:0SKBqpjo

Angled brackets < > in C++ are used when you are sending a datatype as an argument.  The reason you have a special syntax just for sending datatpyes as arguments is because the compiler needs to know what datatype everything is in a line of code before it can compile it.  The actual code for the implementation of queue<T>, e.g.:


template <typename T> queue
{
/* sample code */
 T* data;
 T peekFront();
 void pushBack(T input);
/* ... */
}


isn't compiled once, it is compiled seperately for each datatype as the compiler needs it.  And so classes like queue<int> and queue<char*> are completely distinct classes.

Name: Anonymous 2007-03-20 6:44 ID:1ju6AJBF

/*What do these brackets do?*/

Name: Anonymous 2007-03-20 7:20 ID:sgKbozY9

What does Control.Exception.bracket do?

Name: Anonymous 2007-03-20 7:20 ID:2CIl2IUH

; what do these brackets do();

Name: Anonymous 2007-03-20 7:32 ID:ylLEHzQu

WRITE (WHAT DO THESE BRACKETS DO ?)
WRITE (CAPS LOCK IS CRUISE CONTROL FOR FORTRAN)
STOP
END PROGRAM

Name: Anonymous 2007-03-20 7:35 ID:VClzwLtx

STOP
HAMMER TIME

Name: Anonymous 2007-03-20 7:55 ID:2YnKjORn

MICHAEL
HESEL TINE

Name: Anonymous 2009-01-14 13:09

SICP

Name: Anonymous 2011-04-06 11:51

asdf

Name: Anonymous 2012-03-23 23:43

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: Sgt.Kabu~kiman鵵 2012-05-28 23:16

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List