 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Travis13 Expert Cheater
Reputation: 0
Joined: 17 Feb 2007 Posts: 199
|
Posted: Wed Jul 09, 2008 8:48 pm Post subject: |
|
|
| Wiccaan wrote: | | Travis13 wrote: | | i can use w/e i want...system functions are very useful for other things too like system("COLOR 5f"); or system("TITLE Hello World"); and so on............there is nothing bad about it so just drop it |
Have you ever researched it or debugged it yourself? It's a huge waste of resources. Yes, you are free to use what you want, but I suggest not using it.
As for everything else you listed, you can do all those with other functions.
system("pause");
| Code: | std::cin.sync();
std::cin.ignore(); |
system("TITLE Hello World");
| Code: | | SetConsoleTitle( _T("Hello World") ); |
system("COLOR 5f");
| Code: | | SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), BACKGROUND_RED|BACKGROUND_BLUE|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_INTENSITY ); |
No reason to use system() to waste resources when you have functions that do the same thing.
Console Functions:
http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx |
i havnt read the 2nd page yet but wow.....all that just to find an alternative to get the color and title.....theres no point -_- system is fine and there is NOTHING wrong with it...stop trying to show off and make things more confusing for learning people
_________________
Learning C++, trying, failing, never gonna give up tho  |
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Wed Jul 09, 2008 8:54 pm Post subject: |
|
|
| Fuzz wrote: | | Create your own functions, and call back to them when you need to in the loop. |
HA, im a fucking retard. got the while loop working, and sorry to quote myself, but i thought i needed to point out how stupid i am on no sleep
EDIT: travis, shut up, hes right o.o
_________________
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Wed Jul 09, 2008 9:23 pm Post subject: |
|
|
i havnt read the 2nd page yet but wow.....all that just to find an alternative to get the color and title.....theres no point -_- system is fine and there is NOTHING wrong with it...stop trying to show off and make things more confusing for learning people
System sucks. Its horrible to use. It it slower, less efficient, and just a bad habit Wiccaan is right, get over it.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Thu Jul 10, 2008 12:53 am Post subject: |
|
|
| Travis13 wrote: | | i havnt read the 2nd page yet but wow.....all that just to find an alternative to get the color and title.....theres no point -_- system is fine and there is NOTHING wrong with it...stop trying to show off and make things more confusing for learning people |
Like your signature says, you are learning. Do some research on using system(), for example this site gives a general overview why it's bad:
http://www.gidnetwork.com/b-61.html
But like I previously stated, you should debug it yourself and take a look at all the junk it does that isn't needed which can be replaced with two simple lines of code.
"All that just to find an alternative.." all what? It took like 2 seconds to use Google to find those functions. Yeah, I didn't remember them off the top of my head because they are things I don't care about, but that doesn't mean you should hinder your program using something that isn't efficient.
I'm not showing off, I could care less how others see me on these forums, I am just trying to suggest better things to you so your program runs better, has more portability, etc.
_________________
- Retired. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|