1 March, 2013


Finally library can also made line subtype like rectangle,horizontal,vertical.

User has to specify non-interactivaly what they want to made and name of output dxf file.

My last error was that i was specifying condition with “else” part and that is not a syntax of

of  ” if-else ” control structure.

 

 

Also added module for circle from 2 points.
Supose user input 2 points (x1,y1), (x2,y2)
First we have to find center of circle by following formulas

xMid= ( x1 + x2) / 2;
yMid = ( y1 +y2) / 2;

then radius of circle

radius= sqrt( pow((x2 – xMid), 2 ) + pow((y2 -yMid), 2));

Also made separate cpp files for different entities like circle.cpp, line.cpp and base class base.cpp.
Made makefile for library.

Modified variables name.
Modified UserGuide.

USING VIM AS C++ IDE

As a programmer, WE may do lot of repetitive tasks while coding such as:

Adding file header
Adding functioncomment
Performing syntax check
Reading documentation about a function
Converting a code block to comment, and vice versa

The C-Support Vim Plugin offers easiest way to do all of the above, saving lot of time and keystrokes for C and C++ programmers.

Features:

Statement oriented editing of C / C++ programs
Speed up writing new code considerably.
Write code and comments with a professional appearance from the beginning.
Use code snippets

3 Steps to Install the C.Vim Plugin

Step 1: Download C Vim Plugin

Download the plugin from vim.org website.

$ cd /usr/src
$ wget http://www.vim.org/scripts/download_script.php?src_id=9679

Step 2: Install the C Vim Plugin

$ mkdir ~/.vim
$ cd ~/.vim
$ unzip /usr/src/cvim.zip

Step 3: Enable the plugin in the ~/.vimrc

Add the following line to the ~/.vimrc to enable the plugin for Vim editor.

$ vim ~/.vimrc
filetype plugin on

If you want to learn more, then go to

Tutorial: Make Vim as Your C/C++ IDE Using c.vim Plugin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s