Help

help

class Thing{
public:
string name;
int len;
bool thruGreen();
};
//string name, int len, bool thruGree()

int main()
{
Thing myThing;

cout

C++ is so ugly also wrong board faggot

How's high school CS

good

So you learned how to implement a class? What's the point of this thread?

public static Boolean gayTest(String poster){
if(poster.equalsIgnoreCase("op"){
return true;
}
}

System.out.println("is OP a faggot?");

System.out.print(gayTest(OP));

it always returns true

> current year
> accessing array without bound check

Idk about C++, but in C you cant compare two thing with ==, you need to use strcmp(). Maybe thats the issue

is this your suicide code? if not, write it

public Boolean isOPFaggot {
return true;
}

Forgot a parentheses there buddy

hello you code man you need to use java to make the strings work

>actually programming in an object oriented language
lol, you almost got me

it will always return false
you never set len, so it doesn't even get into the for loop

this

>its another "everyone on fit pretends to be an alpha yet they are all computer programmers" thread

did you even test this? len has no value

also if the array index goes from 0 to (length - 1), then name[i+1] will go reach name[length], out of bounds.

I thought CS would be full of autists like me but there are actually a lot of Chads these days

Oh i didn't read "help"

It always returns false because LEN is 0 so it never loops through the for loop.