some new intresting c programs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yassu

    some new intresting c programs

    some new intresting c programs visit

  • Barry Schwarz

    #2
    Re: some new intresting c programs

    On Sun, 3 Aug 2008 00:13:16 -0700 (PDT), yassu
    <mischiefprogra mer@gmail.comwr ote:
    >some new intresting c programs visit
    >http://cpp4students.blogspot.com/
    Don't waste your time unless you really want to deal with a ton of
    readability and non-standard issues.

    Typical problems include:

    proprietary headers
    #include<dos.h>
    #include<dir.h>
    #include<conio. h>

    barely readable declarations:
    struct frame
    {
    struct line *ln; /* all lines */
    char fileName[64];
    int cX, cY, /* current curser X and Y */
    sX1, sX2, sY1, sY2, /* selection parameters */
    sL, sC, /* starting line and column on the screen */
    SHP, SVP, /* scrolling horizontal and vertical pointer */
    noOfLines, maxOfCols, /* max no.of lines and columns */
    saved;
    } frm[MAXFILES];

    equally hard to read code:
    void InitMouse()
    {
    union REGS r;
    r.x.ax=0x0, int86(0x33, &r, &r);
    }

    non-standard types and functions:
    union REGS
    int86(0x33, &r, &r)
    gotoxy(...)
    textcolor(...)
    kbhit(...)

    and my favorite pet peeve - barely an indent in sight:
    void InitNewFile()
    {
    fI=NoOfFrame++;
    CX= CY= SX1= SY1= SX2= SY2= SL= SC=0;
    frm[fI].saved= MOC= NOL=1;
    frm[fI].ln=(struct line *)malloc(sizeof (struct line));
    if(!frm[fI].ln)
    LackOfMemory();
    LINEDATA=(char *)malloc(sizeof (char));
    if(!LINEDATA)
    LackOfMemory();
    LINEDATA[0]='\0';
    LINELEN=1;
    }

    To top it all off, everything appears to be stored as a Microsoft Word
    ..doc file.

    --
    Remove del for email

    Comment

    • Malcolm McLean

      #3
      Re: some new intresting c programs


      "Barry Schwarz" <schwarzb@dqel. comwrote in message
      >
      Typical problems include:
      >
      proprietary headers
      #include<dos.h>
      #include<dir.h>
      #include<conio. h>
      >
      non-standard types and functions:
      union REGS
      int86(0x33, &r, &r)
      gotoxy(...)
      textcolor(...)
      kbhit(...)
      >
      Er, no.
      It is quite reasonable to want coloured text if you are fortunate enough to
      have a machine with a colour graphics card installed.
      It is not a problem with the program as such if it uses platform-specific
      facilities.

      --
      Free games and programming goodies.


      Comment

      • raashid bhatt

        #4
        Re: some new intresting c programs

        On Aug 3, 12:13 am, yassu <mischiefprogra ...@gmail.comwr ote:
        some new intresting c programs visithttp://cpp4students.bl ogspot.com/
        common man its 2008 today we dont want to create COM programs.. try
        some WIN32 API programs

        Comment

        • Keith Thompson

          #5
          Re: some new intresting c programs

          raashid bhatt <raashidbhatt@g mail.comwrites:
          On Aug 3, 12:13 am, yassu <mischiefprogra ...@gmail.comwr ote:
          >some new intresting c programs visithttp://cpp4students.bl ogspot.com/
          >
          common man its 2008 today we dont want to create COM programs.. try
          some WIN32 API programs
          But not here, please. There are newsgroups where they actually want
          to disucss Win32 API programs; this isn't one of them.

          --
          Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
          Nokia
          "We must do something. This is something. Therefore, we must do this."
          -- Antony Jay and Jonathan Lynn, "Yes Minister"

          Comment

          • Barry Schwarz

            #6
            Re: some new intresting c programs

            On Sun, 3 Aug 2008 05:38:00 -0700 (PDT), raashid bhatt
            <raashidbhatt@g mail.comwrote:
            >On Aug 3, 12:13 am, yassu <mischiefprogra ...@gmail.comwr ote:
            >some new intresting c programs visithttp://cpp4students.bl ogspot.com/
            >
            >common man its 2008 today we dont want to create COM programs.. try
            >some WIN32 API programs
            Surely you don't believe that every web site that ends in .com deals
            exclusively with COM programs. You are posting from gmail.com and
            obviously don't.

            --
            Remove del for email

            Comment

            Working...