Results 1 to 10 of 10
  1. #1

    Default Another help in C pls


    patabang unta ko sa C agen..3 questions, if maka reply mu, pls specify what number


    1.how do you make a timer? pwede na siya ma user defined like countdown from 20 to 0

    2.then pwede ba na ma over write direcho ang na output
    for example
    Score: 0
    then naka points xa ug 10
    so ang Score: 0 mahimo Score: 10 without outputing another Score nga word

    3. how to use a gotoxy() function..pwede sample

    ah palihug unta kanang pinaka simpol nga explanation kay noob paman gud ko

    tenks.

  2. #2

    Default Re: Another help in C pls

    #include <time.h>
    #include <stdio.h>
    #include <conio.h>

    #define ONE_SECOND 1000

    void sleep(unsigned int mseconds)
    {
    Â* Â* clock_t goal = mseconds + clock();
    Â* Â* while (goal > clock());
    }

    main()
    {
    Â* Â* int sec;
    Â* Â* clrscr();
    Â* Â* for (sec = 10; sec > 0; sec--)
    Â* Â* {
    Â* Â* Â* Â* clrscr();
    Â* Â* Â* Â* printf("%d", (sec - 1));
    Â* Â* Â* Â* sleep(ONE_SECOND);
    Â* Â* }

    Â* Â* return 0;
    }


    try studying gotoxy function of conio.h sad bay para anang overwrite ug output or para maka display ka sa imong output anywhere sa screen. ang i pass nimo sa sleep nga function kay ang interval in milliseconds. good luck! :mrgreen:

  3. #3

    Default Re: Another help in C pls

    bai zengatsu

    gi run compile nako pero 9 ra lageh output

    mao jud na xa?

  4. #4

    Default Re: Another help in C pls

    mu run man cya bay. from 9 then i clear niya ang screen then 8 and so on.. unsa imong compiler bay kay mu matter sad yata imong ginagamit nga compiler. ako na gi compile gamit borland nga compiler. kanang free command line tools nila. version 5.5 man cguro na. if wala ka ana try lang adto sa ilang site then i download ang compiler nila. unsa diay imong compiler?

  5. #5

    Default Re: Another help in C pls

    Paspas ra cguro imo PC part...

    Try daw increase imo parameter sa sleep, padak-i aron mohinay...

  6. #6

    Default Re: Another help in C pls

    the sleep function accepts time in milliseconds. mao na ang unsa kadugayon una mu change ang value sa imong timer. ang naa diha sa program is 1 second ang interval. just try to compile it using borland compiler bay.

    note: ang gotoxy ug ang clrscr diay nga functions kay extensions ra na done by borland sa conio nga set of functions. its not in the standard library.

  7. #7

    Default Re: Another help in C pls

    aow..borland man sad cguro ni akoa bai mao man mugawas inig load nako sa c

    version 2.01 nuon

    try nya nako bai

  8. #8

    Default Re: Another help in C pls

    cge bay gud luck! kaya na nimo uy! :mrgreen:

  9. #9

    Default Re: Another help in C pls

    bai..mu dagan na jud xa
    ako ra gi adjust ang ONE_SECOND

    bai kahibaw mu ana library2x?

    gusto man gud ko nga ako questions sa game naa ra sa usa ka storage nya ma access ra nako
    kita ko sa usa ka code header file ila questions nya inig generate niya ba, randomize pero gikan sa header file
    as of now ako ra xa gi tagsa2 ug function dayun gi sulod ug array pero para nako samok siya tan.awon
    taas2 lang sa code.

    patudlo unta ko.

    ty bai

  10. #10

  11.    Advertisement

Similar Threads

 
  1. Cheap Hotels in Singapore (pls HELP!)
    By ChinitaKo in forum Destinations
    Replies: 27
    Last Post: 07-09-2011, 01:58 AM
  2. job in singapore pls help guys pls
    By forsaleonly in forum Career Center
    Replies: 17
    Last Post: 09-26-2009, 01:53 AM
  3. Looking For: A person who will help me(i will give something in return) pls read my post!
    By d_boss in forum Cellphones & Accessories
    Replies: 4
    Last Post: 04-22-2009, 09:33 AM
  4. Looking For: help me find JOBS IN DUMAGUETE PLS
    By nitwit in forum Jobs
    Replies: 4
    Last Post: 11-18-2008, 03:52 PM
  5. junk shops address in cebu..pls help
    By nikkolai in forum Support Center
    Replies: 2
    Last Post: 07-06-2005, 08:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top