P
P
Pavel Subochev2017-08-06 10:51:44
Eclipse
Pavel Subochev, 2017-08-06 10:51:44

Why doesn't Eclipse highlight the string data type?

Can you please tell a beginner why Eclipse does not highlight the string or vector data type in my case, as it does, for example, with the int type?
983ce122ed5f40948eacb851b099ad79.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
0
0xD34F, 2017-08-06
@0xD34F

Probably because both vector and string are not built-in data types.

D
Derevyanko Alexander, 2017-08-06
@dio4

this is a container, why shine it? That's what happens when you start eclipse, all sorts of VSStudio and so on, instead of thoughtful and painstaking language learning with a compiler and a simple text editor in hand. Everyone wants to "from rags to riches" at once, but "a stone flower does not come out ..." like in a fairy tale (no offense only - nothing personal).
PS In general, eclipse has big brakes and delays. Keep in mind. Suddenly tomorrow morning it will highlight the string ... and we will all be ashamed here )))

M
Mercury13, 2017-08-07
@Mercury13

Main reason: int is a C++ keyword, but string is not.
The programming system can highlight standard STL containers in a different color. For example, here is a screenshot of Code::Blocks.
See, the char keyword is blue, and the standard STL object std::string is green.
(Yes, experts, I see that on the screen is the result of not very successful refactoring. For a specialized utility of six hundred lines, I think it will work.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question