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!
- int main(int argc, char* argv[])
- {
- if(argc < 2)
- {
- cout<<"-no input! you can type 'comdel -h' or 'comdel --help' for more information"<<endl;
- return -1;
- }
- if(strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0)
- {
- cout<<"Usage: comdel [options] [file [args]]"<<endl;
- cout<<"Available options are:"<<endl;
- cout<<" -h(--help): read help infomation."<<endl;
- cout<<" -kl: keep line as before."<<endl;
- cout<<"Example: "<<endl;
- cout<<" comdel -kl test0.h test1.c test2.cpp"<<endl;
- return 0;
- }
-
- StringList options;
- for(int i=1; i<argc; i++)
- {
- string str = argv[i];
- if(str == "-kl")
- {
- keep_line = 1;
- }
- else
- {
- options.push_back(str);
- }
- }
- for_each(options.begin(), options.end(), process);
-
- 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.