Roshan
Gojo
Hehe many more
fdghisdgi im dead hahhaha
Anonymous
I have a graph, which display any network. The gragh has some number of vertices and edges. Edges can be 2 states, it’s either UP or DOWN. I need to compute the reliability network using Destruction Spectrum method.
packet loss can be calculated using iPerf .It is opensource I think .what do you mean by "Up and Down" ? you need to calculate up time of a network ? or you mean ethernet interface up and down ?
Álex
Does anyone here use vim?
Xudoyberdi
Why
use pastebin.com and paste your code there and copy link of the website link and send it here or text me personally
Álex
I'd like to ask something out
Gojo
what else does c language have?
Roshan
fdghisdgi im dead hahhaha
Hilarious and good!
Anonymous
The reason python are more popular seems to be that it is simple.maybe
Davi
Does anyone know how to show a short description about my function whenever someone hovers mouse over it in visual studio?
Write a Doxygen-like comment before the function. It should also work with variables.
Gojo
it is?
beluga_hz
Which programming language do you prefer? In my country, python seem to be more popular. But I prefer C++.
Python is popular 'cause it's easy. Most people don't use it properly
Anonymous
but, speed is lower than C++
Anonymous
what else does c language have?
Am still reading...buy with time I guess, I'll grasp it
Roshan
/**/ ???
Davi
What is doxygen?
It is a source code annotation tool which supports multiple programming languages. https://www.doxygen.nl/index.html
Xudoyberdi
Why
you may text me personally
Anonymous
you may text me personally
Am going to text you sir
Anonymous
ok
I sent you a message
Anonymous
It says I cannot send you a message
Anonymous
why
Try sending to me
Anonymous
how to get a number which has bounds 1 - 10^14 ? i have tried long long it doesn't work
Igor🇺🇦
how to get a number which has bounds 1 - 10^14 ? i have tried long long it doesn't work
In most 64 compilers is should be sufficient. For example in Visual Studio long long is 9,223,372,036,854,775,807 https://docs.microsoft.com/en-us/cpp/c-language/cpp-integer-limits?view=msvc-160
Anonymous
i m getting the error on an online ide when i try to submit the problem what should i do ?
Igor🇺🇦
i m getting the error on an online ide when i try to submit the problem what should i do ?
Are you sure that's the problem and not something else? Do you need it to be an integral type? You can try float or double
Fatmanur
#include <stdio.h> #include <time.h> #include <math.h> #include <stdlib.h> int main(){ srand(time(NULL)); int adet=10; int dizi[10]; for(int i=0; i<10; i++){ dizi[i] = rand()%100; } printf("\n\nRandom Olusturulan Sayilar\n\n"); for(int i=0; i<10; i++){ printf("%d, ",dizi[i]); } int gecici; for (int i=0; i<(adet-1); i++){ for (int j=0; j<10-i-1; j++){ if (dizi[j]>dizi[j+1]){ gecici = dizi[j]; dizi[j] = dizi[j+1]; dizi[j+1] = gecici; } } } printf("\n\nSayilarin Kucukten Buyuge Siralanmasi\n\n"); for(int i=0; i<adet; i++){ printf("%d, ",dizi[i]); } printf("\n\nSayilarin Buyukten Kucuge Siralanmasi\n\n"); for(int i=0; i>adet; i--){ printf("%d, ",dizi[i]); } return 0; }
Fatmanur
Hello. I ran into a problem. I want the numbers written in ascending order at the end. my code is not working. what is the problem
Anonymous
Are you sure that's the problem and not something else? Do you need it to be an integral type? You can try float or double
it only shows error in one test case where the input is like 825678902213460 345 first one being the number and second one being the number of operations i need to perform when i output the number it show some negative value
Fatmanur
What will this code do
random numbers will rank from big to small
Xudoyberdi
https://pastebin.com/Z70xBXzd
Xudoyberdi
https://pastebin.com/Z70xBXzd
anybody can help with this, working with struct
Xudoyberdi
Use a loop
can you be more specific?
Roshan
Use a loop
Not needed.
Xudoyberdi
Not needed.
can you give a hint?
Roshan
can you give a hint?
Actually I know C++
Blue
Use a loop
Oof. You are not lying. Def use a loop
Roshan
Oof. You are not lying. Def use a loop
I think he didn't go through...
Xudoyberdi
Roshan
oh, sure, nm
BTW, there's a problem between scanf() and fgets().
Roshan
As getline() doesn't work after cin and you have to do cin.ignore()... Maybe a similar problem
Xudoyberdi
i commented them, and ran a code again, but it is asking once, but i want it to ask 12 times
Xudoyberdi
i mean asking details for one student and displaying the outputs
Xudoyberdi
i want it to ask 12 times if that makes sense😁
Roshan
i want it to ask 12 times if that makes sense😁
When you made that obj array what do you think you've done?
Roshan
i want it to ask 12 times if that makes sense😁
12 objects are created but there's no custom constructor which is called 12 times.
Xudoyberdi
Roshan
i thought i want to store for 12 students
You will have to use loops in the way you did it. s[0] This is the first object Similarly you've to ask for all objects (in your case students)
Roshan
hm
Instead use constructor in the struct IDK if it can be done in C...
Xudoyberdi
Instead use constructor in the struct IDK if it can be done in C...
no, but we can use function pointers, there are no classes
Roshan
no, but we can use function pointers, there are no classes
The only difference between struct and class is in access specifiers. So there is a struct constructor.
Xudoyberdi
The only difference between struct and class is in access specifiers. So there is a struct constructor.
okay, thanks, I will try to edit the code, but I really appreciate the effort
Roshan
okay, thanks, I will try to edit the code, but I really appreciate the effort
Can I provide some links that will be useful one from C++ but you'll get the idea
Xudoyberdi
of course
Roshan
Can I provide some links that will be useful one from C++ but you'll get the idea
Not useful I thought it was a video but was a website 😂 Sorry...
Roshan
Really sorry
▄▀▄🅅🄴🄶🄴🅃🄰▀▄▀
Rules
Roshan
of course
Bye better!!
Xudoyberdi
Really sorry
it is fine.
Xudoyberdi
Bye better!!
take care, nighty night,
𝙰𝚖𝚖𝚊𝚛
Good evening everyone
𝙰𝚖𝚖𝚊𝚛
I am beginner at c++ Would you please help me with arrays
olli
I am beginner at c++ Would you please help me with arrays
feel free to ask questions if you have any