www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/31/23:43:30

From: "Damian Yerrick" <die DOT spammers AT pineight DOT 8m DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: A few questions about djgpp,rhide and c.
Date: Tue, 31 Aug 1999 00:45:51 -0500
Organization: Rose-Hulman Institute of Technology
Lines: 146
Message-ID: <7qfq8k$g9u$1@solomon.cs.rose-hulman.edu>
References: <37CAEC93 DOT 1F2CB512 AT gtcom DOT net>
NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu
X-Trace: solomon.cs.rose-hulman.edu 936078420 16702 137.112.205.227 (31 Aug 1999 05:47:00 GMT)
X-Complaints-To: news AT cs DOT rose-hulman DOT edu
NNTP-Posting-Date: 31 Aug 1999 05:47:00 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net> wrote in message
news:37CAEC93 DOT 1F2CB512 AT gtcom DOT net...
> I am new to c,not new to programming,but i know about

Cool, a new convert from BASIC! Welcome to
the real world!

> as much about c as a monkey with greasy fingers knows
> about shaving a lions nuts with a straight razor.(sorry :P)
>
> anyhow,i got a couple of questions about djgpp,rhide and c.
> ------------------------------------
> 1.)how can i get rhide to make the .exe files go to a
> specfic directory like:
> c:\djgpp\projects\  ?
>
> example...
>
> i got a .c file called "xxx.c" its location is
>
> c:\djgpp\projects\xxx.c
>
> and i want the exe to be
>
> c:\djgpp\projects\xxx.exe

By default, RHIDE saves your EXE (binary) file in the same
folder as the GPR (project) file. But this can be changed:
Options > main targetname
Specify the path and filename for your EXE here.

> ----------------------------
> 2.i save all my settings to a .gpr file with rhide,but
> i want to make these settings default for when i load
> rhide...how do i do that?

From the c:\djgpp\bin folder, type
rhide rhide
This edits RHIDE.GPR, which stores the default settings.

> -----------------------------
> 3.I am new to c so this stuff is overwhelming me
>   a little,but i did make a hello world program:
>   I read a few cryptic tutorials and picked up
>   some basic ideas and after a buttload of forgetting
>   the "{" thingies and ";" thingies and other stuff
>   i finnaly ended up with this....:
>
> ==============
> #include <stdio.h>
> #include <conio.h>
>
> int x=0;
> int y=0;
>
>   main()
> {
>   void clrscr(void);
>
>   for(x=0;x<10;++x)
>   {
>      for(y=0;y<10;++y)
>      {
>         printf ( "%d",y);
>         printf ( "  " );
>      }
>      printf ( "\n\n" );
>   }
> }
> ==============
>
>
> It's purpose is to clear the screen
> and then  print this to the screen:
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
> 0  1  2  3  4  5  6  7  8  9
>
>
> It works fine,but running it from the dos prompt,
> it doesnt seem to clear the screen...what am i doin
> wrong?

The void clrscr(void) should be just clrscr()

> my next step is to make it wait till a key is pressed

That's getch()

> and then clear the screen and print something else..but
> i will learn that on my own...
>
> just if someone can tell me if i am using
>   void clrscr(void); properly?,cause i dont understand
> the syntax in c quite yet,i think i am doing something
> wrong....
>
> -------------------------------
> 4. where's the darn faq for this ng...?

http://www.delorie.com/djgpp/v2faq/

>
> 5. any pointers for learning c from scratch.

Try C for Dummies.

> I am great fullfor anyones help and hope
> i didnt ask to many questions at once....

Glad to help a newbie.

Damian Yerrick
http://come.to/yerrick

> |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""|
> |      `.`/""""""\,','            my sig is too big,      |
> |SEE HIS (  /   \ \' SEE HIS      but its really cool.    |
> | FACE    \/<> <>\/   SMILE                               |
> |         /   W   \          Visit my ascii art site:     |
> |       ,'\_|||||_/`.  http://www.gtcom.net/~krogg/ascii/ |
> |     ,','   |||   `.`.     krogg DOT no DOT to DOT spam AT gtcom DOT net    |
> |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|

A sig like this doesn't show up properly in the
proportional font used in Micr0$oft's news client.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019