Thread: BAH! expected `;' before 'else'

  1. #16
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Most editors can automatically fix these things for you. I believe that is where Elysia is going with the last question. IDEs do help fix these things, no question about it, but there is no substitute for coherent indentation techniques being used to begin with.

  2. #17
    Registered User
    Join Date
    Oct 2008
    Posts
    9
    My classes use puTTy to connect to a unix server, and we create our code in a program called pico. We never even touched on proper code format, first day we started with couts.

  3. #18
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Crikey... editing C++ in pico eh? I am glad to not be you.

  4. #19
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by master5001 View Post
    Crikey... editing C++ in pico eh? I am glad to not be you.
    <Story to be ignored by anyone with any sense>
    When I was a lad in school, our CS lab was linux machines. My programming 1 class (the morning class) was instructed to use emacs; the afternoon class was told to use vi. (They were given like five commands, [esc], i, r, dd, wq, and maybe a couple other things and that was it, and none of us had ever seen linux before.)

    The moral of the story for the OP: after you putty in, use emacs. Really.

    Edit: I suppose I should mention that emacs doesn't have the nice little command summary at the bottom. I don't remember how easy it is to access the menus from a tty.
    Last edited by tabstop; 10-03-2008 at 01:47 PM.

  5. #20
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I agree. Not that I am a fan of programming using emacs either, but I would take emacs over pico (or vi).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  2. Why wont my function exit correctly?
    By LightsOut06 in forum C Programming
    Replies: 2
    Last Post: 10-09-2005, 09:23 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  5. Windows using Dev-C++
    By Renegade in forum C++ Programming
    Replies: 15
    Last Post: 07-07-2005, 08:29 PM