Anonymous
Yes, for the moment. However i will eventually change it to get rid of the seperate thread. I could post the code tho. However i think i can resolve it myself with tedious debugging. I assume it might be as tedious for you as well and i dont expect you to do my work for me 😅
.
Nvm, I meant that was trustworthy reply.
Anonymous
haha thank you.
Marián
guys
Marián
just need some quick help, need to solve this, i know that there is algorithm for this but i can't remember it's name
Marián
you have a graph and want to check if all nodes are connected, simplest way to do so?
Arthur
you have a graph and want to check if all nodes are connected, simplest way to do so?
run deep-first search from any node. if after that, all the nodes are visited, then it is connected
Marián
dynamic deep first search?
Marián
aiming for speed, i can keep visited values and boom
Arthur
not sure what you mean by dynamic, just don't visit a node that is already visited
Marián
yup
Marián
yup done, thanks a ton
Marián
y
Anonymous
I am from india sunder pichai Neighbor i make some software x2x5naxme
Anonymous
What its write
Sunil
Thanks
Anonymous
...
Anonymous
Guys, help redo this code so that it calculates the sum of the positive elements of the arrays X (N), Y (M), Z (K). But for calculating the amount you need to create a function
Anonymous
#include <stdio.h>; int multiplication (int num1, int num2); // function prototype int main () { int num1; int num2; printf ("Enter two numbers:"); scanf ("% d", & num1); scanf ("% d", & num2); printf ("Substrate% d \ n", multiplication (num1, num2)); // getchar (); return 0; } int multiplication (int num1, int num2) // value function { return num1 * num2; }
AJ
How can i learn c++ in easy way. I find it very difficulties learning C++
Francisco
How can i learn c++ in easy way. I find it very difficulties learning C++
Just practise. You can read some books or watch videos to get started, but if you don't practise, you won't learn much.
Excel
/adminlist
Hussam
How to get the last element that is equal to or less than an integer b in a vector? I have tried lower_bound, but it will return the first element
Anonymous
If someone wants to learn c programming goto my youtube channel learn coding& do coding
Anonymous
And do share and subscribe the
Jesvi
hey guys, how do we zip a file in c++(console project), i use vs windows
Jesvi
need help
Martin
hey guys, how do we zip a file in c++(console project), i use vs windows
The hard way is to use zlib. The easier way is yo package p7zip/tar with your project anduse it
Jesvi
you mean add lzma lib to vs and use it ?
Martin
No, I mean the zlib compression library.
Martin
But libzip seems to have a nice interface. You might want to look into it
Martin
https://stackoverflow.com/q/10440113/3687637 This example is for decomposition. But i guess compression works in the same fashion
Jesvi
thanks for the info
Anonymous
If you want to learn c/c++ then goto my YouTube channel Learn coding& do coding
Anonymous
For batter knowledge
Sasuke
Hey someone suggest me book to learn about Dynamic and Static linking in C.
Sasuke
Articles on google have not good explanation
Anonymous
Social studies assignment Darren 19052020.pdf
Sasuke
std::lower_bound works only with sorted sequences
They list don't specify the contents of book so how can I know it has topic am asking
Marián
so i've talked to some people who do backend gl/vulkan engines in c++ and was surprised by their workflow, many of them use their own 'custom' bindings to make occurent things easier to write, for example they have bindings that simply translates at compilation time they may write syntax like this... mut x = _(3.0,2.0,1.0); x.sort(); print(x);
Marián
do u use something like that? don't you know about some bindings like that? I like how minimalistic it is and may would like to create my own...?
Anonymous
/report
Bhavya
/report
Ludovic 'Archivist'
I hate HEVC
Ludovic 'Archivist'
I hate GPL
Ludovic 'Archivist'
Why must everything nice be either proprietary of fake open-source
Anonymous
Learn C properly
Anonymous
#include <stdio.h>; int multiplication (int num1, int num2); // function prototype int main () { int num1; int num2; printf ("Enter two numbers:"); scanf ("% d", & num1); scanf ("% d", & num2); printf ("Substrate% d \ n", multiplication (num1, num2)); // getchar (); return 0; } int multiplication (int num1, int num2) // value function { return num1 * num2; }
#include <stdio.h> #include <stdlib.h> static inline long mul(const int a, const int b) { return a * b; } int main() { char c[20]; int a; int b; printf("enter first number\n"); fgets(c, 9, stdin); a = strtol(c, NULL, 10); printf("enter second number\n"); fgets(c, 9, stdin); b = strtol(c, NULL, 10); printf("answer is %d", mul(a, b)); }
Anonymous
The graphics.h library is usually a shim for SDL on new computers and you link it with -lgraph
Anonymous
It's also quite a buggy library since nobody really maintains it
Anonymous
Just use SDL instead and you'll have a much better time
Anonymous
His mistake is probably the fact that it's not NULL
Anonymous
" " <- there is a space character inside
Anonymous
I want to start from basic
Anonymous
??
Anonymous
Can u send me pdf of notes or books for c or c++
Bhavya
Perform these programs in cpp
Dima
Perform these programs in cpp
/warn read the rules
Tushar
/warn
Hussam
std::lower_bound works only with sorted sequences
I am trying to solve this problem But I am getting TLE
Hussam
And I am sorting the vector
Anonymous
#include<stdio.h> int main() { int i=1; char name[20]; char type; FILE * xptr; xptr = fopen("channeling.dat", "w"); while( i<=5 ) { printf("Name: "); scanf(" %s", &name); printf("Type: "); scanf(" %*c%c ", &type); if ( type =='C' || type =='S' || type =='T' ) { fprintf(xptr,"\n %s %c ", name, type); i++; } else { printf("Invalid type!"); } } fclose(xptr); return 0; }
Anonymous
Please help me to find the bug
Anonymous
Its does not run properly 😒
Dima
scanf(“%c”,...
Anonymous
FILE* ptr or FILE *ptr