\Device\NUL
Plz let me know my mistake
Probably the newline went to quali
\Device\NUL
Also, fix your conditional and indentation
Asadulloh Mukhammadjonov
I am having problem regarding mathematical exercise so I got to solve following problem in c++. Help me pls
Asadulloh Mukhammadjonov
What's the problem?
Wait a sec, trying to upload the image
Asadulloh Mukhammadjonov
the Media is not allowed in the group, could anyone help me regarding following issues
Arga
Send with text
Chat Boss
Junaid Mumtaz sent a code, it has been re-uploaded as a file
Junaid
Junaid Mumtaz sent a code, it has been re-uploaded as a file
after entering 'P' or 'C' it stuck
Chat Boss
p k sent a code, it has been re-uploaded as a file
p
p k sent a code, it has been re-uploaded as a file
What is the use of clear func here?
\Device\NUL
What is the use of clear func here?
https://cplusplus.com/reference/ios/ios/clear/
Spiderman
tanks
zelika
https://paste.ubuntu.com/p/nKTPmgVT9p/ why it doesn't return 16 digit?
Løstrëgõ
Why did I get a warning? what i did?
Iwan
i have solved it by adding org at the beginning
i dont know why i got suspend/banned by this group and my messages was deleted. So, yesterday i can not answer you. I have a code that you need to know about it.
\Device\NUL
agressive anti-spam
Ravi
https://paste.ubuntu.com/p/nKTPmgVT9p/ why it doesn't return 16 digit?
It is actually returning 32 bits numbers i.e. around 19 digits number. But since leading zeros are not visible. You may use strings if you want to display whole 16 digits.
Your senpai : )
Anyone here from india I'm a college student and i need help in my project
Your senpai : )
Ask you questions directly
Actually my project is already completed i just need someone as a guide so that i can get approved after submission
Mr
Send it to here
Mr
To verify it
Kriss
how to find a target(iteration dependent) element in the array in o(n) time complexity , given that you can only use iostream library
Sylvester Lim
can anyone tell me why the code wont work? https://dpaste.org/oLv9e Line 15 [Error] call of overloaded 'swap(int&, int&)' is ambiguous
Anonymous
can anyone tell me why the code wont work? https://dpaste.org/oLv9e Line 15 [Error] call of overloaded 'swap(int&, int&)' is ambiguous
Because your swap function collides with swap function in the header file <utility> and the compiler is unable to decide which one to use.
Sylvester Lim
Thanks got it
alessandro
I need a help is there a good library to manage file in binary mode?
Muhammadkarim
In the C programming language, let the user enter the number n through scanf. From 2*n+2 by function Create a function that returns the sum of numbers up to n/2
Muhammadkarim
Given a char string whose length does not exceed 30 characters. Substitute another character for the penultimate character in this char series
Iwan
but do you know if there is another way to print text without using interrupts
Code about this? Didnt you ask for it? But forget it i dont wanna get banned again, pm me if you really want to know.
💕Toomi💕
What the differance between fuction prototype and function delension?
mito
Declension*
you mean function declaration/definition ? never heard declension before 🤔
💕Toomi💕
Sorry
Lurich
Hey guy
Lurich
can you help me ? I have an exercise to submit in 2 days but my computer let me down. c++ language
Chat Boss
Lurich sent a huge message, it has been re-uploaded as a file The class you will develop is expected to provide the following features. 1- Objects generated ..
Chat Boss
Lurich sent a huge message, it has been re-uploaded as a file UNLIMITED INTEGER DESIGN The class you will develop is expected to provide the following featur..
zelika
how can i solve "include errors detected. please update your includePath" error in vscode for c?
Dm
how can i solve "include errors detected. please update your includePath" error in vscode for c?
How do you compile your code? You can add additional settings to this tool
zelika
How do you compile your code? You can add additional settings to this tool
i cannot add additional settings. that's why i take error.
Dm
i cannot add additional settings. that's why i take error.
You can compile it in console and include directory with headers with -I flag
Dm
Or you can change settings in .vs folders (local vscode settings for this workfolder) and add additional flags to necessary extension
Olayinka
Who can explain differences between using tab and spaces
itsmanjeet
Hey all, anybody know the unicode handling in c++ I am trying to add unicode support in my lexer And i have written it in old c style (is_identifier(char c) a >= z A>= Z && _ Any way to detect ch = Input[pos] ?? Is unicode and ch == int type so i can fill unicode in it
Pavel
Who can explain differences between using tab and spaces
Spaces show up identically in all the editors, tab width can be configured per editor (so if you have wide screen you can set 8 spaces width, if you're on mobile set to 2). Spaces can be messed up (3 or 5 spaces instead of 4), not all IDE allow to catch these issues or align code automatically to your amount of spaces. At the same time code aligned with spaces is easier to past to generic chats and websites that don't support tabulation.
Anonymous
Hey all, anybody know the unicode handling in c++ I am trying to add unicode support in my lexer And i have written it in old c style (is_identifier(char c) a >= z A>= Z && _ Any way to detect ch = Input[pos] ?? Is unicode and ch == int type so i can fill unicode in it
It is not possible directly. The indexing operations [] iterate over individual characters rather than over code points. So you may end up in the middle of a code point and it makes no sense to read a code unit to see if it is in the middle of a code point or to determine the unicode encoding used. You may have to write your own iterator over a string that iterates over code points rather than code units.
Thadeu
Who can explain differences between using tab and spaces
tab you type less and avoid absurd aligns if you stick with it only. spaces make everyone see exactly you see the code without need of editor config. Used to like tabs, I still prefer it, but most people today prefer spaces so I use to have less discussions about it and problema reviewing code. BTW, so I use 2 spaces as indentation. If they dont like tabs so live with my double space indent
Jose
Who can explain differences between using tab and spaces
There is no difference at code level, only at visualization and reading the code itself. The worst combination is using tabulations and spaces mixed together. If your project contains only spaces, adhere to its convention. On the other hand, if your project contains only tabs to identate code, adhere to its convention. Both cases are covered using formating tools to convert from a type to another
Jose
For example, clang-format can change your code format from one type to another, using a configuration file to do this. Is a powerful tool to ensure your code will adhere to the standards of the project, and the project itself could have this configuration for your easiness.
Vlad
Hey all, anybody know the unicode handling in c++ I am trying to add unicode support in my lexer And i have written it in old c style (is_identifier(char c) a >= z A>= Z && _ Any way to detect ch = Input[pos] ?? Is unicode and ch == int type so i can fill unicode in it
You either would have to convert everything into fixed width (utf-32 or smth), or write custom iterator over utf-8 symbols that could be any size depending on the encoding in the 127-255 range of a first byte
Vlad
But C++ support wchar_t isn't it?
utf-8 symbols are up to 6 bytes in size
Vlad
wchar_t is only 2 bytes
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
utf8 is 4 bytes
Nomid Íkorni-Sciurus
utf16 is 6 bytes and Utf-32 is 8 bytes
Nomid Íkorni-Sciurus
no wait
Anonymous
utf16 is 6 bytes and Utf-32 is 8 bytes
????? UTF-16 is 16 bits i.e. 2 bytes
Dm
utf-8 symbols are up to 6 bytes in size
Hmm. But I think utf-8 should be 1 byte 8 bits (that's why 8) What's wrong
Vlad
utf-16 and utf-32 are fixed symbol size
Nomid Íkorni-Sciurus
then what is "multibyte" for in utf8mb4 ?
Anonymous
utf-16 and utf-32 are fixed symbol size
No. UTF-16 is not fixed symbol size. Only UTF-32 is
Anonymous
then what is "multibyte" for in utf8mb4 ?
It means it is variable length encoding. A unicode character maybe 1 byte long, 2 bytes long, 3 bytes long or 4 bytes long when you use UTF-8