C ++ Language Learning

Source: Internet
Author: User

For users and scholars who first came into contact with the C ++ language, it is very important to understand the concept of the C ++ language. let's first talk about what the C ++ language is, the so-called C ++ language is a widely used computer programming language...

However, writing code in windows to linux is problematic. Therefore, we recommend that you set tool-> Option-> tab size 4 in vc and insert spaces, another problem is the line break problem. For example, in windows, it is 0d and 0a. in linux, ^ M is displayed in vi, causing inconvenience to others.

  • Notes when learning C ++
  • New Performance of C/C ++ Builder
  • Detailed description of C ++ Builder development tools
  • New Development Environment: C ++ Builder
  • Easy to play C ++ Builder

Therefore, if the submitted server is linux and you are developing it in windows, you can set it in svn/cvs to automatically perform the dos2unix conversion, for more information about related documents, see svn/cvs related manuals.

I was lucky enough to switch to Linux for development this time. I was lucky enough to get to know linux, but it came with a particularly headache: what tools are used for coding, compiling, and debugging in Linux ?? I was very confused, and then I was very disappointed when I found that so many netizens recommended VIM.

Then I knocked on VIM for an afternoon. I felt very uncomfortable when my hands were tired. It was like using chopsticks on the left hand. The whole body could not be used, so I plan to look for it again. However, I found a suitable tool. Haha, I am so happy. Today, I will sort out some of the information I have collected over the past few days and give some tips to programmers who will switch to linux in the future!

 
 
  1. int main(int argc, char* argv[])  
  2. {  
  3.     if(argc < 2)  
  4.     {  
  5.         cout<<"-no input! you can type 'comdel -h' or 'comdel --help' for more information"<<endl;  
  6.         return -1;  
  7.     }  
  8.     if(strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0)  
  9.     {  
  10.         cout<<"Usage: comdel [options] [file [args]]"<<endl;  
  11.         cout<<"Available options are:"<<endl;  
  12.         cout<<" -h(--help): read help infomation."<<endl;  
  13.         cout<<" -kl:        keep line as before."<<endl;  
  14.         cout<<"Example: "<<endl;  
  15.         cout<<" comdel -kl test0.h test1.c test2.cpp"<<endl;  
  16.         return 0;  
  17.     }  
  18.       
  19.     StringList options;  
  20.     for(int i=1; i<argc; i++)  
  21.     {  
  22.         string str = argv[i];  
  23.         if(str == "-kl")  
  24.         {  
  25.             keep_line = 1;  
  26.         }  
  27.         else  
  28.         {  
  29.             options.push_back(str);  
  30.         }  
  31.     }  
  32.     for_each(options.begin(), options.end(), process);  
  33.       
  34.     return 0;  

The disadvantage is: it is troublesome to automatically complete the function. You must first set up ctags. It is still very tiring to write code. I wrote it for one afternoon and all my hands are paralyzed. Error Check, automatic matching of parentheses, and full-featured word complementing are not satisfied, and C ++ is not supported well.

For example, I have just written two configurations. h, config. the cpp and C ++ languages do not perform the CTAG and cssag operations, so they cannot complete the words and cannot detect matching parentheses. I don't know if there is a problem with configuration or what is going on.
In addition, debugging is not supported, so I can only give up.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.