Page 5 of 5 FirstFirst ... 2345
Results 41 to 49 of 49
  1. #41

    Default Re: (Help) Parking Lot C Programming.


    Quote Originally Posted by haxors View Post
    Unsay paagi ini mga master kung gamitan lang ug simple nga walay pointers nga mga methods....
    do simple coding sa C without using pointer(read/write/calculate/assign value to variable/declare the variable)...sakto naman na u ghimo, ngamit lng ka ug pointer w/c nhimo lng nuon xa ug complicated.

  2. #42

    Default Re: (Help) Parking Lot C Programming.

    Tip:

    Para makasabot ka ug maayo sa program nga imong gihimo pag himo sa ug procedures unsaon nimo siya pagbuhat. then i verify if sakto ba ang result adto before nimo siya i code. For example:

    Code:
    Kuhaon nako ang time in
    Kuhaon nako ang time out
    kuhaon nako unsa siya nga type sa vehicle
    I validate nako kung nasakto ba ang input nako based sa condition sa B,C,D,E
    ...
    After ana inighimo nimo sa program imo na tagsa-tagsaon ug check if ni follow ba ka anang gisulat nimo. Through ana mas lesser ka ug sayop and mas dali ka maka code.

  3. #43

    Default Re: (Help) Parking Lot C Programming.

    Quote Originally Posted by moodsey211 View Post
    Tip:

    Para makasabot ka ug maayo sa program nga imong gihimo pag himo sa ug procedures unsaon nimo siya pagbuhat. then i verify if sakto ba ang result adto before nimo siya i code. For example:



    Kuhaon nako ang time in
    Kuhaon nako ang time out
    kuhaon nako unsa siya nga type sa vehicle
    I validate nako kung nasakto ba ang input nako based sa condition sa B,C,D,E
    ...
    [/CODE]

    After ana inighimo nimo sa program imo na tagsa-tagsaon ug check if ni follow ba ka anang gisulat nimo. Through ana mas lesser ka ug sayop and mas dali ka maka code.
    in short TS, himo algorithm para mksubay ka sa imo ghimo nga program

  4. #44

    Default Re: (Help) Parking Lot C Programming.

    Quote Originally Posted by fixyourself View Post
    Code:
    #include<stdio.h>
    int main(void)
    {
      printf("Do your assignments, ayaw epasa sa laing taw..");
      return 1;
    }

    heheh.. ka nindot ani nga code gud! sakto pud!

  5. #45

    Default Re: (Help) Parking Lot C Programming.

    Pde ko mo sakay dri nga thread?

    I have a hard time pag pangita sa solution sa net, but wala gyud ko kita. So istorya.net is my last resort.
    I am using Dev C++ to run my C programming. But ig pa run na nako dili ko kita sa output mo out dayon ang DOS command.
    Mao ni akoang code:

    mga master I have a problem with my Dev C++. Ig pa-RUN na nako sa program then input sa integers ky dili mo display ang output mo out dayon sya.

    mao ni akoang Code:


    #include <stdio.h>

    main()
    {
    int first, second, add, subtract, multiply;
    float divide;
    char hold;

    printf("Enter two integers\n");
    scanf("%d%d", &first, &second);

    add = first + second;
    subtract = first - second;
    multiply = first * second;
    divide = first / (float)second; //typecasting

    printf("Sum = %d\n",add);
    printf("Difference = %d\n",subtract);
    printf("Multiplication = %d\n",multiply);
    printf("Division = %.2f\n",divide);

    getchar();
    return 0;
    }


    TIA.

  6. #46

    Default Re: (Help) Parking Lot C Programming.

    na nosebleed ko..

  7. #47

    Default Re: (Help) Parking Lot C Programming.

    Quote Originally Posted by vissuelorebojo View Post
    Pde ko mo sakay dri nga thread?

    I have a hard time pag pangita sa solution sa net, but wala gyud ko kita. So istorya.net is my last resort.
    I am using Dev C++ to run my C programming. But ig pa run na nako dili ko kita sa output mo out dayon ang DOS command.
    Mao ni akoang code:

    mga master I have a problem with my Dev C++. Ig pa-RUN na nako sa program then input sa integers ky dili mo display ang output mo out dayon sya.

    mao ni akoang Code:


    #include <stdio.h>

    main()
    {
    int first, second, add, subtract, multiply;
    float divide;
    char hold;

    printf("Enter two integers\n");
    scanf("%d%d", &first, &second);

    add = first + second;
    subtract = first - second;
    multiply = first * second;
    divide = first / (float)second; //typecasting

    printf("Sum = %d\n",add);
    printf("Difference = %d\n",subtract);
    printf("Multiplication = %d\n",multiply);
    printf("Division = %.2f\n",divide);

    getchar();
    return 0;
    }


    TIA.
    try ctrl+f5 ig pa run nimo bro...

  8. #48
    if (hour_in>24||min_in>60||hour_left>24||min_left>60)
    {
    printf("\ninvalid input");
    }


    else (hour_in>12||hour_left>12);
    {
    hour_in-=12;
    hour_left-=12;

    printf("\ntime in:%d:%d",hour_in,min_in);
    printf("\ntime out:%d:%d",hour_left,min_left);
    }

    nganu d.i naaymo gawas nga -2 sa ao HOUR LEFT? kung mo butang ko og 10 and 30 min sa ako hours left ky ang mo gawas
    -2:30 min.

  9. #49
    Quote Originally Posted by gg121janelle View Post
    if (hour_in>24||min_in>60||hour_left>24||min_left>60)
    {
    printf("\ninvalid input");
    }



    else (hour_in>12||hour_left>12);
    {
    hour_in-=12;
    hour_left-=12;

    printf("\ntime in:%d:%d",hour_in,min_in);
    printf("\ntime out:%d:%d",hour_left,min_left);
    }

    nganu d.i naaymo gawas nga -2 sa ao HOUR LEFT? kung mo butang ko og 10 and 30 min sa ako hours left ky ang mo gawas
    -2:30 min.
    pastebin link daw sa imong tibuok code mam thanks

  10.    Advertisement

Page 5 of 5 FirstFirst ... 2345

Similar Threads

 
  1. C/C++ i need help in making a program
    By mE_bytes in forum Programming
    Replies: 54
    Last Post: 07-30-2008, 05:41 PM
  2. Need help in Installing Java programs in my Samsung D880
    By Soj in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-24-2008, 06:34 PM
  3. Replies: 12
    Last Post: 04-17-2008, 04:48 PM
  4. Replies: 10
    Last Post: 03-06-2008, 05:26 AM
  5. NEED HELP ON ACCESS-based programming
    By recanada in forum Programming
    Replies: 1
    Last Post: 04-26-2006, 05:12 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