BAH! expected `;' before 'else'

This is a discussion on BAH! expected `;' before 'else' within the C++ Programming forums, part of the General Programming Boards category; Most editors can automatically fix these things for you. I believe that is where Elysia is going with the last ...

  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,185
    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 02: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).

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21