By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,212 Members | 2,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,212 IT Pros & Developers. It's quick & easy.

some new intresting c programs

P: n/a
some new intresting c programs visit
http://cpp4students.blogspot.com/
Aug 3 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Sun, 3 Aug 2008 00:13:16 -0700 (PDT), yassu
<mi***************@gmail.comwrote:
>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
Aug 3 '08 #2

P: n/a

"Barry Schwarz" <sc******@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.
http://www.personal.leeds.ac.uk/~bgy1mm

Aug 3 '08 #3

P: n/a
On Aug 3, 12:13*am, yassu <mischiefprogra...@gmail.comwrote:
some new intresting c programs visithttp://cpp4students.blogspot.com/
common man its 2008 today we dont want to create COM programs.. try
some WIN32 API programs
Aug 3 '08 #4

P: n/a
raashid bhatt <ra**********@gmail.comwrites:
On Aug 3, 12:13*am, yassu <mischiefprogra...@gmail.comwrote:
>some new intresting c programs visithttp://cpp4students.blogspot.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_Keith) ks***@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"
Aug 3 '08 #5

P: n/a
On Sun, 3 Aug 2008 05:38:00 -0700 (PDT), raashid bhatt
<ra**********@gmail.comwrote:
>On Aug 3, 12:13*am, yassu <mischiefprogra...@gmail.comwrote:
>some new intresting c programs visithttp://cpp4students.blogspot.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
Aug 4 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.