Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C]A lame FishMe

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Mar 22, 2008 4:04 am    Post subject: [C]A lame FishMe Reply with quote

a simple sample for a FishMe, the answer is 5.

Code:
#include "windows.h" //We are going to use the Sleep(); api
#include "stdio.h"

DWORD ms=2000; //global declarations for variables

void main(int value)
{
   //int value;

   scanf_s("%d",&value);

   /*if(value == 5)
   {
      printf("Correct serial...\n");
      Sleep(ms);
   }
   else
   {
      printf("Wrong Serial...\n");
      Sleep(ms);
   }*/

   switch(value)
   {
   case 5:
      printf("Correct serial...\n");
      Sleep(ms);
      break;
   default:
      printf("Wrong Serial...\n");
      Sleep(ms);
      break;
   }
}
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Mar 22, 2008 4:43 am    Post subject: Reply with quote

Love the
Code:
void main()
! Where are you learning C from?
Back to top
View user's profile Send private message MSN Messenger
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Sat Mar 22, 2008 9:01 am    Post subject: Reply with quote

why have you got a bunch commented out?
including "int value"?
you need it for the switch...

dont use void main - its not good practice.

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Sat Mar 22, 2008 10:43 am    Post subject: Reply with quote

point taken about the void main thing.
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites