pedro@microboard:~$ /usr/bin/python3
Python 3.3.2+ (default, Feb 28 2014, 00:52:16)
[GCC 4.8.1] on linux
Type help, copyright, credits or license for more information.
1-0.95
0.050044
How to get 0.05 as result?
bc has scale=2 . Has Python some similar feature?
--
-list@python.org
Sent: Thursday, June 12, 2014 4:02 AM
Subject: Re: Lines on a tkinter.Canvas
Pedro Izecksohn wrote:
The code available from:
http://izecksohn.com/pedro/python/canvas/testing.py
draws 2 horizontal lines on a Canvas. Why the 2 lines differ on thickness
and length
- Original Message -
From: Gregory Ewing
To: python-list@python.org
Sent: Thursday, June 12, 2014 8:38 AM
Subject: Re: Lines on a tkinter.Canvas
Pedro Izecksohn wrote:
The Canvas' method create_line turns on at least 2 pixels. But I want
to turn
on many single pixels
- Original Message -
From: Gregory Ewing
To: python-list@python.org
Cc:
Sent: Thursday, June 12, 2014 8:38 AM
Subject: Re: Lines on a tkinter.Canvas
Pedro Izecksohn wrote:
The Canvas' method create_line turns on at least 2 pixels. But I want
to turn
on many single pixels
The code available from:
http://izecksohn.com/pedro/python/canvas/testing.py
draws 2 horizontal lines on a Canvas. Why the 2 lines differ on thickness and
length?
The Canvas' method create_line turns on at least 2 pixels. But I want to turn
on many single pixels on a Canvas. How should I
Today I wrote the following API. It was not implemented on C yet. Do you have
any comment? Could you help me to implement it?
http://www.izecksohn.com/pedro/python/fingerprint/fingerprint.001.py
--
https://mail.python.org/mailman/listinfo/python-list
Shouldn't pickle.dump (obj, conn) raise an Exception if conn is a TCP
connection that was closed by the remote host?
--
https://mail.python.org/mailman/listinfo/python-list
ChangeLog entry:
2010-08-19 Pedro Izecksohn pedro.izecks...@...
* endian.h [_BSD_SOURCE || ! _POSIX_SOURCE] (htobe16, htobe32)
(htobe64, be16toh, be32toh, be64toh, htole16, htole32, htole64)
(le16toh, le32toh, le64toh): Macros defined.
I modified endian.h again
--- Corinna Vinschen wrote:
For this patch, given that it is just a bunch of rather obvious
defines, I don't think we have to treat the patch as significant.
I do not think that these macros are obvious. I think that I was
there when these macros were first implemented at 1987: I talked with
As this thread went nowhere, I searched for the BSD code:
http://svn.freebsd.org/viewvc/base/stable/8/sys/sys/endian.h?revision=199583view=markup
It uses x to represent the variable as I did; but it also casts the variable.
I think that casting is not desirable because I like to see
--- I wrote:
The x glyph represents the different ways to represent the same number:
...
I thought to use (i) of integer, but its glyph does not remember the
proverb about Rome.
--- Corinna Vinschen asked:
You mean What have the Romans ever done for us?
All roads lead to Rome.
--- Eric Blake ebl...@... wrote:
Umm - did you copy straight from glibc's endian.h? That's a no-no;
cygwin generally doesn't want to borrow LGPL sources to avoid any
licensing questions (borrowing from BSD is okay, on the other hand).
You would have to implement things from scratch from a
Umm - did you copy straight from glibc's endian.h? That's a no-no;
cygwin generally doesn't want to borrow LGPL sources to avoid any
licensing questions (borrowing from BSD is okay, on the other hand).
You would have to implement things from scratch from a documentation
page, or copy from a
I hope this list accepts attachments.
endian.h.diff
Description: Binary data
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:
--- Eric Blake wrote:
Christopher Faylor wrote:
I wrote:
I hope this list accepts attachments.
It does but the list mind-reading gizmo is on the fritz.
Translation - a ChangeLog entry justifying your changes, a diff in
unified or context format (-u or -c) rather than the default ed
--- I wrote:
Defines macros for to convert the endianness of 16, 32 and 64 bits
integer types.
diff -c /usr/include/endian.orig.h /usr/include/endian.h
My previous diff is wrong. The right one follows:
*** /usr/include/endian.orig.h Mon Apr 12 14:09:58 2010
--- /usr/include/endian.h
--- Larry Hall wrote:
Type mount and hit return. Does that answer your question?
Just a little harmless redirection.
$ mount
C:/cygwin-1.7/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin-1.7/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin-1.7 on / type ntfs (binary,auto)
C: on /cygdrive/c
I wrote a small C++ application:
http://www.izecksohn.com/pedro/c++/biggest/
that exhibits an unwanted behavior on Cygwin:
./biggest.exe -m -n -1 -d / Cygwin\ files
head Cygwin\ files
822 /lib/gcc/i686-pc-cygwin/4.3.4/cc1plus.exe
822 /usr/lib/gcc/i686-pc-cygwin/4.3.4/cc1plus.exe
--- NoOp wrote:
Jean-Baptiste Faure wrote:
I do not understand well if the table in the original text document has
been copied from Calc or not.
In fact there is already a bug report for tables copied from Calc to
Writer. Please have a look at issue 108978 :
--- NoOp wrote:
On 03/14/2010 08:58 AM, Cor Nouws wrote:
Cor Nouws wrote (14-03-10 16:48)
NoOp wrote (13-03-10 03:34)
Cor, can you test this with your 3.1x version? I'm sick (bad cold) and
can't seem to locate my old 3.1x downloads at the moment.
The document from 03/08/2010 12:25 PM, Pedro
I wrote:
Today the doctor told me that it is possible that he produced the
table in Excel.
--- NoOp wrote:
Still looks to be a bug. I even tried a copy paste to a new document
with the same results.
As mentioned, OOo 3.1.1 Ubuntu/Novell/go-oo version preserves the table
(albeit with
--- Franz Wein wrote:
I don't believe that this is a table, that was produced with WRITER.
The doctor that produced this table produces the statistics using
Calc, but the original document was imported from Microsoft Word some
years ago. This odt was produced by Writer, as I copied it from the
--- I wrote:
--- Franz Wein wrote:
I don't believe that this is a table, that was produced with WRITER.
The doctor that produced this table produces the statistics using
Calc, but the original document was imported from Microsoft Word some
years ago. This odt was produced by Writer, as I
The file referenced below if saved as .doc (97/2000/XP) does not
generate the table it contains:
http://www.izecksohn.com/pedro/ooobug/TableVI-3.odt
-
To unsubscribe, e-mail: users-unsubscr...@openoffice.org
For additional
[]calc does not understand any Date pasted as DDMMAA even though it is
able to represent =TODAY() using this format.
As so often, Paste Special is your friend. Instead of using ordinary Paste:
o Go to Edit | Paste Special... (or right-click | Paste Special... or
Ctrl+Shift+V).
o In the
scalc does not understand any Date pasted as DDMMAA even though it
is able to represent =TODAY() using this format.
Often I need to paste dates as Text and calculate days by head.
-
To unsubscribe, e-mail:
Robert Pendell shi...@... wrote:
I was unable to reproduce this bug on 1.7. Compiled using GCC 4.3.4
on 1.7.0-62. Gave exit code 130 every time. I used your test case to
do the test.
May be I did not express myself well:
When ctrl c is pressed, it always give exit code 130. The
I, Pedro Izecksohn pedro.izecks...@... wrote:
Robert Pendell shi...@... wrote:
I was unable to reproduce this bug on 1.7. Compiled using GCC 4.3.4
on 1.7.0-62. Gave exit code 130 every time. I used your test case to
do the test.
May be I did not express myself well:
When ctrl c
r...@turion ~/programming/c/sigint
$ cat test.c
#include stdio.h
#include stdlib.h
int main ()
{
printf (Press Control c\n);
char buffer [3];
char *fgets_returned = fgets (buffer, sizeof buffer, stdin);
if (!fgets_returned)
{
if (ferror (stdin))
{
perror (ferror (stdin));
Larry Hall wrote:
I, Pedro Izecksohn, wrote:
The default behavior is not always the same. I also got:
ferror (stdin):
and
ferror (stdin): Interrupted system call
and the expected behavior of just the exit code 130.
Try Cygwin 1.7 http://cygwin.com/#beta-test.
$ cat /proc/version
The bug is in O.P.'s code as s is not being passed to mbrtowc.
I'm on Ubuntu. I do not have Cygwin here.
I should consume some calories before trying to debug anything.
On Tue, Jul 28, 2009 at 6:14 AM, Corinna
Vinschencorinna-cyg...@cygwin.com wrote:
On Jul 27 22:56, Andy Koppe wrote:
To initialize wchar_t wc=(wchar_t)0; may also help.
On Tue, Jul 28, 2009 at 6:56 AM, Andy Koppeandy.ko...@gmail.com wrote:
2009/7/28 Pedro Izecksohn:
The bug is in O.P.'s code as s is not being passed to mbrtowc.
From http://www.opengroup.org/onlinepubs/009695399/functions/mbrtowc.html
From the Linux Programmer’s Manual (release 3.15 of the Linux man-pages):
If the n bytes starting at s do not contain a complete multibyte
character, mbrtowc() returns (size_t) -2.
On Mon, Jul 27, 2009 at 6:56 PM, Andy Koppe wrote:
I've encountered what looks like a bug in mbrtowc's
--- Jacob Jacobson wrote:
Perhaps this went unnoticed. Reposting it. I am still having
problems building cygwin dll. Has anyone seen this error?
Getting close here. Apparently gets to the linking phase. Please help
with error below.
[build$:618] (../src/configure
Just to point out (as probably I'll solve it myself later):
$ tail make_check_outerr
make[1]: Entering directory `/opt/build/i686-pc-cygwin/winsup/cygwin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/build/i686-pc-cygwin/winsup/cygwin'
make[1]: Entering directory
Jacob Jacobson wrote:
Getting close here. Apparently gets to the linking phase. Please help
with error below.
[build$:618] (../src/configure --prefix=/c/home/wrk/cygwin/install -v; make)
make.out
[build$:619] tail make.out
--- Christopher Faylor wrote:
Just remove the mingw directory.
--- I, Pedro, posted:
$ tail make.out
/opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup
-L/opt/build/
i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib
-isys
tem
--- Christopher Faylor wrote:
Just remove the mingw directory.
$ tail make.out
/opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/
i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys
tem /opt/src/winsup/include -isystem
I'm, slowly, implementing it. I plan to post the papers tomorrow,
after my implementation work fine.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:
--- I asked:
Will it be implemented in Cygwin someday?
--- Dave Korn replied:
Otherwise, http://cygwin.com/acronyms#SHTDI and
http://cygwin.com/acronyms#PTC apply here. I imagine it should be possible
to
use a windows job object to implement it.
--- Corinna Vinschen replied:
There
Will it be implemented in Cygwin someday?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Corinna Vinschen read my mind.
What is semtool?
semtool - A utility for tinkering with semaphores
USAGE: semtool (c)reate semcount
(l)ock sem #
(u)nlock sem #
(d)elete
(m)ode mode
It comes in some package available
The persistence of the semaphore also works for you?
For me, using the unpatched version, (not the CVS version), the
persistence works some times only. At other times the semaphore
disappears with the Control c.
The semaphore is backed by a file on disk. If you don't call
sem_unlink
--- I wrote:
For me, using the unpatched version, (not the CVS version), the
persistence works some times only. At other times the semaphore
disappears with the Control c.
It is not reproducible.
I'm sorry from wasting your time.
--
Unsubscribe info:
Does the function sem_open work for anyone using Cygwin 1.7.0 ?
How to use semtool ?
I wrote an example that works on Jaunty on x86-64 but not on Cygwin:
http://www.izecksohn.com/pedro/c/semaphores/semaphores.tar.gz
Also: gcc4 does not understand the option -lrt so it must be removed.
This bug seems fixed here, on Jaunty on amd64.
--
the locate pointer option breaks other keybindings
https://bugs.launchpad.net/bugs/9441
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a direct subscriber.
--
desktop-bugs mailing list
But I'd like to use Ctrl+t to open gnome-terminal and 'Locate pointer'
impedes it.
--
the locate pointer option breaks other keybindings
https://bugs.launchpad.net/bugs/9441
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a direct subscriber.
--
This bug seems fixed here, on Jaunty on amd64.
--
the locate pointer option breaks other keybindings
https://bugs.launchpad.net/bugs/9441
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.
--
ubuntu-bugs mailing list
But I'd like to use Ctrl+t to open gnome-terminal and 'Locate pointer'
impedes it.
--
the locate pointer option breaks other keybindings
https://bugs.launchpad.net/bugs/9441
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.
--
ubuntu-bugs
You did not understand what I wanted to say.
On Jaunty:
To hold both control keys together does not lock Gnome any more, but it
also does not change the keyboard's layout.
If I'd be the main gnome-control-center developer I'd remove this
option, since it does not work.
This bug has 3 stages:
And what I wrote before:
This bug only occurs when the ctrl key is used to show the mouse.
does not apply to Jaunty, as they seem unrelated.
** Summary changed:
- Both Ctrl keys together do not change the keyboard's layout
+ To hold Both Ctrl keys together does not change the keyboard's
You did not understand what I wanted to say.
On Jaunty:
To hold both control keys together does not lock Gnome any more, but it
also does not change the keyboard's layout.
If I'd be the main gnome-control-center developer I'd remove this
option, since it does not work.
This bug has 3 stages:
And what I wrote before:
This bug only occurs when the ctrl key is used to show the mouse.
does not apply to Jaunty, as they seem unrelated.
** Summary changed:
- Both Ctrl keys together do not change the keyboard's layout
+ To hold Both Ctrl keys together does not change the keyboard's
** Summary changed:
- gconf.xml keyboard freeze when both Ctrl keys used
+ Both Ctrl keys together do not change the keyboard's layout
** Description changed:
- I'm talking about ~/.gconf/desktop/gnome/peripherals/mouse/%gconf.xml
+ Package: gnome-control-center
+ Architecture: amd64
+ Version:
** Changed in: gnome-control-center (Ubuntu)
Status: New = Confirmed
--
Global shortcut keys of form Control[any single key] broken by Show position
of [mouse] pointer when the Control key is pressed.
https://bugs.launchpad.net/bugs/275562
You received this bug notification because you
It happens with:
Package: gnome-control-center
Architecture: amd64
Version: 1:2.26.0-0ubuntu3
--
Global shortcut keys of form Control[any single key] broken by Show position
of [mouse] pointer when the Control key is pressed.
https://bugs.launchpad.net/bugs/275562
You received this bug
** Summary changed:
- gconf.xml keyboard freeze when both Ctrl keys used
+ Both Ctrl keys together do not change the keyboard's layout
** Description changed:
- I'm talking about ~/.gconf/desktop/gnome/peripherals/mouse/%gconf.xml
+ Package: gnome-control-center
+ Architecture: amd64
+ Version:
I just upgraded to gnome-control-center version 1:2.26.0-0ubuntu3 for
amd64.
It seems that gnome-keyboard-properties Both Ctrl keys together to
change layout is not working, but the other options (left and or right
control key) are working fine.
Could someone confirm this and post a new bug?
--
** Changed in: gnome-control-center (Ubuntu)
Status: New = Confirmed
--
Global shortcut keys of form Control[any single key] broken by Show position
of [mouse] pointer when the Control key is pressed.
https://bugs.launchpad.net/bugs/275562
You received this bug notification because you
It happens with:
Package: gnome-control-center
Architecture: amd64
Version: 1:2.26.0-0ubuntu3
--
Global shortcut keys of form Control[any single key] broken by Show position
of [mouse] pointer when the Control key is pressed.
https://bugs.launchpad.net/bugs/275562
You received this bug
Source code in:
http://www.izecksohn.com/pedro/c/bo/bo.tar.gz
Should static data be executable?
I found that static data is executable on some platform.
I found that static data is executable on some platform.
I was wrong.
There is no reason for a constant string not be executable.
It were not testing a writable static piece of memory.
I'll try to isolate the bug before filing it.
The document I showed is not a bug, it is a monster.
-
To unsubscribe, e-mail: users-unsubscr...@openoffice.org
For additional commands, e-mail: users-h...@openoffice.org
Mike Dawe wrote:
Also one or some of the embedded .wmf graphics are damaged. See page 82,
Scheme IX-1: Healthy eye without Migraines. In your (unmodified) file
this graphic is not present. In the (Word 95) converted document, there
is a place holder with dimensions of the missing graphic at
Brian Barker b.m.bar...@btinternet.com wrote:
The Microsoft Word Viewer complains about the structure of a table, so the
.doc file is already faulty, it seems, before any attempt to reopen it in
OpenOffice. The problem appears to be in Table VI-3. If I delete this or
even keep the table but
Jean-Baptiste Faure jbf.fa...@... wrote:
You are probably right : cws hb19 which contains the fix for #98465 is
integrated in OOO310m4.
Could some of you provide a link for an executable (.exe or .deb)
newer version where this bug is fixed?
Could you save
http://www.izecksohn.com/pedro/fhs60s12.odt
as .doc (97/2000/XP) with OOO300m15, close it and open it again?
I tried it on Windows and on Linux (Ubuntu, but heavily modified):
When opening the generated .doc with OpenOffice the execution enters
in an infinite loop.
The
On 2/24/09, Simon Thum simon.t...@gmx.de wrote:
Pedro Izecksohn wrote:
Where it may be found?
Nowhere, AFAIK.
You may want to know this: http://bugs.gentoo.org/show_bug.cgi?id=158476
Let see if I understood it right:
I'm trying to configure libX11-1.1.5 , so I can not use libxcb-1.2
Where it may be found?
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
In libX11-6.2.1:
The configure piece below is wrong, (or pkg-config is buggy) because
pkg-config --cflags xproto
prints a line-feed only and keysymdef.h exists in my system and it is in
the right place.
I'm using pkg-config --version 0.23
#
# Find keysymdef.h
#
KEYSYMDEF=
for flag in
Who will fix it up there? Who has git write permission?
How none saw this before me? The original developers did not try configure?
This bugs affects thousands advanced users.
On 2/19/09, Dan Nicholson dbn.li...@gmail.com wrote:
On Thu, Feb 19, 2009 at 12:21 AM, Pedro Izecksohn
It came from http://xlibs.freedesktop.org/release/
BTW: What is the logic behind xlibs version numbers?
On 2/19/09, Dan Nicholson dbn.li...@gmail.com wrote:
On Thu, Feb 19, 2009 at 10:45 AM, Pedro Izecksohn
pedro.izecks...@gmail.com wrote:
Who will fix it up there? Who has git write
This bug only occurs when the ctrl key is used to show the mouse.
--
gconf.xml keyboard freeze when both Ctrl keys used
https://bugs.launchpad.net/bugs/322672
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
Let me add some details and suggest something:
X -configure created xorg.conf.new with:
Driver nouveau
VendorName nVidia Corporation
BoardName GeForce 7150M
The board name is wrong, but it works fine.
Some init script could execute X -configure before trying to start X.
--
--- Jim Cornette fc-corne...@wowway.com wrote:
Issuing xdriver=vesa as a kernel parameter on boot should allow the vesa
driver to be loaded when you boot. Though I am not toying around with the
Live CD, the X server should work the same as traditional installs.
cat /proc/cmdline
startx prints to stderr and exits:
xauth: creating new authority file /root/.serverauth.4241
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-92.1.10.el5 x86_64
Current Operating System: Linux localhost.localdomain
I'm not familiar with running the live CD
So you should not answer.
You may need to run with the vesa driver.
A proper xorg.conf was missing. I needed to create one with: X -configure
Then I used it with:
X -config /root/xorg.conf.new
export DISPLAY=:0.0
gnome-session
and now I'm
--- kocmotex wrote:
... the inability of academia to shift gears. After all, if
some of the other free C compilers were taught, such as Pelles C,
lcc-win32, Dev-C, etc, the academia might have to re-write some of
their arcane quiries, such as triple pre-or-postfix notation, viz.
+++y, c---,
--- Jos Timanta Tarigan asked:
i want those vertices become objects in triangles.
Interesting new concept :)
here is my question: is calling vertices[i].move() will take less time than
calling triangle[i].vertices[k].move() ? well i know it will but is it that
significant?
I never
--- Jos Timanta Tarigan asked:
im currently trying to convert a code from functional to OOP. but the program
is
performance sensitive kind of program. is it that significant to change from
functional to OOP? how it will affect the programs performance(time and
memory)?
is it that much
--- peternilsson42 wrote:
Maybe you need -Wsign-conversion
gcc -Wall -Wsign-conversion problem.c -o problem
cc1: error: unrecognized command line option -Wsign-conversion
Time you updated then...
% gcc --version
gcc.exe (GCC) 4.3.2
Thank you.
--- peternilsson42 wrote:
-Wconversion Warn for implicit conversions that may alter
a value. ...
Integral promotions don't alter the value.
Maybe you need -Wsign-conversion
gcc -Wall -Wsign-conversion problem.c -o problem
cc1: error: unrecognized command line option
--- Thomas Hruska wrote:
Try compiling your code as C++ and see if there
is a difference. C++ compilers tend to generate a lot more warnings as
the language is, generally-speaking, more strict.
[EMAIL PROTECTED] ~/programming/c++/problem
$ ls -la
total 10
drwxr-xr-x+ 2 root None 4096 Nov
--- peternilsson42 wrote:
So you made absolutely _no_ change to the semantics of
that assignment!
I fixed the signal to make others happy.
You seem to be only interested in one class of machine.
why do you think that? Or,
do you think different values should be displayed?
My previous
--- I wrote:
It is mathematically obvious the Intel's approach. I thought it applied
wherever it is possible.
Correction:
I thought the mathematically obvious approach would be applied wherever
possible.
--- peternilsson42 wrote:
Ah, then you've probably been fooled by the cliché that
C is just portable assembler.
If I could do just one modification to the standard, I'd add an overflow
macro, like errno.
--- I wrote:
If I could do just one modification to the standard, I'd add an overflow
macro, like errno.
--- peternilsson42 replied:
The behaviour on integer overflow is undefined. Hence,
implementations already have the freedom to do precisely
that if they so choose. [That they don't is
--- Thomas Hruska wrote:
There would also have been warnings on the next line of code with the
compiler complaining about a signed to unsigned conversion or
something like that. That would have been the more useful clue to the
OP that a weird conversion was happening behind the scenes.
--- Thomas Hruska wrote:
BTW, you should have your compiler warnings turned up
so that you get a warning
for assigning a signed value to an unsigned variable.
--- John Matthews asked:
And anyone know the gcc equivalent?
Gcc's -Wall 'all warnings' option doesn't include it.
--- andrew
--- Jos Timanta Tarigan wrote:
im
planning to make a util.cpp file with some methods, and include the cpp file
in
every classes. but i wonder since i havent seen an included .cpp files(all
included are header files)
You should not include .cpp files in other .cpp files, but you should
--- Mirza Abdullah Jan wrote:
Hi
I have text file in this pattern
Jila Tim 45 45 67 5 67 45 3 5 67 89 19823456
Eva Clarare 42 1 8 43 52 76 1 8 90 43 19345678
-
-
Kim Jomte 4 5 75 24 52 52 35 35 36 35 19745432
I want to get name of each player and total higest score palyer. the
For peternilsson42:
I was not clear and you did not read message 68798.
http://tech.groups.yahoo.com/group/c-prog/message/68798
To clarify:
That code I compiled on two independent compilers. On both compilers:
USHRT_MAX is 0x
UINT_MAX is 0x
ULLONG_MAX is 0x
For
If The integer promotions preserve value including sign.
#include stdio.h
int main (void) {
unsigned short int a;
unsigned long long int b, c;
a = -1;
b = (a*a);
c = ((unsigned int)a*(unsigned int)a);
printf (Why %llx != %llx ?\n, b, c);
return 0;
}
--- Tyler Littlefield wrote:
and you want... what exactly?
I did not express myself well.
Let me reformulate my question:
--- Paul Herring wrote:
Here you're multiplying two shorts.
What is the type of result of a multiplication of two unsigned short
integers?
In other words:
Being:
--- Thomas Hruska wrote:
The compiler is treating the resulting value as an unsigned integer
because that is exactly what you told it to do with typecasting.
OK, I wrote a bad piece of code. Let me try to codify my problem again:
#include limits.h
#include stdio.h
int main (void) {
unsigned
--- Thomas Hruska [EMAIL PROTECTED] wrote:
Under that statement, we should all learn assembler, machine language,
and maybe even leap backwards a few decades and use punch cards. :)
I totally agree. My first language was C64 Basic and my second language was
Assembly.
After I learned
--- Nico Heinze [EMAIL PROTECTED] wrote:
that a beginner will not be able to tell which sites are good and
which are bad. And what about those sites where much information is
good and only some (but pretty important things) are really bad and
wrong? Can a newbie tell the difference? Or even
-- ~Rick [EMAIL PROTECTED] wrote:
I am trying to print the address of a variable, not the contents of it.
Using printf, I would say:
printf(Allocated %ld bytes at %p\n, bsize+1, fbuf);
but I want to use the C++ features using cout/cerr. I've tried the
following but get garbage:
Even better:
-- ~Rick [EMAIL PROTECTED] wrote:
I am trying to print the address of a variable, not the contents of it.
Using printf, I would say:
printf(Allocated %ld bytes at %p\n, bsize+1, fbuf);
but I want to use the C++ features using cout/cerr. I've tried the
following
-- nayeret43 wrote:
Hi, I tried to run this program:
#include iostream.h
main ()
{
int x=25;
float result;
if (x!=0)
{
resul=1000/x;
You forgot the last t of result.
cout result;
}
}
The code above does not follow the standard and
1 - 100 of 182 matches
Mail list logo