[nfbcs] 2 questions: most accessible text editor/compiler andformatting C++ code
I. C. Bray
i.c.bray at win.net
Thu Sep 5 17:43:51 UTC 2013
Tara,
You're using VIM in windows? I use pico or nano on my linux boxes... and
there is a cool editor that a buddy uses for Java-- I'll have to gt back to
you on that, but I shall.
As far as code formatting goes,
That is honestly up to you!!
I personally used to start my braces at the end of my for / while / etc
line
EX:
While (conditional) then {
Do [whatever here]
}
OR:
if ( condition1 )
{ subroutine 1
subroutine 1 cont
}
else (condition 2)
{ subroutine 2
subroutine 2
}
It depends on how involved the looping structure is-- and how well you
follow code.
I marked my open/close braces sometimes under the column of whatever command
called for them. That was when I could see... I haven't tried any coding
blind yet.
Hope that helped?
Ian
----- Original Message -----
From: "Tara Annis" <tannis at afb.net>
To: <nfbcs at nfbnet.org>
Sent: Thursday, September 05, 2013 12:00 PM
Subject: [nfbcs] 2 questions: most accessible text editor/compiler
andformatting C++ code
: Hi everyone,
:
: Have you all found a text editor and/or compiler that works well with
JAWS. I'm currently using VIM that works okay, but I thought there might be
something more Windows based like Microsoft Visual (think that's the
name). I've been using notepad and then cut/pasting the code into the
compiler.
: I don't like having to use the HJKL keys to move up/down in VIM since it
seems to mess up JAWS. I'm currently writing C++ code, but will be moving
on to C, JAVA, and PERL.
:
: A second question: when writing C++ code, how do you all format it,
specifically the blocks of code nested in other blocks? For example, when
you are writing a series of if else statements. How many spaces do you
indent this portion of the code? Also, do you indent the opening and
closing braces or just the code between them? I can explain in more depth
if needed.
: Any help will be greatly appreciated.
: Tara
:
:
: _______________________________________________
: nfbcs mailing list
: nfbcs at nfbnet.org
: http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
: To unsubscribe, change your list options or get your account info for
nfbcs:
: http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/i.c.bray%40win.net
More information about the NFBCS
mailing list