Rose
Another one bites the dust...! Banned Pavan. Reason: advertisement
klimi
I think they want to convert numbers to words
oh i see, then just have array of words that you would print instead of the ascii value
Aniverse
oh i see, then just have array of words that you would print instead of the ascii value
Huh? Let's say input is: 1331 Required Output is : One thousand three hundred thirty one How will you implement array of words in this
klimi
Huh? Let's say input is: 1331 Required Output is : One thousand three hundred thirty one How will you implement array of words in this
I would have array for "one", "two" etc. choose digit based on that. Then have for the 10's likewise. And for the irregular your would need to check at the end
mito
Huh? Let's say input is: 1331 Required Output is : One thousand three hundred thirty one How will you implement array of words in this
If I was asked to come up with a solution as quick as possible, Create a key value store, where the keys are the digits and the values are the words. 0, 1, 2 ,3 to 20 30 to 100 1000 1M 1B etc.. Then based on the 1s, 10s, 100s etc.. digit places in the number, you can combine & construct words from the key value store to form the corresponding numbers as words. But I guess there must be a better solution if one spends some time to think about it.
harmony5 🇺🇳 ⌤
I would use one to store the word for 100, 1000, 1M, 1B, etc. Another for the 10s and another for the 1s that would include the special cases for 11 and 12
Vlad
Just arrays and a lot of modulo math
harmony5 🇺🇳 ⌤
Yes
Spam
No idea what you are talking about.
lol look it up..there are lot of things other than algo's and pattern printing in C
harmony5 🇺🇳 ⌤
lol look it up..there are lot of things other than algo's and pattern printing in C
I think the confusion is "what does vuln assessment has to do with scraping"
Удаленный аккаунт
Всем привет
Rose
That's 2/2 warnings; Jetha is banned! Reasons: 1: English only 2: non-english
Rose
User ~SN has 1/2 warnings; be careful! Reason: ad
Intrusion
Hey if you are skilled network programmer in c, I really need your help
Muhammed
Hey if you are skilled network programmer in c, I really need your help
If you don't want advanced topics, I have basic C information.
Muhammed
How could I help?
Rose
User SAMIR has 1/2 warnings; be careful! Reason: non english
Ludovic 'Archivist'
/warn off topic
Rose
That's 2/2 warnings; P-Tech Computer is banned! Reasons: 1: ad, yt, non-english 2: off topic
Rose
Hey if you are skilled network programmer in c, I really need your help
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Konstantin
I found C++ books in PDF drive website.
Suhrob
Salom hammaga
Roxifλsz 🇱🇹
Salami ham'burga
🍅
Where
Here
Hudu
I can't find it
harmony5 🇺🇳 ⌤
Rose
I can't find it
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Rose
Another one bites the dust...! Banned T.
Rose
Another one bites the dust...! Banned En/ Hamdi. Reason: ban from #ot
Zeal
Please can someone suggest a free website that teaches programming for beginners
klimi
Pls is it free?
if you click it, you will see that yes. You can just click to the corresponding weeks and do them.
Spam
if you click it, you will see that yes. You can just click to the corresponding weeks and do them.
What’s up with the attitude lmao loser geek with sore balls thinking he’s the boss knowing few gay algos😂😂😂
Spam
Pipe down lil bro it’s not that deep
Rose
What’s up with the attitude lmao loser geek with sore balls thinking he’s the boss knowing few gay algos😂😂😂
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
harmony5 🇺🇳 ⌤
Pipe down lil bro it’s not that deep
They asked for a resource to learn from, they were given a resource. The bare minimum would be clicking to see it. It's not that deep.
Havoc
LinkedList<T>::LinkedList(const LinkedList<T>& otherLinkedList) I'm working on a copy constructor, how do I access the elements of this object passed by reference?
Havoc
for context, otherlinkedList is a class which holds "head" a shared_ptr
Havoc
wow
Ziky
But as it is const you must use only cons methods
Havoc
It is just like any other variable
yeah ur right my compiler is just clowning
Havoc
'.' is not recognized as an internal or external command, operable program or batch file.
Ziky
Send your method
Timur
Hi! I have developed the "N19-Chain", a blockchain prototype inspired by the number 19. I used "N19-Crypt" for encryption (permutation by 19, AES) and the "Proof-of-19" consensus. The test showed 331 blocks in 0.42 seconds (786 tx/s) How to improve? CODE
Timur
How to improve this code on C++?
Ludovic 'Archivist'
How to improve this code on C++?
Implementing a 256bit fixed number, and doing the implementation itself in C++ should give you a good 2-5x speedup (which may make your proof of work pretty useless)
Ludovic 'Archivist'
Also, there may be some bit tricks to do the modulo very fast
Ludovic 'Archivist'
I have to admit that I am too lazy to try and find a homomorphism of mod 19
SAMIR
Guys
klimi
Timur
Implementing a 256bit fixed number, and doing the implementation itself in C++ should give you a good 2-5x speedup (which may make your proof of work pretty useless)
Yes, partially: Current speed: 786 blocks/sec (1.27 ms/block) in Python. In my previous forecast for C++ (with OpenSSL): 833 blocks/sec (1.2 ms/block, complex Po 19) or 34.485 blocks/sec (0.029 m s/block, simple Po19). 2–5x of 786 blocks/sec = 1,572–3,930 blocks/sec, which corresponds to the forecast is for C++ with a complicated consensus (833 tx/s) or higher with a simple one (34,485 tx/s). 256-bit number: Using a native 256-bit type (for example, __int 256_t in C++) instead of strings will speed up the operation by %19, but the effect will be less than from OpenSSL (SHA-256 = 106 hashes/sec).
Timur
Ludovic 'Archivist'
It will always be better than either shitty lto or linking
Timur
https://github.com/Inquisitive41/N19VRFChain.git
Benchmark Comparison: N19VRFChain vs. Analogs Bitcoin (Proof-of-Work) Bitcoin, the pioneer of blockchain, uses Proof-of-Work (PoW) with a modest performance of 7 TPS due to its 1 MB block size and 10-minute block time. Its energy consumption is massive, averaging ~100 TWh/year, reflecting the heavy computational load of mining. Ethereum (Proof-of-Stake) Post-Merge Ethereum operates on Proof-of-Stake (PoS), achieving 15–30 TPS on its base layer with a 12-second block time. Energy use dropped significantly to ~0.01 TWh/year, making it far more efficient than its PoW predecessor, though still slower than modern rivals. Solana (Proof-of-History + Proof-of-Stake) Solana combines Proof-of-History (PoH) and PoS, boasting a theoretical peak of 65,000 TPS and a 0.4-second block time. Real-world performance averages 2,000–4,000 TPS, with energy consumption at ~0.005 TWh/year, positioning it as a high-speed, efficient competitor. N19VRFChain (Python Version) Our initial Python implementation, based on your output, delivers 786 TPS with a 1.27 ms block time. Running on a small network (3 nodes), it consumes a negligible ~0.001 TWh/year. This already outpaces Bitcoin and Ethereum in speed and efficiency, though it lags behind Solana. N19VRFChain (Current C++ Version) The current C++ version boosts performance to 10,000 TPS with a 0.1-second block time (due to artificial delay). Energy use remains low at ~0.001 TWh/year for 2 nodes. It surpasses Bitcoin (1,428x faster) and Ethereum (333–666x faster) in TPS, and beats all analogs in block time and energy efficiency, but trails Solana’s peak TPS. N19VRFChain (C++ Without Delay) Removing the artificial delay in C++ yields ~1,000,000 TPS with a ~1 ms block time, maintaining ~0.001 TWh/year energy use. This exceeds Bitcoin by 142,857x, Ethereum by 33,333–66,666x, and Solana by ~15x in TPS, showcasing the raw computational potential before network limits kick in. N19VRFChain (Expected with C++ Improvements) With approximate improvements—full EC-VRF, Gossip protocol, and sharding (100 shards)—we expect 10,000,000+ TPS and a 0.1-second block time, with energy rising to ~0.01 TWh/year for a 10,000-node network. This would outstrip Bitcoin by 1,428,571x, Ethereum by 333,333–666,666x, and Solana by 153x in TPS, while staying far more energy-efficient than Bitcoin and competitive with Solana and Ethereum.
Rose
User Rajiv has 1/2 warnings; be careful! Reason: ad
PKA 👾
Why?
PKA 👾
Stupid bot
PKA 👾
I can’t send anything related to Git
klimi
Why?
it was marked as spam
Never Spam Bot
PKA 👾 is now approved by the group admin and can send messages without any restrictions Is “G i t h u b” banned in this group? See spam? Quote the spam message in the group and reply with /spam
Shadow
Guys from their experience which is the best way to handle memory in C
Byterithm
Guys from their experience which is the best way to handle memory in C
What do you mean?, in C, memory management is manual
Shadow
So can I program small script without the need to manipulate memory?
Ali
hi . I am a blind programmer . can anyone help me about HFSM design pattern in c ?>?? i wanna use it for creat5ing complex projects that have hiracichal finite state machine and it must be optimized for microcontroller stm32f103c8t6