how to complete code

CodeLite installation/troubleshooting forum
cform01
CodeLite Enthusiast
Posts: 13
Joined: Mon Jun 27, 2016 7:24 am
Genuine User: Yes
IDE Question: c++
Contact:

how to complete code

Post by cform01 »

int main(
when i press "(" then a small window comes out with options:int,int argc,char* argv [],now I don't konow which key should be press to comlete the one of three options.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: how to complete code

Post by eranif »

In this case, this is the "function tip" not the code completion.
This means, that somewhere in the sources, CodeLite found a function named 'main' with the signature (int argc, char* argv[]) and returns INT
This small window is a hint, it tells you that you need to pass integer now (you can see that the "int argc" is highlighted)

CodeLite "thinks" that you are about to call main and not writing your own - so its a mistake in this case

Eran
Make sure you have read the HOW TO POST thread
Post Reply