Ashish Bhushan
Ohk
manas
not an actual source code
Asdew
not an actual source code
'Code' is not something you can count.
Asdew
Just like water, you can't say, "I just had a water." You'd have to say, "I just had a glass of water."
Anonymous
I have many problems in grammar
I_Interface
I think you can help me a lot to do well in my english language exams. . .
U can learn it on this site: https://learnenglish.britishcouncil.org/
Asdew
I think it's amazing that I've learned proper grammar on the Internet by reading and listening. You normally don't see or hear proper grammar there.
William
havent used visual studio in years. does the express version (i think called community now) still put that annoying popup when executing the executable letting the end user know it was built by the free version?
Anonymous
no
Dima
Dima
Ruined
klimi
/setmode agressive
Deres
/setmode
Anonymous
/setmode agressive
hey I wanna know who is marcus
Deres
hey I wanna know who is marcus
Maybe Marcus Brutus. LOL.
Anonymous
@K11M1
Asdew
I'm confused. Do these Dev and Saif know the truth or not?
Anonymous
what?
Dima
@K11M1
/warn Automatic warn: Annoyance as I think detected! TAKE IT! Admin mention not allowed.
Deres
Can you purge my warning too? 😜
Anonymous
oh
Anonymous
I just understood ot means off topic
Anonymous
LOL
Deres
I'm confused. Do these Dev and Saif know the truth or not?
What is it? I just joined the group an hour before.
Deres
I don't understand what's going on.
manas
What is it? I just joined the group an hour before.
You are in a matrix. Everyone's a bot
Deres
Looks like I got trapped into something. LOL.
Asdew
What is it? I just joined the group an hour before.
So you use 'whom' but you don't say what before you joined.
Anonymous
?
Deres
You are in a matrix. Everyone's a bot
Looks like only Saif and I are real person. 😂
Deres
I might be real, too.
Might be? Not for sure? LOL.
I_Interface
/setmode @Neko_cpp medium
Anonymous
hey sergey
I_Interface
Yep?
Anonymous
can i download you?
Anonymous
I mean a copy of you?
Deres
I mean a copy of you?
Come on. Keep quite. Don't get too much of warnings. LOL.
I_Interface
I mean a copy of you?
Of course you cannot. I'm a very special.
Suleyman
I have a problem in my code. I call my function with argument c='1' or c='2' . When i convert it to int as named intc and print it, it prints 1 or 2 as integer. But when I use it in fprintf, it doesn't work. Can you tell me the problem please,thanks.
Suleyman
void append_file(char* file_path, char c){ int intc; FILE *filep3 = fopen(file_path,"a"); if (filep3 == NULL){ printf("Couldn't open file1\n"); return; } intc=(int)c-48; printf("%d",intc); //fprintf(filep3,"%c",c-48); fprintf(filep3,"%d",intc); printf("\n"); }
Asdew
Close the file.
Asdew
fclose
Dima
or fflush()
Dima
but close after
Suleyman
sorry, i didn't write there but I used fclose actually. Now I tried fflush also but it didn't work. When I open my txt file after running the code; it prints to the file 31 and 32. When I use c-78, It also doesn't work
Suleyman
but close after
I must the compile and run this c code in Ubuntu. And it prints something else to the file. Now I tried this code in Windows with DevC++ compiler and it worked. What can be the problem?
Artöm
It changes \n to \r\n
Anonymous
Anonymous
any help?
Anonymous
it should delete adjacent character
Dima
why static
Anonymous
cuz its written here
Anonymous
hey dima can i download you?
Artöm
any help?
It seems you need to delete pairs of duplicates, not one by one
Anonymous
yes.
Anonymous
void append_file(char* file_path, char c){ int intc; FILE *filep3 = fopen(file_path,"a"); if (filep3 == NULL){ printf("Couldn't open file1\n"); return; } intc=(int)c-48; printf("%d",intc); //fprintf(filep3,"%c",c-48); fprintf(filep3,"%d",intc); printf("\n"); }
every signed integer smaller than int will convert to int automatically; you don't need to use type cast to int. it is better to not hard code 48. use '0' instead. what is the purpose of this line? fprintf(filep3,"%c",c-48);
Suleyman
every signed integer smaller than int will convert to int automatically; you don't need to use type cast to int. it is better to not hard code 48. use '0' instead. what is the purpose of this line? fprintf(filep3,"%c",c-48);
For the other question, i want to see the numbers like 1 and 2 in the file. But fprintf with char variable prints to the file numbers like 01 and 02. Because of that I am trying to use integer.
Anonymous
For the other question, i want to see the numbers like 1 and 2 in the file. But fprintf with char variable prints to the file numbers like 01 and 02. Because of that I am trying to use integer.
if you want to remove leading zeros do something like this: int num; scanf("%d", &num); printf("%d", num);
chris
chris
Who can help me? There were ten errors in the pseudocode,and I can’t find all of them.
chris
I can pay you for that.
pdn
what course is that
chris
what course is that
Basic computer
chris
I really need the help, please help me.