Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1

    Default (dli mo update)C lang


    mao ni ang code.. dli lang nako ipa kita tanan ang poblem lang
    int a=1;


    for(i=1;i<=10;i){

    if(a==i);
    {
    a++;
    value+=value;
    }

    if(x=='e')
    i++;


    dli lageh mo update ang 'a'..
    (ga problema ko ani kay even di ko mo press sa e mo update dyaponn ang value )

  2. #2
    pwede i-describe nimo unsay purpose sa code kay di jud na siya mao ay.

  3. #3
    mao jud.... kani pa lang daan sayop na ==> for(i=1;i<=10;i){

  4. #4
    ang purpose sa code kay pra mo hunong og update ang value..if dili sya mo press og e...so wala nako geh increment ang i....pra kung mo press syag e ara pa...then ang problem nako kay sige man dyapon update ang value even dili siya mo press og e

  5. #5
    naay sayup imo "if" statement, always cya mosulod kay naay ";" after sa condition, dapat wla na cya
    if(a==i);
    what is happening here is "a" is always incremented, it should be

    if( a==i ) {
    a++; value += value;
    }

  6. #6
    Quote Originally Posted by cebugdev View Post
    naay sayup imo "if" statement, always cya mosulod kay naay ";" after sa condition, dapat wla na cya


    what is happening here is "a" is always incremented, it should be

    if( a==i ) {
    a++; value += value;
    }
    mao ni xa ang tubag

  7. #7
    good eye on cebugdev...

  8. #8
    wow thx..hanap na dyud ko og mata heheheh..

  9. #9
    Quote Originally Posted by na_adik View Post
    ang purpose sa code kay pra mo hunong og update ang value..if dili sya mo press og e...so wala nako geh increment ang i....pra kung mo press syag e ara pa...then ang problem nako kay sige man dyapon update ang value even dili siya mo press og e
    unsa nga compiler gamiton?

  10. #10
    here's my contribution. :P
    Code:
    int a=1;         // remove comma bai.
    for(i=1;i<=10;i++){      //   INCREMENT  oi.... hahahah
    
        if(a==i){
           a++;          // unsay gamit ani?????
           value+=value; // wala ka colon :P  wala declare? assume ta
        }
    
        if(x=='e')      // assume ta sa x
           i++;
    
    }
    Last edited by dodie; 09-25-2010 at 03:22 PM.

  11.    Advertisement

Page 1 of 4 123 ... LastLast

Similar Threads

 
  1. Replies: 13
    Last Post: 07-23-2012, 09:01 PM
  2. USB dli mo detect
    By intheb0x in forum Computer Hardware
    Replies: 9
    Last Post: 09-23-2007, 07:22 AM
  3. Help.. Dli mo basa ang usa ka RAM
    By baju83 in forum Computer Hardware
    Replies: 7
    Last Post: 05-21-2007, 09:59 AM
  4. unsay blema if dli mo detect ang floppy A & Drive E.
    By beeee in forum Computer Hardware
    Replies: 3
    Last Post: 12-06-2006, 09:07 AM
  5. PC dli mo-boot
    By chiQay in forum Computer Hardware
    Replies: 24
    Last Post: 11-18-2005, 07:23 AM

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