TKC-Community

Main Section => Headlines => Topic started by: M. O. on October 30, 2006, 12:33:37 am

Title: 29-OCT-06 New features
Post by: M. O. on October 30, 2006, 12:33:37 am
We've improved a few features here on the board. It's forum security, an award mod, and geshi:

GeSHi:
Code: (cpp) [Select]
#include <iostream>
using namespace std;
int main()
{
    cout << "Hello, world!";
    return 0;
}

Code: (pascal) [Select]
program MYgreatPROG;
uses crt;
var boolean shoeson;
begin
ClrScr;
writeln('Shoes on?');
Readln(shoeson);
end.

Code: (asm) [Select]
.386
.model flat, stdcall
NULL            EQU     0

MessageBoxA     proto :dword, :dword, :dword, :dword
ExitProcess     proto :dword

.data
MSGBOX_TITLE   DB 'some less important shit', 0
MSBBOX_MESSAGE DB 'Hello World', 0

.code
WinMainCRTStartup   proc
    invoke MessageBoxA, NULL, offset MSBBOX_MESSAGE, offset MSGBOX_TITLE, 0
    invoke ExitProcess, 0
    ret
WinMainCRTStartup   endp
end

Code: (matlab) [Select]
for pizzanr=1:0.5:10
    goodpizzas=goodpizzas+0;
end
Title: Re: 29-OCT-06 New features
Post by: ZOldDude on October 30, 2006, 01:56:40 am
?
Title: Re: 29-OCT-06 New features
Post by: M. O. on October 30, 2006, 03:09:53 am
Lol, yea just showing off the new GeSHi feature with some sample code (works for many different languages).
Title: Re: 29-OCT-06 New features
Post by: ZOldDude on October 30, 2006, 08:18:19 am
So...just a differant way to do the same old things?
Title: Re: 29-OCT-06 New features
Post by: [TKC]Anothercheater on October 30, 2006, 12:35:28 pm
lool cool
Code: (cpp) [Select]
//************************************** #0. DEFINE BASIC VARIABLES AND SETTINGS ***********************************//

#include "stdafx.h"
#include "functions.h"

int main(int argc, _TCHAR* argv[])
{
//************************************** #1. READ ARGUMENTS AND SETUP FOLDER **************************************//
if(argc <= 1)
{
system("cls");
cout << "\n********************************************************************************";
cout << "\n     TKC Supercheatpack 1.2 - Visit www.tkc-community.net for more cheats!\n";
cout << "\n************************************************************************v" << _version << "\n";
cout << "Usage: patcher.exe drive:\\path" << _patcher_filename << "\n\n";
system("pause");
return 1;
}
else
{
_filename = argv[1];
for(i = 3; i <= argc; i++)
{
ostringstream argv_s;
argv_s << argv[i-1];
argv_tmp = argv_s.str();
_filename = _filename + " " + argv_tmp;
}
system("cls");
}
Title: Re: 29-OCT-06 New features
Post by: ZOldDude on October 30, 2006, 08:46:08 pm
Mmmmm....I have been out of the loop for too long so I went and found some information:

http://www.google.com/search?hl=en&q=GeSHi&btnG=Google+Search

I will start reading about what this is and how it works later today (just woke up).
Title: Re: 29-OCT-06 New features
Post by: M. O. on October 30, 2006, 09:40:24 pm
It just makes code easier to read ;)
Title: Re: 29-OCT-06 New features
Post by: ZOldDude on October 30, 2006, 10:22:33 pm
It just makes code easier to read ;)

Like I said then?:
Quote
So...just a differant way to do the same old things?
Title: Re: 29-OCT-06 New features
Post by: M. O. on October 30, 2006, 10:30:53 pm
Well, this version also highlights some standard code/syntax.

Code does this:
Code: [Select]
if(argc <= 1)
{ system("cls");
cout << "\n********************************************************************************";
cout << "\n     TKC Supercheatpack 1.2 - Visit www.tkc-community.net for more cheats!\n"; cout << "\n************************************************************************v" << _version << "\n";
cout << "Usage: patcher.exe drive:\\path" << _patcher_filename << "\n\n"; system("pause"); return 1; } else

GeSHi does this:
Code: (cpp) [Select]
if(argc <= 1)
{ system("cls"); cout << "\n********************************************************************************";
cout << "\n     TKC Supercheatpack 1.2 - Visit www.tkc-community.net for more cheats!\n";
cout << "\n************************************************************************v" << _version << "\n";
cout << "Usage: patcher.exe drive:\\path" << _patcher_filename << "\n\n"; system("pause"); return 1; } else
Title: Re: 29-OCT-06 New features
Post by: ZOldDude on October 31, 2006, 01:20:05 am
Quote
...also highlights some standard code/syntax.

Well that does make it nice then!