Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32
  1. #21

    Quote Originally Posted by sideon View Post
    Actually i know what you're talking like you'll use while instead of for.
    Let me elaborate it. for loop can also be use without the third statement even without first and second statement, e.g. infinite loop for ( ; ; ) The advantage of for loop is the scooping (enscapsulation) of your variable, you can be sure that it can only be change within the loop.

    [edited: semi-colon followed by close parenthesis convert to smiley automatically]
    OT: dapat is sulod ug code block para dili ma render as smily

  2. #22
    brad, nasobraan man pud kag ka-brayt sa imong english2x. dili na scooping, scoping tingali imong buot pasabot, dili ice cream scoop hehe. anyway ayaw i-explain sa akoa akong kaugalingon idea bro kay originally imong idea show off show off ra wa gani ka kabalo ngano nangutana pa ko sa TS. i-quote tka utro ha?

    Quote Originally Posted by sideon View Post
    i dont know what you are trying to show off...
    unya karon explainan ko nimo unsay sulod sa akong utok? naglamlam mana imong baba dira da next time, i-consider una ug maayo unsa mogawas ana imong baba bro kay kunohay programmer man kaha ka so pag-error-handling pud ginagmay dira. ingon ka "you don't know" unya mura nman kag kinsa hilasa moingon nga nanghambog ko. sure uy.

    to clear things up, the BUG that needs FIXing badly ani nga thread is that you failed to COMPREHEND what i am trying to do unya gigamitan pa nimo ug words nga "show off", dba hilas ra kaayo bro kay naglisod man gani kag sabot? or perhaps sakto akong analysis about sa imong personality nga suyaon?

    akong ika-suggest bro, praktis una gamit ug bb code before ka pakitang gilas sa c

  3. #23
    i alredy told you., the bug has been fixed already.. no need to show your solution. If you insist then you are showing off!

  4. #24
    haha ngano murag allergic man kau ka makakita sa akong solution? murag wala man ko nagpakita ug solution diri nangutana ra man ko sa TS. suyaon man jud tingali ka nga pagkatawo brad. wa ka nka-gets nga ikaw na ang BUG nga akong gi-mean?

  5. #25
    Hehehe, at least im not show off! :P

  6. #26
    Quote Originally Posted by sideon View Post
    Hehehe, at least im not show off! :P
    see murag nasuya ra ka da. nangutana pa gani ko sa TS, wa pa ko pakita ug solution, nag-una2x nka hehehe. brad natural ra na nga ipakita unsay kaya nimo as long as tinuod pud, how much more tingali kung nakatabang kag lain tawo dba? ang nakabati run kay kung nagpa-as if ka nga kantigo unya wa diay to kabalo unsay nakalahi sa scooping ug scoping. english2x pa

    tagaan tka ug code ha, unya pangitaa asa dapita ang dili sakto para malingaw ta diri kay murag major in philosophy pud ka da. anyway, programming forum btaw ni diri hehe. brb.

  7. #27
    kamo ba, inyo pa dyud lalisan ang pang 1st year programming, kiss nalang gud.

    Wa naman gani mo reply ang TS satisfied na sa inyong solution, ayaw na e complicated kay mahibong na iyang maestra/maestro.

  8. #28
    @sideon, para imoha ni. kapoy kau cge ta lalis ug philosophy. mag-program2x na lang ta para lingaw. kay ni-ingon man ka nga show off, pangitaa daw unsay mga sayop ani

    Code:
    #if defined(unix) || defined(__unix__) || defined(__unix)
    	#define PREDEF_UNIX
    #elif defined(MSDOS) || defined(__MSDOS__) || defined(__MSDOS) || defined(__DOS__)
    	#define PREDEF_DOS
    #elif defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
    	#define	 PREDEF_WINDOWS
    #else
    	#error OPERATING SYSTEM NOT SUPPORTED!
    #endif
    
    #if defined(__TURBOC__) && defined(PREDEF_DOS)
    	#define PREDEF_TURBO
    #elif defined(_MSC_VER) && defined(PREDEF_WINDOWS)
    	#define PREDEF_VISUAL
    #elif defined(__GNUC__) && (defined(PREDEF_UNIX) || defined(PREDEF_WINDOWS))
    	#define PREDEF_GNU
    #else
    	#error COMPILER/PLATFORM NOT SUPPORTED!
    #endif
    
    #include <stdio.h>
    
    #define MAX_COUNT 10
    
    #if defined(PREDEF_UNIX)
    	#include <stdlib.h>
    
    	void clrscr(void)
    	{
    		system("clear");
    	}
    
    	int getch(void)
    	{
    		return getchar();
    	}
    #else
    	#include <conio.h>
    
    	#if defined(PREDEF_VISUAL) || defined(PREDEF_GNU)
    		#include <stdlib.h>
    
    		void clrscr(void)
    		{
    			system("cls");
    		}
    	#endif
    #endif
    
    int main(void)
    {
    	int counter = 0;
    	int key = 0;
    	int value = 1;
    
    	clrscr();
    
    	#if defined(PREDEF_UNIX)
    		system("stty -icanon -echo");
    	#endif
    
    	printf("PRESS 'E' TO INCREMENT THE VALUE BY ITSELF %d TIMES....\n", MAX_COUNT);
    	printf("THE INITIAL VALUE IS %d.\n", value);
    
    	while (counter < MAX_COUNT)
    	{
    		key = getch() - 32;
    
    		if (key == 'E')
    		{
    			counter++;
    			value += value;
    			printf("THE CURRENT VALUE IS NOW %d.\n", value);
    		}
    	}
    
    	printf("PRESS ANY KEY TO EXIT....\n");
    	getch();
    
    	#if defined(PREDEF_UNIX)
    		system("stty icanon echo");
    	#endif
    
    	return 0;
    }

  9. #29
    hahaha! See? you're just showing off of what you've got.

    About your code, im not interested on it. Sorry man.

  10. #30
    tag-an pa lagi ko bro, all talk ra pud ka, no substance. asa nman na imong pagka-programmer kunohay run?

  11.    Advertisement

Page 3 of 4 FirstFirst 1234 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