Posts: 22
Threads: 2
Joined: Oct 2009
Reputation:
0
my friend needs help. he needs
3 bad examples of c++ code that makes something difficult to read or maintain
i guess anything thing goes would appreciate it if someone could help.
Posts: 335
Threads: 34
Joined: Oct 2009
Reputation:
8
@ h4ck3d-
Can you Please tell that what's the correct problem you are having.
:superman:
Posts: 66
Threads: 3
Joined: Oct 2009
Reputation:
0
10-13-2009, 01:32 AM
(This post was last modified: 10-13-2009, 01:35 AM by dongblues.)
post the code of your friend.. but if he just wants everything hazy from other people.. put in a lot of comments and move all lines to the end of the screen.. that annoys people..
example..
__________________________________________________________#include<stdio.h>//qtrtqerwerqwesdfasdyyu dyutrfgdfh
___________________________#include<conio.h>//sdfsdafsd thre asfsdf trwe wer safa werwe rerqe rqwerqw sfaasdf erqw q
Posts: 116
Threads: 10
Joined: Oct 2009
Reputation:
4
If you want to make something impossible to read, use gotos. Enough said.
Posts: 22
Threads: 2
Joined: Oct 2009
Reputation:
0
it's ok thanks for the help, he figured out what he had to do.
Posts: 23
Threads: 9
Joined: Oct 2009
Reputation:
0
Making the code VISUALLY hard to read has NOTHING to do with security, to a computer, its still decompileable, Examples below
#include <iostream>
int main()
{
cout << "Hello Their!";
}
#include <iostream>
int main() {
cout <<
"Hello their!"; }
Look up code obfuscator if you want it Assembly hard to read.