Notes
![]() ![]() Notes - notes.io |
10 - 10
012 - 10 (octal, (0*8^2) + (1*8^1) + (2*8^1)
0xA - 10 (Hexa, 1-9, A-F = 10-15, po tym mnozymy przez 16 np.
0x40 = (4*16^1)+(0*16^0)
0x123 = (1*16^2) + (2*16^1) + (3* 16^3)
0b1010 - (binary, potegi 2, 128-64-32-16-8-4-2-1 np.
0b11100 = 28
operatory logiczne
! - zaprzecza, true na false, false na true
&& AND (wszystkie musze byc true)
true && false = false
false && true = false
false && false = false
true && true = true
|| OR (minimum jedno true)
true || false = true
false || true = true
false || false = false
true || true = true
!= - nie rowna sie
== rowna sie
< mniejsze od
> wieksze od
<= mniejsze badz rowne
>= wieksze badz rowne
Operatory ogolne
+ dodaj
- odejmij
* pomnoz
/ podziel
+= dodaj i przypisz
-= odejmij i przypisz
*= pomnoz i przypisz
/= podziel i przypisz
Syntax dla ? :
on zwraca wiec musi byc gdzies przypisany albo np w Sysout. Nie jako samodzielny zapis
Pytanie ? true : false - w true false mozna dac kolejne pytania np
Pytanie ? Pytanie ? true : false : Pytanie ? true : false
operatory bitowe (podobnie jak true false)
& AND (wszystkie musze byc true)
1 & 0 = 0
0 & 1 = 0
0 & 0 = 0
1 & 1 = 1
| OR (minimum jedno true)
1 | 0 = 1
0 | 1 = 1
0 | 0 = 0
1 | 1 = 1
^ XOR (kopiuje jezeli jest w jednej ale nie w 2)
1 ^ 0 = 1
0 ^ 1 = 1
0 ^ 0 = 0
1 ^ 1 = 0
~ negacja
~0b1100 = 0b0011
0b1100 = 12
0b1100 = -13 (bo zmiana znaku w formie dwojkowej)
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team