representation Questions
1
Solved
Why are some Python strings are printed with quotes and some are printed without quotes? [duplicate]
I have a problem with string representations. I am trying to print my object and I sometimes get single quotes in the output. Please help me to understand why it happens and how can I print o...
Ilarrold asked 18/6, 2013 at 14:44
2
Solved
I have a C++ project. I work on the project to teach myself about building a semi-realistic program in C++. It downloads content recursively from a website.
Each download has a URL for the content...
Declared asked 7/6, 2013 at 12:45
7
Solved
We can look at the representation of an object of type T by converting a T* that points at that object into a char*. At least in practice:
int x = 511;
unsigned char* cp = (unsigned char*)&x;
...
Brawn asked 21/12, 2012 at 19:4
3
Solved
I need to perform UIImageJPEGRepresentation method and after that save it NOT to file, I need to save it to UIImage. Help please..
Colan asked 21/7, 2011 at 12:45
1
Solved
I am looking at solution for the set bit count problem (given a binary number, how to efficiently count how many bits are set).
Here, http://graphics.stanford.edu/~seander/bithacks.html#CountBits...
Prato asked 2/10, 2012 at 5:3
2
Solved
As we all no doubt know, the ISO C standard (and C++ as well, I think, though I'm more interested on the C side) allows three underlying representations of signed numbers:
two's complement;
ones'...
Grays asked 5/9, 2012 at 7:58
4
Solved
I want to represent a floating-point number as a string rounded to some number of significant digits, and never using the exponential format. Essentially, I want to display any floating-point...
Casia asked 18/4, 2010 at 19:29
3
Solved
In Common Lisp, how can I override the default string representation of a CLOS class so that calls to format or princ will print something intelligible, even when objects of that class are embedded...
Judo asked 11/9, 2011 at 23:52
8
Solved
Integers can be used to store individual numbers, but not mathematical expressions. For example, lets say I have the expression:
6x^2 + 5x + 3
How would I store the polynomial? I could create ...
Alyosha asked 22/5, 2012 at 0:43
3
Solved
Is there a Matlab function that returns the binary representation of a float number?
Fariss asked 20/12, 2011 at 4:11
5
This is a question about generating an image, or any other representations, for a set of parallel data. Is is not about drawing or GUI programming but calculating positions.
First I'll explain a b...
Mitra asked 9/12, 2011 at 0:47
1
Solved
db.define_table('person', Field('name'), format='%(name)s')
What does this format do here?
Impaction asked 5/1, 2012 at 15:19
1
Solved
I like how you can retain representation in transparent structs:
(struct posn (x y)
#:transparent)
> (posn 1 2)
(posn 1 2)
But is there a way to customize it? Like in Python?
Housewifery asked 12/8, 2011 at 14:1
1
Solved
I'm reading a file that contains Romanian words in Python with file.readline().
I've got problem with many characters because of encoding.
Example :
>>> a = "aberație" #type 'str'
>&g...
Fictitious asked 30/6, 2011 at 21:21
4
Solved
Possible Duplicate:
Can I use a binary literal in C or C++?
I am learning C and i recently found out that we can represent integers in different ways, like that:
(Assuming i has "hum...
Bondy asked 20/6, 2011 at 15:50
4
Solved
I know that methods __repr__ and __str__ exist to give a formal and informal representation of class instances. But does an equivalent exist for class objects too, so that when the class object is ...
Catricecatrina asked 23/2, 2011 at 1:34
1
Solved
I've been reading How I Explained REST to My Wife. Great article but I don't get the ending :D.
Wife: So this is what you and all the computer people are working on now? Deciding what the data sho...
Rudman asked 5/1, 2011 at 8:53
4
Solved
The question is easy! How do you represent a 64 bit int in C#?
Congener asked 2/10, 2010 at 10:2
5
Solved
i need to load the third column of this text file as a hex string
http://www.netmite.com/android/mydroid/1.6/external/skia/emoji/gmojiraw.txt
>>> open('gmojiraw.txt').read().split('\n')[...
Quarry asked 19/8, 2010 at 6:3
8
Solved
Possible Duplicate:
Is there a printf converter to print in binary format?
Still learning C and I was wondering:
Given a number, is it possible to do something like the following?
...
Outride asked 31/3, 2009 at 4:18
3
Solved
As I know C enum is unsigned integer, but this may vary by implementation.
What type should I use for the enum in binary representation?
*PS
'binary representation' means byte-array. I want to se...
Licko asked 18/8, 2010 at 6:28
5
I know that a boolean value is 1 byte (8 bits long)
But I would like to know is what is its binary representation.
e.g.
decimal => binary
4 => 100 (0000 0100)
8 => 1000 (0000 1000)
bool value => ?...
Barrington asked 26/7, 2010 at 14:36
3
Solved
My current project requires extensive use of bit fields. I found a simple, functional recipe for bit a field class but it was lacking a few features I needed, so I decided to extend it. I've just g...
Scarification asked 11/5, 2010 at 17:6
2
Solved
I'm looking for a script to generate the graphical-ish textual representations of directory structures that you see around. Something that I can run like this:
james@computer:/.../basedir$ listdir...
Wills asked 28/12, 2009 at 17:50
4
Solved
Let's say I have a RESTful, hypertext-driven service that models an ice cream store. To help manage my store better, I want to be able to display a daily report listing quantity and dollar value of...
Drolet asked 20/8, 2009 at 21:53
© 2022 - 2024 — McMap. All rights reserved.