473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

c interactive graphical output

I would like to test some things in C and make
a graphical output when running them , something like in java for example
http://www.cs.bell-labs.com/cm/cs/pearls/sortanim.html (without buttons
just circles rectangles and such things)
is there any extension (library) or any way to make similar (aplet-like
but not web-like) output ?? (not ploting into a file but dynamic -> it
changes like in that link when you click RUN)
Nov 14 '05 #1
15 2240
jackiechan <ja********@toughguy.net> spoke thus:
I would like to test some things in C and make
a graphical output when running them , something like in java for example
http://www.cs.bell-labs.com/cm/cs/pearls/sortanim.html (without buttons
just circles rectangles and such things)
is there any extension (library) or any way to make similar (aplet-like
but not web-like) output ?? (not ploting into a file but dynamic -> it
changes like in that link when you click RUN)


Not in C:

http://www.ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #2
i sort of found that u can use the QT library, it sort of a bit complicated
but it does the job

Nov 14 '05 #3
Christopher Benson-Manica <at***@nospam.cyberspace.org> wrote:
# jackiechan <ja********@toughguy.net> spoke thus:
#
# > I would like to test some things in C and make
# > a graphical output when running them , something like in java for example
# > http://www.cs.bell-labs.com/cm/cs/pearls/sortanim.html (without buttons
# > just circles rectangles and such things)
# > is there any extension (library) or any way to make similar (aplet-like
# > but not web-like) output ?? (not ploting into a file but dynamic -> it
# > changes like in that link when you click RUN)
#
# Not in C:

How odd. I could've sworn my X-Windows programs were written in C.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
I hope it feels so good to be right. There's nothing more
exhilirating pointing out the shortcomings of others, is there?
Nov 14 '05 #4
SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.org> scribbled the following:
Christopher Benson-Manica <at***@nospam.cyberspace.org> wrote:
# jackiechan <ja********@toughguy.net> spoke thus:
# > I would like to test some things in C and make
# > a graphical output when running them , something like in java for example
# > http://www.cs.bell-labs.com/cm/cs/pearls/sortanim.html (without buttons
# > just circles rectangles and such things)
# > is there any extension (library) or any way to make similar (aplet-like
# > but not web-like) output ?? (not ploting into a file but dynamic -> it
# > changes like in that link when you click RUN)
#
# Not in C: How odd. I could've sworn my X-Windows programs were written in C.


X-Windows uses non-standard extensions to C.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"How come even in my fantasies everyone is a jerk?"
- Daria Morgendorfer
Nov 14 '05 #5
can u tell me which libraries do u use for your X-Windows programs and how
are you satisfied?

Nov 14 '05 #6
Joona I Palaste wrote:
SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.org> scribbled the following:
Christopher Benson-Manica <at***@nospam.cyberspace.org> wrote:
# jackiechan <ja********@toughguy.net> spoke thus:
# > I would like to test some things in C and make
# > a graphical output when running them , something like in java for example
# > http://www.cs.bell-labs.com/cm/cs/pearls/sortanim.html (without buttons
# > just circles rectangles and such things)
# > is there any extension (library) or any way to make similar (aplet-like
# > but not web-like) output ?? (not ploting into a file but dynamic -> it
# > changes like in that link when you click RUN)
#
# Not in C:

How odd. I could've sworn my X-Windows programs were written in C.


X-Windows uses non-standard extensions to C.


Yes, but Christopher stated, incorrectly in my opinion, that it couldn't
be done is C. It would require non-standard C and is OT here, which is
what the OP should have been told, not that it can't be done.

Nov 14 '05 #7
Joona I Palaste <pa*****@cc.helsinki.fi> wrote:

# > # Not in C:
#
# > How odd. I could've sworn my X-Windows programs were written in C.
#
# X-Windows uses non-standard extensions to C.

So does the programming language cease to be C depending on which
libraries it uses?

--
SM Ryan http://www.rawbw.com/~wyrmwif/
The whole world's against us.
Nov 14 '05 #8
"jackiechan" <ja********@toughguy.net> wrote:
# can u tell me which libraries do u use for your X-Windows programs and

I used the motif libraries on IRIX, but it's been awhile and I don't
remember anything beyond -lX11

how
# are you satisfied?

See .signature.
--
SM Ryan http://www.rawbw.com/~wyrmwif/
I think that's kinda of personal; I don't think I should answer that.
Nov 14 '05 #9
SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.org> scribbled the following:
Joona I Palaste <pa*****@cc.helsinki.fi> wrote:
# > # Not in C:
#
# > How odd. I could've sworn my X-Windows programs were written in C.
#
# X-Windows uses non-standard extensions to C. So does the programming language cease to be C depending on which
libraries it uses?


No. It ceases being ISO standard C, though, and thus ceases being
on-topic here. I never said it can't be done in C, but I said it can't
be done in ISO standard C, and with that I also meant that it's
off-topic for comp.lang.c, because it will then depend on the
specification for those libraries, not for the language itself. The
language specification can't possibly include every library ever
written by anyone.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"C++ looks like line noise."
- Fred L. Baube III
Nov 14 '05 #10
Joona I Palaste wrote:
No. It ceases being ISO standard C, though, and thus ceases being
on-topic here.
Yes.
I never said it can't be done in C,
Right.
but I said it can't be done in ISO standard C,
No you didn't, you may have meant that but it's not what you said.
and with that I also meant that it's
off-topic for comp.lang.c, because it will then depend on the
specification for those libraries, not for the language itself. The
language specification can't possibly include every library ever
written by anyone.


Agreed.

In fairness to you, all this pedantary could be avoided if Christopher
had posted the correct answer and not his standard, clueless, topic
police style one.

