Anonymous
I guess reinventing the wheel is not a good idea. So maybe extracting the most you can using ready software, frameworks and libraries should increase productivity
Nomid Íkorni-Sciurus
I guess reinventing the wheel is not a good idea. So maybe extracting the most you can using ready software, frameworks and libraries should increase productivity
I think you should really use what the vendor provides you. If you're producing Android apps, you're 99% better writing it in Kotlin. And if you're producing iOS apps, you're 99% better writing it in Swift (also because Obj-C is not a very simple tool to deal with)
Anonymous
Let's now CLOSE this topic which is offtopic one
Anonymous
Obj-C and Swift compile to native ARM/x86 code
I have read about Swift. I think the development is only available for Mac users.
Pavel
Let's continue disscusson in the #ot group (the link below)
Pavel
#ot
Anonymous
I have read about Swift. I think the development is only available for Mac users.
As for any Apple device You cannot compile iOS apps without MacOS
Anonymous
And yes, you can compile pure Swift on Windows
Anonymous
Now I will punish so bad if anyone continue the topic in this chat, not in the offtopic one
Anonymous
Now I will punish so bad if anyone continue the topic in this chat, not in the offtopic one
Is there a group for UML and system analysis and management topics?
Anonymous
@en_it_chats
Negative only technical
Anonymous
@en_it_chats
Thanks anyway
Anonymous
how 32 bit is 2^32 byte why not bit?
Anonymous
???
Anonymous
Can anyone explain?
Pavel
how 32 bit is 2^32 byte why not bit?
32 bit 32/8 = 4 bytes 2^32 possible unique values
Anonymous
32 bit 32/8 = 4 bytes 2^32 possible unique values
But it is 2^32 possible combinations but how it is 2^32bytes?
Pavel
But it is 2^32 possible combinations but how it is 2^32bytes?
what do you mean? can you explain a bit more where you got that information and in what context
Pavel
2^32 bytes it's like 4 gigabytes
Anonymous
what do you mean? can you explain a bit more where you got that information and in what context
https://www.google.com/amp/s/www.geeksforgeeks.org/difference-32-bit-64-bit-operating-systems/amp/
Anonymous
2^32 bytes it's like 4 gigabytes
But how 2^32 byte ????? 32 bit possible combinations are 2^32 it should be bit but here it's given byte
Pavel
ah lol, 32bit vs 64bit adresses
Anonymous
32 bit operating systems can address max 4 GB of RAM
Anonymous
32 bit operating systems can address max 4 GB of RAM
We know brother but how??? It should be 2^32 bit as possible combinations are 0 and 1 only
Anonymous
Why it's byte then?
Pavel
Please make me understand
You have memory, memory is being addressed in bytes Like address 0x0 is the first byte, 0x5 is the sixth byte. So you have addresses that 32 bit in size, you can have maximum address of 0xFFFFFFFF, in total 2^32 addresses, each is referring to a specific byte. In total this can cover only 4Gb of memory
Anonymous
Why it's byte then?
One byte is 8 bits
Anonymous
One byte is 8 bits
Yes bro I know
Anonymous
Anonymous
It is another numerical system
Anonymous
Anonymous
10 is equal to two in the binary numerical system
Suka
But mathematically it's 2^32 bit but how it's byte?
32bit address. each address hold 1byte data. so 32bit can hold 4gbyte cmiiw
Anonymous
It should be 2^32 bit combinations but it's shown byte not bit
Pavel
One more time. An unique address refers to a unique byte. Unique address is a unique bit combination in an address. Each unique combination is not a bit or byte, is a combination. But this combination refers to a byte if it's a memory address
Suka
How??? Any mathematically can you prove?
One important consequence is that a processor with 32-bit memory addresses can directly access at most 4 GiB of byte-addressable memory (though in practice the limit may be lower). https://en.m.wikipedia.org/wiki/32-bit_computing
Pavel
if you want an address of a specific bit, you need to store it somewhere (another 3 bits of information)
Vitalii
Can anybody help? struct students{ char name[50]; } inform[N]; Also I have a function: void swap(long pos1, long pos2) { char ???; ??? = inform[pos1].surname; inform[pos1].surname = inform[pos2].surname; inform[pos2].surname = ???; } My task is to change places of two words (surname). I don't understand what to put instead of "???". I tried to put "*p", I tried to put "mass[50]". But nothing works(
Pavel
but when assigning without asterisk
Vitalii
*p should do
[Error] incompatible types in assignment of 'char*' to 'char [50]'
Pavel
hmmm, OK then mass[50] but also without [50] when assigning 😄
Vitalii
Okay, just a moment😂
Pavel
strange that it didn't work though, I thought in C you can implicitly cast those
Vitalii
here's more problem: [Error] invalid array assignment
Vitalii
maybe I should do something with strcpy?
Vitalii
I'll try)
Pavel
maybe I should do something with strcpy?
yes, that makes sense, now I got it, as you specified the size it's not a pointer but the actual array, and it seems that you can't assign arrays to each other then you probably need to strcpy it
Pavel
For some reason I thought it's a pointer to an array and that you can just swap the pointers
Vitalii
Everything works :)
Al
its an array of char just allocated
Vitalii
strcpy !!!
I got it, thanks ))
Al
👍
Al
well its solved i see sorry to step in the middle 😂🥞😅
Apk
Hey guys, do you know what %1f is used for with scanf in c as in the statement scanf("%1f", &var);
Apk
I checked online and found that for printf we can use such syntax to set precision for floating point numbers but that used a decimal before the number like %.1f How are these two different?
Igor🇺🇦
Thanks but couldn't find an answer here
Where were you looking? 🤷‍♂️ There is even an example : "%7d%s %c%lf" The above format string scans the first seven characters as a decimal integer, then reads the remaining as a string until a space, newline, or tab is found, then consumes whitespace until the first non-whitespace character is found, then consumes that character, and finally scans the remaining characters as a double.
Igor🇺🇦
So %1f means read a single character as float I have weird suspicion that it was %lf for double, not %1f
Anonymous
Vitalii
Sorry, what to do with this thing: For instance, I have next - int a = 5; And I want to print "05". So for it I write printf(%02d, a) If I want to indent the line, I need to write printf(%20d, a) What to do if I need to print both?
Roshan
Is it possible to get data from a website in c++?
Roshan
yes
Well, how to do that?