Thread: [Dev-C++] Newbie's first question (comparison with MVC 6.0)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Edith G. <egr...@ya...> - 2003-04-20 15:26:56
|
I am absolutely new to Dev-C++. I have downloaded it and tried to compile the mandatory "hello world" application (it worked). When I use MVC 6.0 and enter a C++ function, for example printf(, at the very moment when I enter the opening parethesis, I get a tooltip with the arguments the function takes. You all probably know this feature. And this is the main reason for me to use the studio at all. I have noticed that C-Dev++ does not support this feature. Do you plan to support it in some future version? TIA, -- E.G. |
|
From: David M. <dem...@uw...> - 2003-04-20 18:07:21
|
It's called code completion, and yes, it's supported. At 05:27 PM 20/04/2003 +0200, Edith Gross wrote: >I am absolutely new to Dev-C++. I have downloaded it and tried to compile >the mandatory "hello world" application (it worked). > >When I use MVC 6.0 and enter a C++ function, for example printf(, at the >very moment when I enter the opening parethesis, I get a tooltip with the >arguments the function takes. You all probably know this feature. >And this is the main reason for me to use the studio at all. > >I have noticed that C-Dev++ does not support this feature. Do you plan to >support it in some future version? > >TIA, > >-- >E.G. > > >------------------------------------------------------- >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 > |
|
From: Edith G. <egr...@ya...> - 2003-04-20 18:55:16
|
> 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,
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
From: <cg...@wo...> - 2003-04-21 09:43:33
|
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,
|
|
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
>
|