people playing: 66, servers online: 17, games played: 139,232,178 Top Player: Joel

 Register FAQ General Rules Community
 3 Weeks Ago #1 Retrou Junior Member   Brown Belt Join Date: Apr 2011 Posts: 12 Clan: Ascended FREE DOWNLOAD - usefull bet calculator Hello everyone! ^.^ My name is Retrou and I love to bet. I made an application to help myself with calculating earnings from bets. this app can show you: -House rake -Winner earnings -Most profitable bet -When you reach max profit Unfortunately you have to write the total ammount of bets, the app is very primitive itself. https://megawrzuta.pl/download/80292...53fbed2e4.html You can download it freeware, I hope somebody will find this application usefull Source code code: `````` int main() { int a = 0; for (int i = 1; i == 1; i++) { cout << "Welcome to TC bet calculator. \n"; if (a == 0) { double x2, y1, y2; cout << "1st player total bet TC ammount:"; cin >> y1; cout << "2nd player total bet TC ammount:"; cin >> y2; cout << "\t\t\t1st player wins:\n"; cout << "House rake/winner earnings:\t\t" << 0.1 * y2; cout << "\nBets:\t\t\t"; for (int c = 100; c < 1000; c = c + 100) { if ((0.8*y2)*(c / (y1 + c)) >= 5 * c) cout << "\n" << c << ":\t\t\t\t\t" << c*5 << "\treached max profit"; else cout << "\n" << c << ":\t\t\t\t\t" << (0.8*y2)*(c / (y1 + c)); } for (int d = 1000; d < 5000; d = d + 1000) { if ((0.8*y2)*(d / (y1 + d)) >= 5 * d) cout << "\n" << d << ":\t\t\t\t\t" << d * 5 << "\treached max profit"; else cout << "\n" << d << ":\t\t\t\t\t" << (0.8*y2)*(d / (y1 + d)); } for (int j = 5000; j < 105000; j = j + 5000) { if ((0.8*y2)*(j / (y1 + j)) >= 5 * j) cout << "\n" << j << ":\t\t\t\t\t" << j * 5 << "\treached max profit"; else cout << "\n" << j << ":\t\t\t\t\t" << (0.8*y2)*(j / (y1 + j)); } cout << "\n\t\t\t2nd player wins:\n"; cout << "House rake/winner earnings:\t\t" << 0.1 * y1; cout << "\nBets:\t\t\t"; for (int q = 100; q < 1000; q = q + 100) { if ((0.8*y1)*(q / (y2 + q)) >= 5 * q) cout << "\n" << q << ":\t\t\t\t\t" << q * 5 << "\treached max profit"; else cout << "\n" << q << ":\t\t\t\t\t" << (0.8*y1)*(q / (y2 + q)); } for (int w = 1000; w < 5000; w = w + 1000) { if ((0.8*y1)*(w / (y2 + w)) >= 5 * w) cout << "\n" << w << ":\t\t\t\t\t" << w * 5 << "\treached max profit"; else cout << "\n" << w << ":\t\t\t\t\t" << (0.8*y1)*(w / (y2 + w)); } for (int r = 5000; r < 105000; r = r + 5000) { if ((0.8*y1)*(r / (y2 + r)) >= 5 * r) cout << "\n" << r << ":\t\t\t\t\t" << r * 5 << "\treached max profit"; else cout << "\n" << r << ":\t\t\t\t\t" << (0.8*y1)*(r / (y2 + r)); } cout << "\n\ndo you want to proceed? (type 0 to continue)\n:"; cin >> i; } else; } return 0; } `````` If you have some questions or suggestions for the app, please make a comment. I will try to do my best! If you want to support me or my content, send some TC See ya in the betting room! p.s. dont worry its not trojan. p.p.s. dont laugh at the code, im a begginer. Last edited by Retrou; 3 Weeks Ago at 11:24 PM.. Reason: adding source code
 3 Weeks Ago #2 ☼TyZi it is i, tyzerino gambino las vegas marino honda civic   Red Belt Join Date: Jun 2009 Posts: 8,561 Hi! I've moved this thread to the correct place. However, please still add source code if it's not done so in your download link.
 3 Weeks Ago #3 &Elite 今天你好嗎我的好朋友   God Belt Join Date: Jun 2015 Posts: 1,146 Clan: Solus that's some nice C++ there, could use some cleaning up but overall nice. feel free to join my server in my signature if you ever need help with programming. might use this here and there, only thing i'd change is maybe put the calcuation stuff in a function. [Solus] Leader | Mod Creator | Graphic Artist | Programmer Like Coding, Design, Gaming, Or More? Join Mesh Think You're Unique? Apply to Solus!
 3 Weeks Ago #4 Retrou Junior Member   Brown Belt Join Date: Apr 2011 Posts: 12 Clan: Ascended Thank you for your comment! I know there is a lot of mess (for example "a" is useless, it was used in different part and never removed) and the main is too long, but the point was to write something working really fast (30 minutes). Im thinking about some java aplets which can operate on data gathered from toribash. Topic is pretty hot for me, i have to pass my exams.
