Rose
That's 2/2 warnings; 𝓑𝔂𝓽𝓮 is banned! Reasons: 1: ad 2: ad
Rose
User Nada has 1/2 warnings; be careful! Reason: homework
Saif
:3
Sweetlife
H
Saif
H?
Paul
h
consteval
https://godbo.lt/z/6bKo3j1oG
Suka
So if I install coc-clangd it is not necessary to configure the json?
last time i try. yes i do not configure any json for coc-clangd but make sure you have clangd in your PATH and also compile_commands.json in your project directory
Maxim
/report
Rose
Reported Zumix Jaken [6381130538] to admins.​​​​​​​​​​
Chat Boss
Kanhaiya Paswan sent a code, it has been re-uploaded as a quote class Solution { public: bool isPrime(int num) { if (num <= 1) return false; for (int i = 2; i * i <= num; ++i) { if (num % i == 0) return false; } return true; } int minOperations(int n, int m) { string nStr = to_string(n); string mStr = to_string(m); if (isPrime(n)) return -1; int totalCost = n; for (size_t i = 0; i < nStr.size(); ++i) { int currentDigit = nStr[i] - '0'; int targetDigit = mStr[i] - '0'; while (currentDigit != targetDigit) { if (currentDigit < targetDigit) { ++currentDigit; } else { --currentDigit; } nStr[i] = currentDigit + '0'; int newN = stoi(nStr); if (isPrime(newN)) return -1; totalCost += newN; } } return totalCost; } }; Can anyone correct this code plz
Rose
User Lizzy Pamela has 1/2 warnings; be careful! Reason: ad
Unknown
How to develop any betting app using simple language
Sweetlife
H
100$ website
How to develop any betting app using simple language
Javascript is simple but am not sure group rules allows that topic here
klimi
- use of system is not necessary, you can do it all in C - your own header file seems to do what standard library does like strlen strcat - you use dangerous functions like fgets - the function check seems like strcmp - your connect function might not add the '\0' to denote c-string - in your insert function you could use memcpy for the moving of the array - there is missing documentation, althought the code is mostly self explanatory, but function like linux_text_format is not that much clear to me - you miss error checking on the syscalls (readdir) - making tmp file for path.txt is dangerous, if user already has this, then it will rm their file :/
Miracle
Pls what's studio code pro for??
Miracle
For writing code
Can I use it as c++
✞✟✞✟✞
Can I use it as c++
Yes, any language
Miracle
Yes, any language
But can you assist me cause it's my first time pls
Miracle
Just from the scratch
Rose
User CG_ABHINAV has 1/2 warnings; be careful! Reason: nohello.com + ad
Tanu
Hey
Saeed
Hi I posted a question in stack overflow and no one is helping 💔😶 Can I send the link here?
Saeed
About socket
Tanu
Hlw everyone
harmony5 🇺🇳 ⌤
Hey
What's a pointer and how do you use it in c?
Knight-Endall
Hello everyone.
Ludovic 'Archivist'
What's a pointer and how do you use it in c?
A pointer is an integer that represent an arbitrary position in memory. When computers were simpler devices, a pointer would represent that position between 0 and the very end of memory values allowed. Nowadays, memory is fragmented into a memory space, some sort of messier representation that constrains possible legal pointer values. Pointers are still very arbitrary, but they represent an index in the giant array that memory is. They also represent the type of that memory for the compiler. This allows *pointer arithmetic*: doing operations on those arbitrary integers in a special way. For example, imagining int* p; has a value of 2000, that means we are talking about a thing of type int situated at the index 2000 in the entire memory space. Doing p+4 means not going to 2000+4, but going 4 ints after 2000, so 2000+sizeof(int)*4. Operations like array dereference work the same: p[4] is the same as *(p+4) which is the same as *(int*)(2000+sizeof(int)*4)
Rose
Welcome Reena! Please read the pinned message 🙂 Click the button below to unmute yourself.
Reena
I am not scam
Reena
Thanks
ANONYMOUS
What scanf do ?
aaswq1
exo
What scanf do ?
the scanf function in C is indeed used to read input from the standard input (like the keyboard) and store it in variables
Rose
Another one bites the dust...! Banned Kavita Kumari. Reason: lewd, offtopic just no
consteval
My question was actually a test to see if the user I replied to was a bot. But thanks for the answer, TIL sth new.
here's another pretty cool article on pointers (C++, but much applies to C too) https://gist.github.com/Eisenwave/ac4ba3e83c0a76df32d6b2396e16d278
The
For what purpose Structure and Union are used?
Never Spam Bot
Try w3school.com
This looks like a spam. Sorry, I can't delete/restrict that user/message. The message is older than 24 hours ago.
Suka
For what purpose Structure and Union are used?
Summary Use structures when you need to group related data of different types and access all of them simultaneously. Use unions when you need to save memory and only one of the data types will be used at a time. gpt4 mini duckduckgo
S
koie vs code kie setting kar sakta hai
𝔸𝕄𝔸ℝ𝔼ℕ𝔻𝔸ℝ
koie vs code kie setting kar sakta hai
Kya Krna h? Mingw install?
𝔸𝕄𝔸ℝ𝔼ℕ𝔻𝔸ℝ
ha
YouTube se kr lo
S
YouTube se kr lo
appna college code with harry dono video dekh kar kiye phir bho
S
problem ho raha hai
𝔸𝕄𝔸ℝ𝔼ℕ𝔻𝔸ℝ
𝔸𝕄𝔸ℝ𝔼ℕ𝔻𝔸ℝ
S
Setting me autosave kro
gcc hie kaam nhi kar raha hai
𝔸𝕄𝔸ℝ𝔼ℕ𝔻𝔸ℝ
gcc hie kaam nhi kar raha hai
https://youtu.be/DMWD7wfhgNY
Hrishikesh
klimi
Read the rules
Hrishikesh
windows
Ohh. Sorry but i havent use c on windows
𝗘𝗡𝗚.𝗔𝗕𝗗𝗘𝗟𝗠𝗘𝗡𝗔𝗘𝗠
Can Anyone Help me with a code
Rose
Can Anyone Help me with a code
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.
𝗘𝗡𝗚.𝗔𝗕𝗗𝗘𝗟𝗠𝗘𝗡𝗔𝗘𝗠
#meta
The problem That I can’t Send A Ss For The Code
𝗘𝗡𝗚.𝗔𝗕𝗗𝗘𝗟𝗠𝗘𝗡𝗔𝗘𝗠
it Gives me and error And This makes me Crazy
klimi
The problem That I can’t Send A Ss For The Code
why you can't send the code? I don't understand
𝗘𝗡𝗚.𝗔𝗕𝗗𝗘𝗟𝗠𝗘𝗡𝗔𝗘𝗠
why you can't send the code? I don't understand
I can but the Ss will be better But Ok I can send it and sorry
𝗘𝗡𝗚.𝗔𝗕𝗗𝗘𝗟𝗠𝗘𝗡𝗔𝗘𝗠
what's Ss?
Screen shot I Mean Sir
klimi
oh i see, if you really want to send a screenshot, send it first to my DM
𝗘𝗡𝗚.𝗔𝗕𝗗𝗘𝗟𝗠𝗘𝗡𝗔𝗘𝗠
Abcd
Hi .. anybody wanna work on SAS product... with me..
honored
I am trying to build a terminal like program for myself in c language and the most error that I am encountering is that multiple string assignments like I have designed it such that the user will input three strings like "create react app" in this on evry space as we know scanf will differentiate the strings but what if the user ionputs only one string is there any way to hande that
honored
like how to take empty strings or womething like that
honored
can someone pls help me with the above program
exo
ban Isabella ban @estherkemi2 ban KHALI
Roxifλsz 🇱🇹
Psych
This is for beginners. What will be the output of the following code? #include <iostream> #define HelloWorld printf #define print "Hello World" int main() { HelloWorld(print);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; return 0; }