Re: your mail

1999-04-01 Thread Vitaly Fedrushkov

Good $daytime,

 To do some programming I use for instance EMACS. When I'm done I
 exit EMACS and run GCC and then run the program to see if it does
 the thing I want it to do. This procedure is time consuming and not
 eficient.

There is no need to exit any editor.  If you're running X windows, you
have both emacs and xterm at the same time.  If not, you may open
one console for editor and another for your shell.

But there's a better way!  Try `M-x compile' -- emacs will read gcc
output in another buffer.  Clicking mouse-2 over error message will
bring you to the line in question -- no need for extra IDE.

 Is there any compiler/editor/debugger-package anvailable from the
 internet? Or am I missing something here? I've noticed that MC has
 an edit feature which shows source code using different colours. I
 find this very helpfull.

There are many IDE-like products.  To see a few, look at freshmeat.net
appindex, section 'Development'.

Well, if you're looking forward to "attend the Church of Emacs" :),
try `M-x font-lock-mode'.  Emacs has nice syntax highlighting -- and
knows C/C++ to some extent.

Hope this helps...

  Regards,
  Willy.

--
"No easy hope or lies| Vitaly "Willy the Pooh" Fedrushkov
 Shall bring us to our goal, | Information Technology Division
 But iron sacrifice  | Chelyabinsk State University
 Of Body, Will and Soul."| mailto:[EMAIL PROTECTED]  +7 3512 156770
   R.Kipling | http://www.csu.ac.ru/~willy  VVF1-RIPE



Re: your mail

1999-04-01 Thread Canul Podkopayeva

I don't use emacs much but I use vim.
One way you can do what you're trying to do is by first
making a Makefile (learn how to make them :-]) then,
has to be in the same directory editing your source
file with vim then you'd just have to hit escape then
colon (:) and type make, after that you can type ":make
run" (if you've made your Makefile well).

--- Wei Weng [EMAIL PROTECTED] wrote:
 You can always use shell command from emacs. (is it
 M-x ! command_name?)
 Say have two window open in one frame under emacs.
 One is for editing and
 another one is for the gcc thingy. 
 I don't know if there is any emacs scripts for
making
 your programming
 more convenience(sp?). I like the way it is. I just
 open more windows. :)
 
 On Wed, 31 Mar 1999, Darius Blaszijk wrote:
 
  Hi all,
  
  Having my latest problems using DOS/WINDOWS, I
 decided to start 
  programming under LINUX. I installed LINUX redhat
 5.2 and bought myself 
  the book L.A.D. I must say that I'm getting on
 quite well (I had to 
  learn also how to program in C). But here is where
 my
  problems start. 
  
  To do some programming I use for instance EMACS.
 When I'm done I exit 
  EMACS and run GCC and then run the program to see
 if it does the thing I 
  want it to do. This procedure is time consuming
and
 not eficient.
  
  Is there any compiler/editor/debugger-package
 anvailable from the 
  internet? Or am I missing something here? I've
 noticed that MC has an 
  edit feature which shows source code using
 different colours. I find 
  this very helpfull.
  
  Thanks a lot, 
  
  Darius Blaszijk
  Get Your Private, Free Email at
 http://www.hotmail.com
  
 

--
 Wei Weng   | idol of the week: Utada Hikaru|
 Part time oracle developer   | CD of the week: first
 love   |
 Full time J-ENT! NERD! (^^;; | o/~You will always be
 my love o/~ |

--
 
 

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Re: your mail

1999-04-01 Thread Bug Hunter


  go out to www.mamma.com and search for "ddd"

  It should be on ftp.lame.org, also.

  ddd uses gdb, and requires X windows. It provides superior source level
debugging.  you may also use xxgdb, or simply gdb to debug programs at the
source level.

  you must compile and link with the -g option to do this.

bug

On Wed, 31 Mar 1999, Darius Blaszijk wrote:

 Hi all,
 
 Having my latest problems using DOS/WINDOWS, I decided to start 
 programming under LINUX. I installed LINUX redhat 5.2 and bought myself 
 the book L.A.D. I must say that I'm getting on quite well (I had to 
 learn also how to program in C). But here is where my
 problems start. 
 
 To do some programming I use for instance EMACS. When I'm done I exit 
 EMACS and run GCC and then run the program to see if it does the thing I 
 want it to do. This procedure is time consuming and not eficient.
 
 Is there any compiler/editor/debugger-package anvailable from the 
 internet? Or am I missing something here? I've noticed that MC has an 
 edit feature which shows source code using different colours. I find 
 this very helpfull.
 
 Thanks a lot, 
 
 Darius Blaszijk
 Get Your Private, Free Email at http://www.hotmail.com
 



Re: your mail

1999-03-31 Thread Wei Weng

You can always use shell command from emacs. (is it M-x ! command_name?)
Say have two window open in one frame under emacs. One is for editing and
another one is for the gcc thingy. 
I don't know if there is any emacs scripts for making your programming
more convenience(sp?). I like the way it is. I just open more windows. :)

On Wed, 31 Mar 1999, Darius Blaszijk wrote:

 Hi all,
 
 Having my latest problems using DOS/WINDOWS, I decided to start 
 programming under LINUX. I installed LINUX redhat 5.2 and bought myself 
 the book L.A.D. I must say that I'm getting on quite well (I had to 
 learn also how to program in C). But here is where my
 problems start. 
 
 To do some programming I use for instance EMACS. When I'm done I exit 
 EMACS and run GCC and then run the program to see if it does the thing I 
 want it to do. This procedure is time consuming and not eficient.
 
 Is there any compiler/editor/debugger-package anvailable from the 
 internet? Or am I missing something here? I've noticed that MC has an 
 edit feature which shows source code using different colours. I find 
 this very helpfull.
 
 Thanks a lot, 
 
 Darius Blaszijk
 Get Your Private, Free Email at http://www.hotmail.com
 

--
Wei Weng | idol of the week: Utada Hikaru|
Part time oracle developer   | CD of the week: first love|
Full time J-ENT! NERD! (^^;; | o/~You will always be my love o/~ |
--



Re: your mail

1999-03-31 Thread Josh Steiner

This question just recently went across the linux-newbie list.   I
personally just tried out Code Crusader, which is quite nice:

http://www.cco.caltech.edu/~jafl/jcc/

below is a response from the newbie list.

---
Joshua W. H. Steiner - [EMAIL PROTECTED] - http://joschi.base.org

"Sit with a pretty girl for an hour, and it seems like a minute. That's 
Relativity. "
   - Einstein


From [EMAIL PROTECTED] Wed Mar 31 20:07:06 1999
Date: Wed, 31 Mar 1999 12:14:04 -0500 (EST)
From: Kervin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Visual X C++

Gtk+ and Glib (kinda like linux equiv. of MFC)
http://www.gtk.org

Glade (Ongoing project for a visual GUI builder for gtk+, new release just out today)
http://glade.pn.org

Gide (IDE for gtk)
http://gide.pn.org

the gide and glade sites seem to be down today.  
But you can get info on these and
other programming tools if you search freshmeat, http://freshmeat.net.





Re: your mail

1999-02-20 Thread James

On Fri, 19 Feb 1999, Nassar Carnegie wrote:

# Thats all good too.., beacuse im learning C as well. I thought to learn
# more from other peoples problems and programming errors by joining a C
# programming mailing list. I see that this list moves kind of "slow"

yeah, but this list is like a pipe, you only get stuff out of it if something
has been put in to start off with. The main linux stuff goes on over at
[EMAIL PROTECTED] (standard majordomo controlled list)

-- 
+++   Beware of programmers who carry screwdrivers   +++
[EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit



Re: your mail

1999-02-19 Thread Glynn Clements


Nassar Carnegie wrote:

 Thats all good too.., beacuse im learning C as well. I thought to learn
 more from other peoples problems and programming errors by joining a C
 programming mailing list. I see that this list moves kind of "slow"

There isn't much traffic compared to e.g. linux-admin.

If you have access to a news server, the comp.lang.c newsgroup is
another source of information.

-- 
Glynn Clements [EMAIL PROTECTED]



Re: your mail

1999-02-18 Thread Glynn Clements


Nassar Carnegie wrote:

 5. You need to get a book on C...
 Kinda harsh reply dont you think?

Maybe, but I do think that if you want to learn C, you *need* to study
the foundations thoroughly. C isn't a simple language to use. It was
intended to be efficient and flexible in the hands of experienced
programmers. Ease of learning wasn't really a consideration.

Reading C programming lists (e.g. this one) and newsgroups (e.g. 
comp.lang.c) tends to indicate that many people overlook certain
fundamental issues in the way that C works. A particular example is
C's handling of pointers, e.g. the ways in which they are similar to
arrays and the ways in which they differ.

Basically, I don't think that C is the kind of language which you can
learn purely from a mixture of examples, asking questions, reading
reference material, and trial-and-error. I do think that you *need* to
read a book which covers the language in detail first.

-- 
Glynn Clements [EMAIL PROTECTED]



Re: your mail

1999-02-18 Thread David Rysdam

Glynn Clements wrote:
 
 Nassar Carnegie wrote:
 
  5. You need to get a book on C...
  Kinda harsh reply dont you think?
 
 Maybe, but I do think that if you want to learn C, you *need* to study
 the foundations thoroughly. C isn't a simple language to use. It was
 intended to be efficient and flexible in the hands of experienced
 programmers. Ease of learning wasn't really a consideration.

This is all true.  But it ignores the fact that original poster clearly
WAS TRYING to learn C.  Did you notice the comment at the top about how
it was an exercise from page 112 in a textbook?

That's why I gave him a hint on his problem but didn't correct the other
flaws.  We can't be doing people's homework for them.



Re: your mail

1999-02-17 Thread Glynn Clements


[PS: your clock is off by a month]

Chris wrote:

 what am i doing wrong here. it compiles and works but after you enter in
 the first value it just stops. /* 

   if ( ( j = read_x1( x1 ) ) == 'E' );
   return EXIT_FAILURE;

[snip]

 float read_x1( float x1 )
 
 {
  
   printf( "\nenter x1: " );
   
   if  ( scanf( "%f" , x1 ) != 1 )
   {
   printf( "\nFailed to read entered value\n" );
   x1 = 'E';   
   return x1;
   } 
   
 return x1;
   
 }

1. This (and the x2/y1/y2 versions) won't work. C uses call-by-value,
not call-by-reference. You would use either

float read_x1( void )
or
void read_x1(float *px1)

instead.

2. there isn't any point having four (nearly) identical functions,
which differ only in the prompt. Use something like:

float read_float(const char *prompt)
{
float x;

printf( "enter %s: ", prompt );
fflush( stdout );

if ( scanf( "%f" , x ) != 1 )
{
fprintf( stderr, "Failed to read entered number\n" );
return NAN; /* IEEE Not-A-Number */
}

return x;
}

3. However, the reason why your program is failing is that you are
unconditionally returning after the call to read_x1(). The indentation
doesn't match the presence of the semicolons; you wrote:

if ( ( j = read_x1( x1 ) ) == 'E' );
return EXIT_FAILURE;

but it would be more accurate to write

if ( ( j = read_x1( x1 ) ) == 'E' )
;
return EXIT_FAILURE;

I.e. you are conditionally executing an empty statement, then
unconditionally returning. Remove the semicolon, i.e.

if ( ( j = read_x1( x1 ) ) == 'E' ) /* no semicolon here */
return EXIT_FAILURE;

4. This has nothing to do with Linux. The above is all vanilla ANSI C,
and would apply equally to MS-DOS or VMS.

5. I think that you need to get a book on C.

-- 
Glynn Clements [EMAIL PROTECTED]



Re: your mail

1998-09-11 Thread Marin D


man opendir / readdir /closedir

For a detailed explanation u may wish to take a look at the gcc info files
( Ctrl -h i  - from emacs, then browse to  libc / accessing directories /
directory entries)


Regards,

Marin



   "Knowledge is not a crime. Some of its applications are..."

 - Unknown hacker


On Fri, 11 Sep 1998 [EMAIL PROTECTED] wrote:

-Hi to all,
-how can load detect the files list of current dir ?
-is there a function that keep information about the current dir 
-structure  ?
-
-regards and tnx to all
-



Re: your mail

1998-07-22 Thread James

On Wed, 22 Jul 1998, Deng Tian wrote:

-Dear All,

is this for real? If not it's Sick. If it is then how can sending chain mails
(even though it claims not to be and then later on says it is...) help?



Re: your mail

1998-06-21 Thread James

On Sat, 20 Jun 1998, mortimor wrote:

-
-
---
-"Why ?"
-"Becouse."
-  Terry Pratchett "Interesting times"

I've read that book (in fact i've read a lot of those books).

-[[EMAIL PROTECTED]]-
Http://x-map.home.ml.org  Mailto : [EMAIL PROTECTED]
---[Quote Of The Day]--
Old programmers never die.  They just branch to a new address.
---