3 Weeks Ago   #5
&Elite

God Belt
Join Date: Jun 2015
Posts: 1,146
Clan: Solus

 Originally Posted by Retrou Thank you for your comment! I know there is a lot of mess (for example "a" is useless, it was used in different part and never removed) and the main is too long, but the point was to write something working really fast (30 minutes). Im thinking about some java aplets which can operate on data gathered from toribash. Topic is pretty hot for me, i have to pass my exams.

Once again, if ya ever need help my server has some helpful people
and i mainly focus on optimizing/removing useless stuff once i get functionality down.

Another thing i'd change is instead of using \n in strings to create a new line, do cpp code:
``````
<< endl;
``````
after the string

[Solus] Leader | Mod Creator | Graphic Artist | Programmer

Like Coding, Design, Gaming, Or More? Join Mesh
Think You're Unique? Apply to Solus!

Last edited by Elite; 3 Weeks Ago at 01:54 AM..

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Toribash     News     Entertainment and Media         Video Submissions     Replays         Multiplayer Replays         Book of Records     Mods         Lua scripts         God Team         Third party     Events     Art     Suggestions & Ideas Help     Beginner Sanctuary         Introduce yourself     Technical Support         Beta Releases     FAQ     Tutorials Market     Art/Textures         Requests     Items         Particle Flames Clans     Organiζations         Official Organiζations             The Aikido Team                 The Aikido Council             Anime United                 Hentai HQ             Brazilian Toribash Organization                 BTO in a Box             Gamer's Inc.                 Vault 101             GATA                 GATA Chambers             Indonizer                 Gedung DPR             New Order of Taekkyon                 Tk HQ             Official FRench Organization                 La Baguette             OLDA                 The OLDA Room             ORMO                 Precise focal precision             OSHI                 Chest of Wonders             #Polska                 Jama terroru             Portugal                 O Cantinho             RMO                 Leaders Nest             Toribash по-русски                 Энциклопедия             Team Sambo                 TSPrivate             Toribash Marketeers Organization                 Marketing perfected             Toribash Media                 The Crew             Toribash Tricktionary                 The Tricktionary Council     Clan Discussion         Official Clans             Red             Blue             Adventure             Aeon                 Aeon Politbuero             Aether                 The Temple of Fred             All Stars                 [AS]'s Secret Hideout             Alpha                 Sanctum             Catalyst             Creamy Horse Mouths                 Confederacy of Intergalactic Domination             Damned                 Dark Temple             Desolate             Duck             Elite                 seekrit business             Evil                 BIG THINGS             Evolution                 eVo seekrit             fl0w                 ʍ0lɟ             Frost             Ghetto                 Kawaii Ghetto             Hack                 Rukeepers             Hidden                 The Root             I am                 Hentai Dungeon             Infinity                 Oitava Dimensão             Inquisition                 Inq Private             Jolly Roger                 Treasure Chest             Nitro             Obey                 a fantastic lack-of-joboman's-posts appreciation board             Parrot                 Private-stuff             Piratez                 The Rum Storage             Power             re                 re|dacted             RelaxAll                 RASA             Rock             Saint                 Black Market             Suki             [T]                 [T] Party             The Last Legion                 TLL             The Sk8r Club                 Vibe's sex shop             Traps Are Not Gay             Tribe                 The Gathering             Undead             USSR                 USSR Secret             Vector             WAPOW         Recruitment Center General     Discussion     Off-Topic         Gaming Chat         Computer/Mobile Chat         Music/Movie Chat     Rapid Threads elerk     Tori Legends

All times are GMT +1. The time now is 10:53 AM.