Anonymous
find third part library
Nana
find third part library
What library should I use aprt from the one above?
Ludovic 'Archivist'
Haha, I sent part of my submission for ioccc2022 to my colleague and he instantly activated "Do not disturb"
Anonymous
despaair
Captain
Codeforces, Leet code etc
Anonymous
Rosettacode
shriman_deepak
Nana
Pls I don't get u. Can u come again?
Nana
You said "ask"
shriman_deepak
i mean how can i help u ?
shriman_deepak
do you want the whole solution ?
Nana
This is what I've done so far
shriman_deepak
is'nt it possible to get the result by arranging the order in printf function ?
Nana
is'nt it possible to get the result by arranging the order in printf function ?
No, u have to sort the names and store them in a fourth variable after that you display the results
Arnold
I love C/C++!
Mikael
I love C/C++!
C is the best programming language And the camping will always be the best
Mikael
Okay, good night
Nicholas
I have a question about pthread and synchronisation, may I put the stackoverflow link here? Since I even don’t know where the problem
Nicholas
I have a question about pthread and synchronisation, may I put the stackoverflow link here? Since I even don’t know where the problem
Can someone provide help?🙏🏻 I think just fix a problem and I can process to next step
\Device\NUL
codewars
shriman_deepak
Is there anyone who knows about file handling in c ?
Anonymous
No way that anybody knows to handle files in C in a C/PP with 15113 members
Anonymous
🙃 sarcasm ?
What do u think? lol Pointing out that it's a very pointless question.
Anonymous
For future questions, I'll refer you to:
Anonymous
https://dontasktoask.com
shriman_deepak
Question?
https://pastebin.com/89cFKzUf
Anonymous
I was asking from online people
You weren't asking tho. Just next time ask your question instead of asking to ask
Anonymous
https://pastebin.com/89cFKzUf
What's the problem?
shriman_deepak
shriman_deepak
What's the problem?
I was doing my assignment
Hsn
Lets not discuss a lot. The answer is Yes. There are who knows about file handling in c living on earth.
Anonymous
Don't be offended, sorry it was like tounge slip
Don't project onto me. I'm just saying that u should have some etiquette
Anonymous
I was doing my assignment
What needs to be done and what's the issue with the current code?
shriman_deepak
And there's i need to reverse the content of file
Talula
And there's i need to reverse the content of file
The way you're doing it will simply make two ends of the string same...
Talula
Either pass two declared strings or return pointer to the string... which you declare in the function.
shriman_deepak
In this task we implement the command reverse: the contents of files in command-line arguments, or lines read from the console should be printed to the standard output in reverse order with numbering and the lines mirrored
Talula
In this task we implement the command reverse: the contents of files in command-line arguments, or lines read from the console should be printed to the standard output in reverse order with numbering and the lines mirrored
Yes, that is exactly what would happen, because you're using the same string going from 0 to length and replacing end with first... When your program looks in the middle and go toward the end to replace with front, the front is already what end was so nothing would actually change.
Talula
For example your string was "Hello"... It would replace o with H So... HellH HeleH l in the middle would remain... e will again be replaced by e H will be replaced by H
Talula
Give me 10 minutes let me write an example for you.
shriman_deepak
Wait wait
shriman_deepak
I think i sent u wrong one
Talula
Did u run the code ?
#include <stdio.h> char* reverse(char x[]) { static char rx[10]; for (int i = 0; i<=4; i++) { rx[4-i] = x[i]; } return rx; } int main() { char* a = reverse("Hello"); printf("%s\r\n",a); return 0; } This will reverse it.
shriman_deepak
I know how to reverse string
Talula
I know how to reverse string
Maybe but your program is not reversing it...
shriman_deepak
How to reverse the content of a file ?
Talula
How to reverse the content of a file ?
If you want to change the content, start the file again with "w" and write the reverse string.
shriman_deepak
But it gives an extra line character in output
Rod
Hi y'all.
Rod
I wish to be welcomed please😁😁
Rod
I've been trying to no avail, I need help please.
\Device\NUL
dontasktoask.com
klimi
Sure... instead of those 3 messages, you could have asked your query
Rod
I've been trying to no avail, I need help please.
I need to compile C/C++ files to .DLL for use on Excel.
klimi
https://lmgtfy.app/?q=c%2Fc%2B%2B+with+excel
Rod
I'll appreciate a helping hand here. Tried compiling on Visual Studio, but I seem not to get where I am getting it wrong.
Rod
https://lmgtfy.app/?q=c%2Fc%2B%2B+with+excel
I've actually been googling for hours. All resources have not been able to rescue me.
Rod
I thought this place could help. Take it easy with me please, I am still learning the ropes. I thought I'd find pros here.
klimi
then, state actual facts... "I am getting it wrong". What does that mean?
Rod
I need to compile C/C++ files to .DLL for use on Excel.
This is my point. I am using Visual Studio.
\Device\NUL
wait, > char hex1="8AB" really ?
Tuba
No i fixed it
Tuba
Mistake in writing
\Device\NUL
Meh would use printf("%d", 8AB)