Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
small question
#1
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.
Reply
#2
@ h4ck3d-

Can you Please tell that what's the correct problem you are having.
[Image: 2d75599e9a.png]:superman:
Reply
#3
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
Reply
#4
If you want to make something impossible to read, use gotos. Enough said.
Reply
#5
it's ok thanks for the help, he figured out what he had to do.
Reply
#6
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.
Reply
#7
And if you want an example of what obfuscated code looks like, feel free to check out the TrueAxis source code.
[Image: sig.php]
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.
Reply
#8
Code:
int main ()
{
     Top:
     printf ("Hello world");
     printf ("\n");
     goto Top;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)