Thread: Implementing C in html,Newbie Here

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    46

    Question Implementing C in html,Newbie Here

    In C im absolutely new! Im actually designing a basic web design thingy. I got everything set except for the final touch on which instruction said to have a C program that could be found on the net incorporated into the HTMl, i know it could be done with javascript etc but instructions were to use C. So i got these source codes which need to be finished, the files are below.

    Please lads, could u help me out, the lad that gave me said it just needed a final touch and help could be gotten from this forum and thats why i signed up.

    Thank you lots of love!!


    I forgot to mention its supposed to be a test like thingy! the questions are on the text file, please guys, any help would be appreciated!!
    Last edited by blondie.365; 10-14-2008 at 06:49 PM.

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Compiled the program (bad indenting bad anyways).
    There are many errors. I started debugging it. Most of the errors where because the questions file is in a bad format, meaning that it has to be in a specific format to work.

    Do these for starters.
    1) In main.c change the first line to #include "main.h" since that is how you name the header file
    2) Change the file to questions.dat not .txt
    3) The questions have to start from @Q (almost, has a small bug) and the answers from @A
    4) The answers have to be 1, 2, 3, 4 not A,B,C,D

    It can be debugged, but it needs some work

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Also, the answers given for question 5 is wrong.

    5. How many letters are in the Alphabet (American)?
    A. 36
    B. 30
    C. 43
    D. 28
    A
    There are 26 letters in the Alphabet.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Implementing TLVs
    By brooksbp in forum Networking/Device Communication
    Replies: 1
    Last Post: 07-30-2008, 01:41 PM
  2. Implementing shared/exclusive locking (readers/writer) lock
    By ruj.sabya in forum Linux Programming
    Replies: 0
    Last Post: 05-08-2008, 12:06 AM
  3. Implementing of queue using objects?
    By Argo_Jeude in forum C++ Programming
    Replies: 5
    Last Post: 08-07-2007, 11:55 AM
  4. Replies: 12
    Last Post: 12-23-2004, 12:32 AM
  5. Implementing a linked list, some problems
    By EvBladeRunnervE in forum C++ Programming
    Replies: 7
    Last Post: 12-12-2003, 09:07 AM