Xudoyberdi
Xudoyberdi
Sorry
Anonymous
Hey do you know differential equal?
Anonymous
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
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 😒
ברני
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++?
Manav
Alex
Anonymous
Anonymous
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
Vlad
Anonymous
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
Manav
SHAISTA
it evaluates 1634 is an armstrong but not135, why
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
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
Anonymous
Anonymous
Anonymous
Yes,I have agreed the rules and regulations provides by the authorities!
Alex
Anonymous
Thankyou!
Anonymous
🅆🄰🄶 𝑥 🄴🄻 🅀🅄🄰🄳🅁🄰
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
🅆🄰🄶 𝑥 🄴🄻 🅀🅄🄰🄳🅁🄰
Anonymous
Vlad
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.
Talula
mov $22, %rax
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);
olli
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
Andrew
mov $22, %rax
yes