help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tidy up code


From: Umar
Subject: tidy up code
Date: Fri, 21 Dec 2007 01:04:13 -0800 (PST)
User-agent: G2/1.0

Hi,

I am new to emacs. I want to tidy up my code so that it is more
readable. For example:

int main(void)
{
  int a = 1;
     if (a == 1)
   cout << "true" << endl;
  else
        cout << "false" << endl;
    return 0;
       }

to become

int main(void)
{
  int a = 1;
  if (a == 1)
    cout << "true" << endl;
  else
    cout << "false" << endl;
  return 0;
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]