Re: [Dev-C++] Newbie's first question (comparison with MVC 6.0)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <dem...@uw...> - 2003-04-21 22:08:48
|
Another way is in the Tools->Editor Option->Class Browser->Code Completion
tab. Press the 'Add file' button by the cache listing and select stdio.h
or string.h from your include folder. This adds only the variables and
functions from that file and any #included files from the orignal to the
code completion list. So if you added string.h and typed strcpy( then
"char *,const char*" pop up.
At 11:35 AM 21/04/2003 +0200, =?ISO-8859-15?Q?Carlos_Garc=EDa_del_Monte?=
wrote:
>You have to go to Tools->Editor Options->Class explorer*->options of the
>search engine*-<check the two boxes there (I don't know the diference
>between the local and the global includes, it seems to be includes of
>the project to which the file belongs and global any other header (here
>the stdio.h etc).
>It works as you want, but if you are writing a win32 app, as windows.h
>includes a ton of other headers it is too slow, because it has to parse
>all those headers.
>
>Edith Gross wrote:
>
>>> It's called code completion, and yes, it's supported.
>>
>>
>> Thx. I have noticed that it is supported with "main(", i.e. when I
>> type the opening parenthesis, the argument list pops up. But it does
>> not work with "printf(" and it does not work with "strcpy(" either
>> (though both stdio.h and string.h are included).
>> Actually, the most important thing would be that it works with my own
>> functions (the ones I know the least) but this does not seem to be the
>> case either).
>>
>> Here is my code:
>>
>> #include <iostream>
>> #include <stdlib.h>
>> #include <string.h>
>> #include <stdio.h>
>>
>> using namespace std;
>>
>> int test(int a,int b)
>> {
>> return a+b;
>> }
>>
>> int main(int argc, char *argv[])
>> {
>> test(3,4);
>> printf("Hallo World\n\n");
>> system("PAUSE");
>> return 0;
>> }
>>
>> When I type "test(", nothing happens.
>>
>> Can you help me?
>> TIA,
>
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|