First installed Dev-c ++ compiler how to set up?

After installing the Dev-c ++, we usually adjust the settings according to their preferences, the following is a personal approach, welcome reference.

1. fonts

Fonts can be changed in the installation interface. The default font is consolas, individuals interested in the following courier new

Some very strange font, or simply can not be displayed. . .

2. symbol completion

Position: Tools -> Compiler Options -> Code Completion -> symbol to complete

All are open to suggestions, of course, can be adjusted according to personal preference.

3. The default source

Position: Tools -> Compiler Options -> Code -> default source

Check the "Insert code to the original source file in the project," write the following code in the following column:

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define inf 0x7fffffff
signed main()
{

    return 0;
}

Explanation: The first line of universal header files, not like anything else you can write your own

The second line do not speak. . .

The third line means that when you write ll when the system will think you wrote a long long, for example, you could write: ll a = 0;

The fourth line sets the maximum value, 0x7fffffff is the maximum int, sometimes with bad easily explode

There are a maximum of common 0x3f3f3f3f, but I think this is too small, the card was used once. . .

signed main: signed is equivalent to int, both can be generic, signed Why write it? There is a personal habit:

#define int long long

Then will the main compilation error. . .

According to the preferences you can also add freopen

Effect of this step is: Every time you create a new file, which will have this piece of code, saving the trouble to knock the header file.

4. Auto Save

Eliminating the trouble of rewriting off QwQ

Position: Tools -> Compiler Options -> AutoSave

First check the "Start the compiler automatically save", then select the time interval

Personally I like two minutes to save a

The following do not move

5. Warning Code

This is the best I've ever used functions ......

When you write long long a; scanf ( "% d", & a); time will alarm, eliminating a lot of unnecessary trouble

Position: Tools -> Compiler Options -> Code Generation / Optimization -> Code Warning

The warning message up to become a second display yes

6. Manual open big stack system

In the major OJ, the system will open a large stack, and in the local debugging, commonly used cancer data to a variety of cloud downloaded, believe it may explode system stack on the machine, but nothing on the oj.

Catalog: Tools -> Compiler Options -> Compiler

Check the option to add the following command to compile, type:

-Wl,--stack=134217728

What Dev-c ++ practical skills are welcome to contact the author!

Guess you like

Origin www.cnblogs.com/lzy-blog/p/11429287.html