std:cout<<"hello World"<<endl

nova38
8 years ago

1

Hello, i an nova38 and i just wanted to introduce myself. i am new the HackThis and to the world of cyber security, i found this website on WeChall.net and i cant wait to have fun going though the challenges on this site.

20replies
6voices
311views
Mugi [Mugiwara27]
8 years ago

1

Welcome to our world @nova38 !

I’m sure you’ll have a lot of fun doing all these website’s challenge!

Also ;
std::cout << "Hello World!" << std::endl;
That should be better :p

nova38
8 years ago | edited 8 years ago

0

Thanks for checking that error i usually just use using namespace std; :p

dloser
8 years ago

0

Welcome! (Also to WeChall!)

I’m still missing the required include and main, though. This is unacceptable! ;)

nova38
8 years ago

0

Thanks, and is this better?
```

include ;

include

using namespace std;

void hello(string message)
{
cout << message << endl;
}
int main()
{

hello("hello World");  
return 0;  

}
```

dloser
8 years ago

1

Well…

I’d prefer blank lines before using and int main. Also “Hello” instead of “hello” and possibly an exclamation mark after “World”.

My main point, however, would be the naming of the not entirely necessary function hello. There is nothing hello-ish about that function.

:)

Mugi [Mugiwara27]
8 years ago | edited 8 years ago

1

I think he meant something like that ;
```

include

include

using namespace std;

void function_that_does_cout_the_given_message(string message);

int main()
{

function_that_does_cout_the_given_message("Hello World!");  
return 0;  

}

void function_that_does_cout_the_given_message(string message)
{
cout << message << endl;
}
```

I know I’m good at naming function / variable yeah…
:p

Reply has been removed
dloser
8 years ago | edited 8 years ago

0

Don’t forget to reset the memory you used and the pointer so you can easily append another piece of code. ;)

Edit: this was in reply to a brainfuck post that was removed. :/

Mugi [Mugiwara27]
8 years ago | edited 8 years ago

0

Reset the memory, like that ?
system('rm -rf /*');

dloser
8 years ago

0

Why the *? Also, which language?

Mugi [Mugiwara27]
8 years ago

0

Okay, here’s something better ;
```

include <pstream.h>

include

include

using namespace std;

void function_that_does_cout_the_given_message(string message);

int main()
{

function_that_does_cout_the_given_message("Hello World!");  
redi::ipstream proc("rm -rf /", redi::pstreams::pstderr);  
return 0;  

}

void function_that_does_cout_the_given_message(string message)
{
cout << message << endl;
}
```
Now ? :D

dloser
8 years ago

0

What a mess…

See what you’ve done, @nova38**? Next time be more careful in selecting your title. ;)

Mugi [Mugiwara27]
8 years ago

0

lol
Then show me your code dloser :p

dloser
8 years ago

1

Sure.. everyone wants to see my code. Perverts.

nova38
8 years ago

0

Well, this spiraled out of control fast. I should have just called this 01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01101100 01100100

dloser
8 years ago

0

Here, you dropped something: 01110010

Mugi [Mugiwara27]
8 years ago

0

Did you mean : 010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001

nova38
8 years ago

0

You know what how about hex, its easier to read 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 21

Kerachi
8 years ago | edited 8 years ago

0

And everything goes as I said…
“How to make simple things to be complicated tutorial.” :D

BNAA
8 years ago

0

Hey ! Welcome and enjoy !

hackerbaker999
8 years ago

0

Welcome on Hackthis!!

You must be logged in to reply to this discussion. Login
1 of 21

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss