| View previous topic :: View next topic |
| Author |
Message |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 05, 2008 9:52 pm Post subject: Can This be Coded for me? [Offering Rep?] |
|
|
Ive been really busy with High school, I dont have the time.
Can Someone release / code a program for my brother that does letter equations, Such as the Database of A=1 B=2 C=3, etc So if the word was ABC The answer would become 1+2+3=6. Its very hard for him in a advance class 2nd grade. He has also been approved to use this method.
Thanks.
Last edited by Moments on Thu Jun 05, 2008 10:09 pm; edited 1 time in total |
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Thu Jun 05, 2008 9:53 pm Post subject: |
|
|
| can it be PHP?
|
|
| Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 05, 2008 9:54 pm Post subject: |
|
|
| It can be anything, please.
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Thu Jun 05, 2008 10:14 pm Post subject: |
|
|
| PHP is web based you know?
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Jun 05, 2008 10:17 pm Post subject: |
|
|
Well, since I am in a good mood, I coded a very bad example for you. It works, but don't expect it to be very stable. Language: C
| Code: | #include <stdio.h>
char buffer[100];
void main(void)
{
int i, out = 0;
for(;;out = 0) {
printf("Enter the string, no spaces: ");
scanf("%s", buffer);
for(i = 0; i < strlen(buffer); i++) out += (buffer[i] | 0x20) - 0x60;
printf("The sum is: %d\n", out);
}
} |
|
|
| Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 05, 2008 10:21 pm Post subject: |
|
|
| Bam! wrote: | | PHP is web based you know? | Yes, I do!
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Thu Jun 05, 2008 10:23 pm Post subject: |
|
|
| Code: |
<?php
$a = $_POST["a"];
$b = $_POST["b"];
$c = $_POST["c"];
$lol = $_POST["sign"];
$add = "+";
$subtract = "-";
$multiply = "x";
$devide = "/";
if ($lol = $add)
$answer = $a + $b + $c;
echo "$answer";
if ($lol = $subtract)
$answer = $a - $b - $c;
echo "$answer";
if ($lol = $multiply)
$answer = $a * $b * $c;
echo "$answer";
if ($lol = $devide)
$answer = $a / $b / $c;
echo "$answer";
?>
|
Lol... It can only either add... subtract... multiply... or devide three numbers! haha i cant beleive i did that! it sux
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Jun 05, 2008 10:43 pm Post subject: |
|
|
Again, out of boredom I made it actually output the equation. Again, not very stable.
| Code: | #include <stdio.h>
char buffer[256];
void main(void)
{
unsigned int i, out = 0;
for(;; out = 0) {
printf("Enter the string, no spaces: ");
scanf("%s", buffer);
for(i = 0; i < strlen(buffer); i++) {
buffer[i] = (buffer[i] | 0x20) - 0x60;
printf("%d ", buffer[i]);
if(i != strlen(buffer)-1) printf("+ ");
out += buffer[i];
}
printf("= %d\n", out);
}
} |
|
|
| Back to top |
|
 |
Box Grandmaster Cheater
Reputation: 0
Joined: 16 Oct 2007 Posts: 541
|
Posted: Fri Jun 06, 2008 7:34 am Post subject: |
|
|
i could make a quick vb6 program would you like for me to do that?
_________________
| zurkei wrote: | | Wow box your a real dick, I can't believe I actually thought that you were telling the truth... |
Fact: no one tells the truth on cheat engine fourms |
|
| Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Fri Jun 06, 2008 8:34 am Post subject: |
|
|
| magic moo wrote: | | i could make a quick vb6 program would you like for me to do that? | Please.
|
|
| Back to top |
|
 |
|