Vlad
Why
Guess it's not C++
Vlad
It's web development
Light
vector<int> * graph = new vector<int>[nv];
I am not able to add items to graph using this
(graph+v1)->push_back(v2)
I am assuming it is due to (graph+v1) is null.
Is there a better way to declare the array of vectors?
Vlad
Sench
Ok sorry
Vlad
new and containers don't mix
Light
Tried that also
vector<vector<big>> graph(nv, vector<big>());
Light
But it is giving bad_alloc() error
Light
big = long long int
Vlad
nv is what value?
Vlad
Have you initialized it?
Light
int nv;
cin»nv;
vector<vector<int>> graph(nv, vector<int>());
Vlad
Vlad
Where is the check for input Jonny?
Vlad
What if I enter 'asfasdgsadgasd' into the program?
Vlad
Or -1
Light
okay I think that is the issue. Thanks for the help.
Light
I was actually reading values from a file using cin. I created the file in a wrong location so the file did not exist. But the program was not throwing any error that is is not able to find the file😂. That is why I thought it is reading from the file. But in reality nv contained garbage value.
Vlad
\Device\NUL
why you hate VLA?
It's slow and it's dangerous to stack overflow. Even The Linux Creator hate it
klimi
V
Hey sup guys!
About build libs, I know that have 2 type of lib, dynamic and static.
Dynamic (like a .dll) is apart of "client" and is a dependency. Static (like .lib) turns able to compile everything in jus one bin. Nice.
Well, I have a lib but when I use it, the "client" have access (and dependency) on my lib dependencies (lib depends on Boost, client needs too).
I was reading about static link that lib, but don't know if I really understood, can static .lib have all of your dependency on it binary file? Or just dynamic libs?
\Device\NUL
Filippo
Hey guys does anyone know how tò use createremothetherad function
\Device\NUL
\Device\NUL
Static executable means embed the library also in the executable, cmiiw
\Device\NUL
For example you pass user32.lib in the MSVC compiler. That doesn't prove it's static
labyrinth
𝔗𝔞𝔫𝔫𝔦𝔠𝔄𝔯𝔠𝔥𝔢𝔯
Hiall
𝔗𝔞𝔫𝔫𝔦𝔠𝔄𝔯𝔠𝔥𝔢𝔯
Guys reimport 2010 visual studio project in 2022 good idea or no?
TheDevOps
Hello community, what projects can I work on as a beginner who has learnt C language. Please
abdisa
محمد
How to solve the problem found the digram
April
Is assembly still embedded in AT&T syntax when compiling c code with risc-v gcc
Anonymous
April
Yes
Anonymous
Is there is any method to build cross platform apps in c++
Like flutter
Anonymous
Anonymous
Any free c++ backed hosting center ?
No card , no money
Anonymous
Null
Null
this is some kubernetes alternative?
Anonymous
\Device\NUL
\Device\NUL
https://godbolt.org/z/zz7dGvd97
There's no $
See also https://github.com/riscv-non-isa/riscv-asm-manual/blob/master/riscv-asm.md
Karan - 1DS20IS042
hey guys
Danya🔥
hey guys
All 16869 members of the chat say hello to you
Anonymous
#ot
@xorjik @thealidev
Persia
Any one has written the code for cannon matrix for size 200 in openmp?
Anonymous
Adil
Hello
Adil
I am a JavaScript programmer. But I want to learn programming fundamental with C language. Any idea how long will take to learn C language?
Tokir0074
1 months is enough bro..
Adil
Only 1 month? Strange!
Tokir0074
But you have to do lots of practice
Tokir0074
Syntex are easier than java..
Adil
Adil
Danya🔥
Adil
Adil
Danya🔥
Adil
I think C and Java is best for problem solving. And these are mid level language.
Danya🔥
محمد
How solution angram one string for example (aaaabc cba)in cpp
Danya🔥
GOPA
hey can anyone suggest some of the best open source c++ project for beginners to study c++ projects
klimi
klimi
GOPA
yep
you mean https://github.com/qt/qtbase