Forum game: Never ending program (for geeks)

Pages: 123
@LB Isn't contributing to the post somewhat ironic?
A Group Of Eight wrote:
1
2
if(forumname == 'amhndu')
    amhndu.leave();


Since you like to be a 'D', your code doesn't even make sense. If you want a string in C++, then you need quotation marks.

if(forumname == "amhndu")

Also, where did you define amhndu's object?
Last edited on
closed account (Dy7SLyTq)
fred... we arent writing c++ code. in python thats perfectly acceptable
cout in python? There's a << operator too?
closed account (3qX21hU5)
I believe he meant in python you can use ' ' and " " for string literals.
Last edited on
Mkay.
closed account (3qX21hU5)
Though if he was writing it in Python it would have looked like
1
2
if forumname == 'amhndu':
    amhndu.leave()


;p
closed account (Dy7SLyTq)
yes i meant just the literal part. we are writing in our own language at this point i believe
closed account (Dy7SLyTq)
while(True);
while((((((((((((((((((((((((((((((1))))))))))))))))))))))))))))));
iHutch105 wrote:
@LB Isn't contributing to the post somewhat ironic?


hahaha

1
2
3
4
5
6
int geek = 0;
while(!geek)
{
cout<<"i will you to become a geek *"<<geek<<endl;
}
Last edited on
L B (6084)
We don't need the forum database filling up with nonsense.
1
2
3
4
5
bool L_B_nagging = true;
while (L_B_nagging);
{
cout<<"stop nagging!";
}


don't worry they have good database, and this is "lounge" ;)
LB doesn't nag,
Last edited on
You mean "L B", right devon? :3
closed account (Dy7SLyTq)
he prefers LB i believe

1
2
EmbedLisp("(((((((((((((((((((((((((())))))))))))))))))))))))))))))))");
//wrote a lisp program for funsises 
That was the point >.>
assert(!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!true);
Last edited on
1
2
string this_thread = new string;
this_thread = "awesome";
Last edited on
@DTSCode, Fredbill30
A string is allowed to span across multiple lines only if you end each line with a backslash ('\'). Also, any strings that are adjacent are automatically concatenated:
1
2
3
4
5
6
7
8
9
10
11
// Bad
const char* string = "hello 
world";

// Good
const char* string = "hello \
world";

// Better.
const char* string = "hello "
                     "world";
Last edited on
closed account (S6k9GNh0)
In Python, you can have a string span multiple lines by using triple quotation marks (""").
Pages: 123