Nov 14 '05 #11
Carlos <sp**@spamcop.net> spoke thus:
In fairness to you, all this pedantary could be avoided if Christopher
had posted the correct answer and not his standard, clueless, topic
police style one.


My apologies for omitting the word "standard", but I don't accept that
the response was "clueless".

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #12
Christopher Benson-Manica <at***@nospam.cyberspace.org> scribbled the following:
Carlos <sp**@spamcop.net> spoke thus:
In fairness to you, all this pedantary could be avoided if Christopher
had posted the correct answer and not his standard, clueless, topic
police style one.
My apologies for omitting the word "standard", but I don't accept that
the response was "clueless".


I happen to agree with Christopher. Answering off-topic questions with
"that's off-topic" instead of an off-topic answer serves two purposes:
(1) It helps remind people of the topic, and the distinction between a
language and a set of libraries.
(2) It avoids the risk of accidentally giving wrong answers, which won't
be spotted and corrected as often here as they would be on the correct
OS-specific newsgroup.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"You have moved your mouse, for these changes to take effect you must shut down
and restart your computer. Do you want to restart your computer now?"
- Karri Kalpio
Nov 14 '05 #13
Joona I Palaste wrote:
Christopher Benson-Manica <at***@nospam.cyberspace.org> scribbled the following:
Carlos <sp**@spamcop.net> spoke thus:
In fairness to you, all this pedantary could be avoided if Christopher
had posted the correct answer and not his standard, clueless, topic
police style one.


My apologies for omitting the word "standard", but I don't accept that
the response was "clueless".

I happen to agree with Christopher. Answering off-topic questions with
"that's off-topic" instead of an off-topic answer serves two purposes:
(1) It helps remind people of the topic, and the distinction between a
language and a set of libraries.
(2) It avoids the risk of accidentally giving wrong answers, which won't
be spotted and corrected as often here as they would be on the correct
OS-specific newsgroup.


I'd agree whole heartedly if that's what either of you had initially
said, or even come close to saying.

Nov 14 '05 #14
Joona I Palaste wrote:
SM Ryan scribbled the following:
.... snip ...
So does the programming language cease to be C depending on which
libraries it uses?


No. It ceases being ISO standard C, though, and thus ceases being
on-topic here. I never said it can't be done in C, but I said it
can't be done in ISO standard C, and with that I also meant that
it's off-topic for comp.lang.c, because it will then depend on the
specification for those libraries, not for the language itself. The
language specification can't possibly include every library ever
written by anyone.


It is time to be cautious about considering things OT because they
use non-standard libraries. Any discussions of the actual actions
of those calls remains OT, but when the external function header
and a description of the external action is included, the
remainder becomes on-topic. For example, I would consider:

/* doofus.h */
....
/* returns previous pixel */
int putpixel(int color, int xpos, int ypos);
....

and a question "why doesn't this work" about:

putpixel(scrnheight, scrnwidth, sicklygreen);

not to be off-topic. The critical factor is the inclusion in the
article of a sufficient portion of the header and function
description.

--
"The most amazing achievement of the computer software industry
is its continuing cancellation of the steady and staggering
gains made by the computer hardware industry..." - Petroski
Nov 14 '05 #15
Joona I Palaste <pa*****@cc.helsinki.fi> wrote:
# SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.org> scribbled the following:
# > Joona I Palaste <pa*****@cc.helsinki.fi> wrote:
# > # > # Not in C:
# > #
# > # > How odd. I could've sworn my X-Windows programs were written in C.
# > #
# > # X-Windows uses non-standard extensions to C.
#
# > So does the programming language cease to be C depending on which
# > libraries it uses?
#
# No. It ceases being ISO standard C, though, and thus ceases being
# on-topic here. I never said it can't be done in C, but I said it can't

Still inaccurate. Just because a program refers to a function not in
ANSI C, does not make it off-topic. Too oft the problem in a post has
nothing to do the semantics of a library function, but with the C code
around the call.

int x; Q(x); x = 3;

You don't need to know anything about Q to guess there's problem with
an uninitialised variable.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
I ASSURE YOU WE'RE OPEN!
Nov 14 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: brian.vincent | last post by:
I'm trying to use the ssh2 functions to run a graphical app. I have no problem opening ssh2_shell and running something like "/bin/ls /tmp". However when I try to do something like:...
0
by: cm012b5105 | last post by:
Hello i want to put an interactive text programme in to a graphical box this is a small section of my text programme s = raw_input ("Hello whats your name? ") if s=='melvyn': print "your my...
6
by: Avi Berkovich | last post by:
Hello, I was unable to use popen2.popen4 to grab python.exe's (2.3) output, for starts, it doesn't show the version information at the beginning and won't return anything when writing to the...
20
by: Joe | last post by:
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I...
0
by: Damodar Periwal | last post by:
---------------------------------------------------------------- OneClickRevelation(tm) JDX Provides Instant and Interactive Insight Into Your Data...
0
by: Damodar Periwal | last post by:
---------------------------------------------------------------- OneClickRevelation(tm) JDX Provides Instant and Interactive Insight Into Your Data...
2
by: siggy2 | last post by:
Hi All, (sorry for my bad english) I wrote a __tiny__ and __stupid__ recursive script directly into pythonwin interactive window with a time.sleep(1) and a print before each recursion... I...
9
by: Bryan Olson | last post by:
Here's a module to show stderr output from console-less Python apps, and stay out of the way otherwise. I plan to make a ASPN recipe of it, but I thought I'd run it by this group first. To use...
2
by: nik | last post by:
Hi, I am looking for an interactive graphical script builder for python. Basically, something like the os X automator. I have made a group of methods that some non-programmers need to combine...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.