Message-ID: <37CAEC93.1F2CB512@gtcom.net> From: Krogg X-Mailer: Mozilla 4.61 [en] (Win95; U) X-Accept-Language: en-US,en-GB,en,ja MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: A few questions about djgpp,rhide and c. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 135 Date: Mon, 30 Aug 1999 16:41:55 -0400 NNTP-Posting-Host: 12.16.179.21 X-Trace: eagle.america.net 936045833 12.16.179.21 (Mon, 30 Aug 1999 16:43:53 EDT) NNTP-Posting-Date: Mon, 30 Aug 1999 16:43:53 EDT Organization: 24hoursupport.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am new to c,not new to programming,but i know about 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 and can i make rhide do this with any abitrary(sp?) file. like if i open c:\stuff\tutor.c and i want the exe to be in the same directory that i open the file from like: c:\stuff\tutor.exe can i make rhide do this?how? ---------------------------- 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? i figure there are some command line arguments that will load a .gpr file,such that i could make a shortcut in win95 but i dont know how yet.... ----------------------------- 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 #include 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? my next step is to make it wait till a key is pressed 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...? --------------------------------- 5. any pointers for learning c from scratch. -------------------------------- I am great fullfor anyones help and hope i didnt ask to many questions at once.... -- |"""""<`.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____|