Hi C experts,
Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.
Best regards,
Rajnish 14 1974 ra*********@hotmail.com (Rajnish) wrote in
news:df**************************@posting.google.c om: Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
What is your question about the C language? We don't discuss tools here
(officially).
--
- Mark ->
--
"Rajnish" <ra*********@hotmail.com> wrote in message
news:df**************************@posting.google.c om... Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
It seems you're misunderstanding what C is and how it works.
C does have 'objects' (defined simply as 'regions of storage'),
but they cannot be 'automatically' associated with 'methods'
('functions' in C) as they can with Java or C++. C has a construct
'struct' (which is very similar to a C++ class) which one can use
for composition and aggregation , but functions are not allowed as
members (but pointers to functions are).
The closest one can get to simulating e.g. a C++ member function
(I only have a passing acquaintance with Java so I won't go there)
is something like:
#include <stdio.h>
struct T
{
int member;
int (*get_m)();
};
int get_m(const struct T *arg)
{
return arg->member;
}
int main()
{
T obj = {42, get_m};
printf("%d\n", get_m(&obj));
return 0;
}
Note that there's no way to implement 'private' data, i.e.
client code can modify any of 'obj's internals indiscriminately.
If you're looking for a language for writing object oriented code,
then C is not what you're looking for. (It *can* be done in C,
but 'by hand', and you don't get any of the automatic 'safety
nets' that C++ and Java have. It's quite tedious too.).
-Mike
Rajnish wrote: Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
Your question makes no sense. There are no methods associated with C
objects. Structs and unions will have associated data members. I don't
know of any IDEs that help with that.
Brian Rodenborn
On Fri, 2 Jul 2004 16:26:32 GMT, Default User
<fi********@boeing.com.invalid> wrote: Rajnish wrote: Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
There are IDEs/editors which will do the opposite - on typing a
function (method) name, they will list all objects appropriate for the
parameters. Your question makes no sense. There are no methods associated with C objects. Structs and unions will have associated data members. I don't know of any IDEs that help with that.
Do you mean the last sentence to apply to the previous one? There are
IDEs/editors which will automatically present the members of a struct
or union for selection.
--
Al Balmer
Balmer Consulting re************************@att.net
"Rajnish" <ra*********@hotmail.com> wrote Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
C isn't that sort of language. It is designed to be typed into a standard
text editor, though one with syntax colouring is nice. Some IDEs for C++ can
be used for C as well and list members of structures. This is mildly useful,
though if you need to rely on it then probably the structure isn't too
well-named in the first place. They also sometimes list parameters to
functions - again mildly useful.
You will find the most useful tool is the cut and paste facility. This
allows you to move functions from one file to another, and also knock out
boilerplate code.
On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm"
<ma*****@55bank.freeserve.co.uk> wrote: "Rajnish" <ra*********@hotmail.com> wrote Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object. C isn't that sort of language. It is designed to be typed into a standard text editor, though one with syntax colouring is nice. Some IDEs for C++ can be used for C as well and list members of structures. This is mildly useful, though if you need to rely on it then probably the structure isn't too well-named in the first place.
I have to disagree with this - if you have hundreds of structure
definitions, and each one can contain a dozen or more members, it is
*very* useful. My editor, Slickedit, not only shows you the struct
members, but tells you their type and displays any comment near them.
I don't care how well-named your structures and their members are - I
find it very useful. One of the best things is that when you let the
editor autocomplete object names, they are spelled correctly no matter
what your typing skills.
They also sometimes list parameters to functions - again mildly useful.
Again, if you have hundreds of functions, it is very useful to be
reminded of the parameters, their sequence and type, and applicable
comments. Slickedit will even provide a list of objects of the proper
type and scope for each parameter. Again, this reduces errors. You will find the most useful tool is the cut and paste facility. This allows you to move functions from one file to another, and also knock out boilerplate code.
There should rarely be a need to cut and paste functions from one file
to another. If you reuse functions, they should be in their own file,
perhaps even in a library. If you move functions because they're in
the wrong file, better design is needed.
--
Al Balmer
Balmer Consulting re************************@att.net
On Fri, 02 Jul 2004 16:26:32 +0000, Default User wrote: Rajnish wrote: Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
Your question makes no sense. There are no methods associated with C objects. Structs and unions will have associated data members. I don't know of any IDEs that help with that.
Visual Slickedit does that just fine.
On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm"
<ma*****@55bank.freeserve.co.uk> wrote: "Rajnish" <ra*********@hotmail.com> wrote Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object. C isn't that sort of language. It is designed to be typed into a standard text editor, though one with syntax colouring is nice. Some IDEs for C++ can be used for C as well and list members of structures. This is mildly useful, though if you need to rely on it then probably the structure isn't too well-named in the first place. They also sometimes list parameters to functions - again mildly useful.
This is much more than 'mildly useful' in my current C project, which
includes hundreds of source files, thousands of structures, and many
thousands of functions.
You will find the most useful tool is the cut and paste facility. This allows you to move functions from one file to another, and also knock out boilerplate code.
I certainly hope you are being sarcastic. Both 'cutting and pasting'
and 'boilerplate code' are signs of poor programming skills.
--
Sev
"Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message
news:cc**********@newsg2.svr.pol.co.uk... "Rajnish" <ra*********@hotmail.com> wrote Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object. C isn't that sort of language. It is designed to be typed into a standard text editor, though one with syntax colouring is nice. Some IDEs for C++
can be used for C as well and list members of structures. This is mildly
useful, though if you need to rely on it then probably the structure isn't too well-named in the first place. They also sometimes list parameters to functions - again mildly useful.
I you don't mind a Microsoft-centric Universe, there is the new C# (C-sharp)
programming language and environment. It is basically the newest language MS
has gotten behind, since Sun sued to stop MS from extending Java. So they
made their own language that's a combo of C, Java, and VB.
--
Mabden
On Sat, 03 Jul 2004 06:46:48 GMT, "Mabden" <mabden@sbc_global.net>
wrote: "Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message news:cc**********@newsg2.svr.pol.co.uk... "Rajnish" <ra*********@hotmail.com> wrote > Please suggest me best c programming language tool, which is like > Jbuilder (for java) which suggest all avilable methods etc on typing > the object. > C isn't that sort of language. It is designed to be typed into a standard text editor, though one with syntax colouring is nice. Some IDEs for C++
can be used for C as well and list members of structures. This is mildly useful, though if you need to rely on it then probably the structure isn't too well-named in the first place. They also sometimes list parameters to functions - again mildly useful.
I you don't mind a Microsoft-centric Universe, there is the new C# (C-sharp) programming language and environment. It is basically the newest language MS has gotten behind, since Sun sued to stop MS from extending Java. So they made their own language that's a combo of C, Java, and VB.
Ouch. Thank god I run my own company and will never have to use this
POS.
--
Sev
"Alan Balmer" <al******@att.net> a écrit dans le message de
news:ph********************************@4ax.com... On Fri, 2 Jul 2004 16:26:32 GMT, Default User <fi********@boeing.com.invalid> wrote:
Rajnish wrote: Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
Your question makes no sense. There are no methods associated with C objects. Structs and unions will have associated data members. I don't know of any IDEs that help with that. Do you mean the last sentence to apply to the previous one? There are IDEs/editors which will automatically present the members of a struct or union for selection.
The IDE of lcc-win32 is one of those. If the type of an identifier is either
a structure or a union, and it is followed by "->" or ".", the IDE will
open a window with the fields of the structure/union. It is a new feature
so it may have some problems. For instance, only recently it handles
struct foo tab[56];
tab[23].
This will provoke the opening of the window now, i.e. the IDE understands
tables of structures. There may be other situations where this doesn't work
OK.
jacob
lcc-win32: http://www.cs.virginia.edu/~lcc-win32
"Alan Balmer" <al******@att.net> a écrit dans le message de
news:tl********************************@4ax.com... On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm" <ma*****@55bank.freeserve.co.uk> wrote:
"Rajnish" <ra*********@hotmail.com> wrote Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object. C isn't that sort of language. It is designed to be typed into a standard text editor, though one with syntax colouring is nice. Some IDEs for C++
canbe used for C as well and list members of structures. This is mildly
useful,though if you need to rely on it then probably the structure isn't too well-named in the first place.
I have to disagree with this - if you have hundreds of structure definitions, and each one can contain a dozen or more members, it is *very* useful. My editor, Slickedit, not only shows you the struct members, but tells you their type and displays any comment near them.
lcc-win32's IDE does that too. I thought about including comments
but it is tricky, specially if they are long. What does Slickedit do
when you have a long comment besides the member definition?
I thought that would be better to have a "goto definition" feature, that
shows you the source for the definition, and a SHORT members window.
I don't care how well-named your structures and their members are - I find it very useful. One of the best things is that when you let the editor autocomplete object names, they are spelled correctly no matter what your typing skills.
This is implemented with the Escape key: it will complete the current word,
if there is only one way of completing it. If there are more than one, it
will display a list for you to choose from. They also sometimes list parameters to functions - again mildly useful.
Again, if you have hundreds of functions, it is very useful to be reminded of the parameters, their sequence and type, and applicable comments. Slickedit will even provide a list of objects of the proper type and scope for each parameter. Again, this reduces errors.
lcc-win32 will display the prototype automatically. Of course only
if you #include the correct header.
On Sat, 03 Jul 2004 06:46:48 GMT, "Mabden" <mabden@sbc_global.net>
wrote: "Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message news:cc**********@newsg2.svr.pol.co.uk... "Rajnish" <ra*********@hotmail.com> wrote > Please suggest me best c programming language tool, which is like > Jbuilder (for java) which suggest all avilable methods etc on typing > the object. > C isn't that sort of language. It is designed to be typed into a standard text editor, though one with syntax colouring is nice. Some IDEs for C++
can be used for C as well and list members of structures. This is mildly useful, though if you need to rely on it then probably the structure isn't too well-named in the first place. They also sometimes list parameters to functions - again mildly useful.
I you don't mind a Microsoft-centric Universe, there is the new C# (C-sharp) programming language and environment. It is basically the newest language MS has gotten behind, since Sun sued to stop MS from extending Java. So they made their own language that's a combo of C, Java, and VB.
And what does that have to do with finding the "best c programming
language tool"? Did you just have a sudden impulse to insert an
advertisement here?
--
Al Balmer
Balmer Consulting re************************@att.net ra*********@hotmail.com (Rajnish) wrote: Hi C experts,
Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object.
Since you mention JBuilder, you ought to be aware of C++Builder
(by the same company). You can download a trial from www.borland.com
(This is offtopic for comp.lang.c so don't reply to this) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: gaurav khanna |
last post by:
Hi
I need to store the credit card information in my database. I have
been looking for some third party tools which could provide encryption
for credit card numbers.
The help I need is:
a)...
|
by: SQLDBA |
last post by:
I am in the process of evaluating some SQL Performance Monitoring /DBA
tool to purchase (For SQL Server 2000). I have the following list of
software that I came across and have to finalize which...
|
by: Dan V. |
last post by:
What do you recommend to use for saving time and get great results for
making image and css buttons on a site? Also top tabs like for navigation.
Separate question maybe is what is the best tool...
|
by: Matt Kruse |
last post by:
http://www.JavascriptToolbox.com/bestpractices/
I started writing this up as a guide for some people who were looking for
general tips on how to do things the 'right way' with Javascript. Their...
|
by: N S S |
last post by:
Any suggestions on Which is the Best Tool to document
ASP.NET Code.
Also which is the Best Tool To Generate Flowcharts from Source Code.
Quality of the Tool matter & not Price
Thanks
|
by: jojobar |
last post by:
Hello,
I am trying to use vs.net 2005 to migrate a project originally in vs.net
2003. I started with creation of a "web site", and then created folders for
each component of the site.
I read...
|
by: Ron Brennan |
last post by:
Good evening,
Windows 2000, JDK 1.5.
What opinions do people have on what way and tool programmaticly produces
the best quality thumbnails from larger images?
On the web I've seen Java...
|
by: keithb |
last post by:
It has been years since I worked with ASP, having moved on to ASP.NET.
However, I have just inherited a project adding some enhancements to an
existing ASP site. What is the best tool to use for...
|
by: Joe |
last post by:
Is any one charting packing considered to be the "best"? We've used ChartFX
but wasn't too happy about the way data had to be populated along with some
other issues which slip my mind right now and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
| |