I have read up on them, but they don't seem so simple. Maybe you could explain them, if you don't think i'll understand...
All you have to do is explain to me this bit shifting and bits in general. Then how i would use it for the concept of RGB.
But no....
User Profile
Collapse
-
I don't understand anything about bits really.
Why can't you just post the solution, with annotations so i understand what it does? Then we'd all be happy....Leave a comment:
-
So basically:
So basically i have to change 31 into a 5 bit number? This is really confusing me....Leave a comment:
-
Thanks, but i know what i have to do. The question was and still is, how do i do it?...Leave a comment:
-
It would help if you could sort of lead me in the right direction....Leave a comment:
-
That doesn't really mean much to me. I haven't done much with bits, bit shift etc.....Leave a comment:
-
C - Convert RGB(31,31,31) to 16 bit colour.
That's the assigment from my teacher, but i think in 'normal' terms that means:
Write a function that takes RGB(r,g,b); r, g and b being values between 0 and 31; it then converts it to 16 bit RGB.
I haven't a clue how to do that, or what it means.
Thanks in advance.... -
Is this possible?
I have a program i made, compiled as an .exe; though each user needs to enter their IP the first time it's opened to have it store their IP.
Then i need it to be possible for them to change it when their IP changes.
How can i do this without changing the code in every project and compiling it separately? -
I have tried a basic tutorial where i can do a window and a menu at the top. Though that is all....Leave a comment:
-
GUI Help?
How would i make a GUI where i have a simple button that does something when clicked? I'm quite new to the language! I use Visual C++ 6 -
-
I know what to do, just not how to do it. Could you make a function for me?...Leave a comment:
-
Possibilizing.
If i had:
strName = "Sam"
Is there a function where it would separate strName into all possibilities using periods, for example:
Sam
S.am
Sa.m
S.a.m
Thanks in advance -
Help Understanding Script?
I want to understand how exactly this script works. Basically, it returns every combination that is possible using '.' - for example:
sam
s.am
sa.m
s.a.m
Can you explain what exactly it is going through on each step? I understand some of it, but not others - like $combinations = 1 << ($strlength - 1);
...Code:sub isBitSet { if ($_[0] & (1 << ($_[1] - 1))) { return 1; } else -
Crypt::SSL - Installing OpenSSL
I have a script that uses the module:
Crypt::SSL
And i looked it up, and it says i need to install OpenSSL. I downloaded OpenSSL but haven't a clue how to install it.
Any help? -
-
I don't particularly want to post the whole script here, think i could PM you it?...Leave a comment:
-
It works fine actually - with no errors to stop it. Though i was wondering if these little errors make it slower? Or do they have no affect at all on the speed?Leave a comment:
-
uninitialized value in concatenation
When perl comes out with errors like this:
Use of uninitialized value in concatenation (.) or string at NQII.pl line 18, <STDIN> line 2.
Argument "" isn't numeric in numeric ne (!=) at NQII.pl line 342, <STDIN> line 2.
Argument "neopets.co m/hi.phtml" isn't numeric in numeric ne (!=) at NQII.pl line 342, <STDIN> line 2.
Argument "POST" isn't numeric in numeric eq (==) at... -
No activity results to display
Show More
Leave a comment: