Xudoyberdi
Sorry
Anonymous
Hey do you know differential equal?
Anonymous
Can someone help me diferentiate,, call by value and call by reference in c programming
Call by value in non destructive while calling by reference is destructive
Anonymous
That is if you should call a function is called by value, operations on its argument variable do not alter the state or value of the variables.
Anonymous
As opposed to reference calling which acts on the memory address of the argument and hence any changes to the values contained in it is retained even after function execution is completed.
Anonymous
No problem
ברני
Hey, a stupid easy question that so easy I feel stupid I can't find it on Google..(I'm learning from the beging C to see where are my struggles) How do I calculate days with days with no arrays (and ai think no if/for/while ether) Like if the user put the day 6 and then the interval of 5, So it spouse to be 4, Wednesday The only thing comes to my mind is to make alot of rows like 6 + 5 = 4 6 + 6 = 5 it's wrong right?
Apk
I think by using modulo
ברני
I think switch is the good answer but I think they don't want me to use any operator
Apk
Like how?
take the sum and then sum%7 will be the answer, if I understood the question correctly
ברני
Ty ,I feel stupid 😒
Apk
Ty ,I feel stupid 😒
That happens....no worries😅
Manav
#define SIZE 5 .... scanf ("%d", &n); #if SIZE>n ... #endif Why it works no matter what I put into "n"? "n" should be only const meaning?
It will just check against the value of n that you set with size. You should know that macros are evaluated before compilation, this is why they are called preprocessor directives. (Note the pre here). Also identifiers which are not macros are treated as zero. Don't substitute #if directive for if else statements.
ברני
That happens....no worries😅
new struggle... I need to calculate now a digital hour with the other to get the hour of arrival.. I think math is my problem.. https://onlinegdb.com/r14kB1HsD
Anonymous
Hi, how can we determine what number is largeer and smaller without using conditional commands in C++?
Anonymous
You mean conditional operators?
I mean, if , if else , switch
Anonymous
I mean, if , if else , switch
Don't use these.
Manav
I mean, if , if else , switch
Those are not commands, they're statements. can use a ternary operator num1 > num2 ? print(greater) : print(smaller) Or use a library function
Manav
What library can be used?
Look at the message just above
SHAISTA
https://ide.codingblocks.com/s/382008
SHAISTA
could anyone check this code where i m wrong
SHAISTA
when i entering 153 its give false othervise all armstrong number is true
SHAISTA
It evaluates 153 as an armstrong number
no not it evaluates 153 as armstrong number
SHAISTA
it evaluates 1634 is an armstrong but not135, why
Manav
no not it evaluates 153 as armstrong number
What are you talking about? 153 is an Armstrong number and your program also says that
Manav
it evaluates 1634 is an armstrong but not135, why
Clear your browser cache and run the program again
SHAISTA
okay
Manav
okay
Also don't use online ide's. If you have a computer install compiler, compile and run it there.
SHAISTA
i do on codeblock same thing i got
Manav
i do on codeblock same thing i got
The code you have pasted works perfectly fine. It is correct
Anonymous
hi
HaiNahi
Anyone want to make a hobby project with me in C?
𝖳𝗁𝖾 𝖠𝗅𝗀𝗈𝗋𝗂𝗍𝗁𝗆 𝖭𝗂𝗇𝗃𝖺 ⚪♛
Anonymous
Pressing the arrow keys will move up and down left and right, and the spacebar will make this printing active and passive. I couldn't do it active and passive. Can you help me?
SHAISTA
once more time please look my code and output https://ide.codingblocks.com/s/382008
Anonymous
std::max
thanks 🙏
Anonymous
Look at the message just above
Thank you for the tips
Anonymous
Yes,I have agreed the rules and regulations provides by the authorities!
Anonymous
Thankyou!
🅆🄰🄶 𝑥 🄴🄻 🅀🅄🄰🄳🅁🄰
When i have a syntax error in c++ how can i fix it before searching on the websites
Alex
pray to God
Anonymous
is it possible to use dev_queue_xmit_nit (instead of dev_queue_xmit) directly for transmission skb?
Anonymous
When i have a syntax error in c++ how can i fix it before searching on the websites
most compilers show the number of line which causes to error.
🅆🄰🄶 𝑥 🄴🄻 🅀🅄🄰🄳🅁🄰
Anonymous
Vlad
When i have a syntax error in c++ how can i fix it before searching on the websites
You can learn basic syntax, dawg. Legend has it that it aint that hard
Govind
I need the pdf of - Let us C 4th edition
Govind
Yes
Govind
But I didn't get the pdf 😔😔
mov $22, %rax
https://paste.ubuntu.com/p/hVzHYbCsyv/ This sorting algorithm does't work. I don't understand if the problem is in the merging function or in the sorting one, can you help me? NOTE: The sorting function needs to work just with arrays whose size is a power of two. The merging function has to work with every possible size of array, and creates an ordered array out of two ordered arrays. I tested the merge function and it worked, so I think that the problem is in the sort function, but I could be wrong.
mov $22, %rax
Btw what I was trying to do was to build a merge-sort function without knowing anything about it, and I went pretty close, I managed to build one that worked (for arrays whose size is a power of 2), but I did some changes in both functions trying to improve them, and that's what I got.
mov $22, %rax
Anyone want to make a hobby project with me in C?
How much experience do you have and... do you have any ideas?
mov $22, %rax
Btw, I've seen that the problem started when I changed if(size > 2) { sort(array, size/2); sort(&array[size/2], size/2); } into if(size > 2) for(int i = 0; i < 1; i++) sort(&array[(size/2)*i], size/2);
Manav
When i have a syntax error in c++ how can i fix it before searching on the websites
Read the syntax error. It will give you a helpful message along with the line number. Unless it's a mess of macro and template metaprogramming shit, that is a good place to start looking for what's wrong.
Xudoyberdi
https://pastebin.com/eQ2vsAtU anyone can help with simple math?
Rasputin
hey guys I have a question
Rasputin
So, I am learning c++ in college and our last homework had to deal with. Reading a "story" from a txt file and saving it into a char array, and then finding out the min length (length of the smallest word), length of the longest word, and the average number of letters. The problem is, we have a german text, and letters like "ß,ä,ö..." have to work too. But they obviously appear different inside the array. Which messes up my average number of letter count. Do you have any idea on how one can change this? I am using visual studio and i tried changing the settings multicode and unibyte, but that obv doesnt work
Rasputin
we have been talking about encoding german "umlauts", but i cannot change the function that reads the txt file and saves it to an array
Laravel Developer
Do you want a website?
Anonymous
@admin
mov $22, %rax
http://paste.debian.net/1175319/ In function getServer() how can I find and cut a piece of a string in C++?
Ибраги́м
/ban now u know the answer
mov $22, %rax
yes