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

String manipulations gogo

Name: Anonymous 2008-03-25 5:59

alright, so I'm retarded when it comes to c++

I want an if condition of if the current part of a string is a bracket or a paren.

how the fuck I do that?

if (input.whatthefuckgoeshere == "[";)

Name: Anonymous 2008-03-25 6:15

I take a user input, in general a string of something like "[3+4]+1"

I want to count the matching parens.

so I know I'm going to need someting like:

if (input.whatevergoeshere == "(")

the only java equivalent I know of is input.charAt()

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