NO

Author Topic: help  (Read 5072 times)

jerzee

  • Guest
help
« on: August 05, 2010, 09:52:33 PM »
any good c programming books
« Last Edit: August 09, 2010, 04:21:39 PM by jerzee »

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: help with blackjack project
« Reply #1 on: August 06, 2010, 07:54:16 AM »
C:\Users\jason\Documents\Pelles C Projects\loop\loop.c(1): fatal error #1035: Can't find include file "randomcard.h". does any one know what this means and how do i fix it he is the code

#include "randomcard.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
It means, what the message says, the compiler can't find the include file "randomcard.h". The compiler searches for this file in the directory where your source code is.
Have you create a header file "randomcard.h"?
best regards
 Alex ;)

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: help with blackjack project
« Reply #2 on: August 06, 2010, 06:56:29 PM »
how do i create a header file for randomcard.h?
You need to write the function randomcard(), which you use in your source code and the prototype should be in randomcard.h.
best regards
 Alex ;)

Offline Vortex

  • Member
  • *
  • Posts: 862
    • http://www.vortex.masmcode.com
Re: help with blackjack project
« Reply #3 on: August 06, 2010, 07:07:57 PM »
Hi jerzee,

Just check the include files of Pelles C to learn how to write header files.
Code it... That's all...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2112
Re: help with blackjack project
« Reply #4 on: August 06, 2010, 08:43:03 PM »
Quote
in c pelles i cant find randoncard.h in the library
You can't. It isn't Pelles C header file. You have to write your own.
Create new file and save it as randomcard.h .
May the source be with you

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: help with blackjack project
« Reply #5 on: August 08, 2010, 10:23:11 AM »
in c pelles i cant find randoncard.h in the library and i dont know how to add it or even come close to adding it

I assume that the program is not yours. So look for the content of randomcard.h and the function randomcard() at the same source where you found the rest.
best regards
 Alex ;)