Indolent
someFunction() int somebs2darray[][]; // How to pass that 2d array in someFunction?
olli
someFunction() int somebs2darray[][]; // How to pass that 2d array in someFunction?
Since C++ does not support VLAs you have to specify the size, you can use the same constant in the function signature, e.g. void foo(int Array[10][10]) {} void bar() { int Array[10][10]; foo(Array); } Otherwise, listen to what @VoidStar0x0 said, or create a proxy class
Vlad
This should do
Indolent
Sweet. I found some videos on youtube on exactly this
Indolent
But thanks guys!
Leelesh
/get cbook
olli
Sweet. I found some videos on youtube on exactly this
which might be UB, please watch out for this
Anonymous
How to remove a text in the output screen of the program after any fix time and further statement should appear
Leelesh
I am beginner so bear with me guyz. when i run that code i am getting both if outputs
Leelesh
Help
Leelesh
Please😢
Nameful
Help
install Gentoo
Anonymous
/get cbook
Anonymous
/ get cppbookguide
Anonymous
/get cppbookguide
Anonymous
/get ide
Leelesh
@lightness_races_in_orbit Thanks a lot
Prem
Please somebody tell me why this is not working with zero errors
Ian
¯\_(ツ)_/¯
Ian
what are the input data?
Surdma
Hi Guys, I want to organize a WhatsApp class on October 3rd on how to setup a development workspace like vscode, spyder,codeblock and even gimp on you smartphone. if you are interested kindly follow the link below to join the group. Join Hackndroid on WhatsApp and learn the trick on how to install and run development PC app like vscode, spyder or even gnu image manipulating (GIMP) that works exactly like photoshop on your smartphone ... click the link below to join the WhatsApp group https://chat.whatsapp.com/IiqxWaMGH885nEjejp5qNe checkout YouTube for the class preview https://youtu.be/sW_IoDUzBJM
Prem
Mar!o
wtf
Prem
wtf
Question in which I am having doubt
V01D
I am beginner so bear with me guyz. when i run that code i am getting both if outputs
= is an assignment operator. == is a conditional operator: a = 1 (is) a == 1 (?) Check your code and try again
V01D
Please somebody tell me why this is not working with zero errors
You should include cmath for C++, and math.h for C
Prem
Ok
V01D
Please somebody tell me why this is not working with zero errors
Define not working. What is the input data as @ianmcewan asked
Ian
/warn
Anonymous
Hay every one How are you?
su
I created a tree using struct. And this is the structure of that tree. struct Tree { int operation; struct Tree *left; struct Tree *right; }; And next, I created the complete tree like this struct Tree *n; n -> left n -> left -> left n -> right etc. can you tell me how to print this complete tree ( like recursive )?
node* current_node = &root; put_node_to_stack(current_node); while(stack->is_empty() == false) { put_node_to_stack(&stack, current_node->left); put_node_to_stack(&stack, current_node->right); if (is_leaf(current_node)) { print(&node); } else { current_node = pop_node_from_stack(&stack); } }
Gianla.
guys i've just started programming in C... how do i install libraries on visual studio code?
Gianla.
i mean
Gianla.
how do i install them? I have visual studio code
Gianla.
vcpkg seems not working
Anonymous
vcpkg seems not working
Probably you doing something wrong
V01D
You just place .so and .a files in /usr/share/lib or whatever the directory was
Gianla.
im on linux
V01D
An emulator for C?
V01D
Temple OS.
V01D
It has a C interpreter, but I dont think that is what you mean
V01D
You mean a debugger
V01D
gdb
V01D
(gdb) break (function or memory address) (gdb) continue (gdb) next, step, n, or s
Aaron Nevalinz
I barely get a grip of whatever you guys are talking about, I think I need to do more reading and research!
V01D
gdb file.elf break main continue s s set disassembly-flavor intel disassemble quit
Aaron Nevalinz
Talking about a debugger
Yes I know what a debugger does!
Aaron Nevalinz
Man am a starter in c++, like I dropped c for cpp.
V01D
Okay
V01D
And
V01D
No
V01D
disassemble or disassemble (memory address or function)
V01D
If you compile with -g you can type list to see 10 lines of code from the current instruction. (In its original language with comments and all that)
V01D
Only through $ gdb -tui or (gdb) wh
V01D
type disassemble
Adarsh
Can anyone suggest me how can i start with graphics programming in c++?
Anonymous
C++ Stl is more important??
Anonymous
I need some suggestions for file handling in c++
Anonymous
Can anyone help me c++
V01D
Yes
V01D
And some algorithms like a line drawing algo
Adarsh
And some algorithms like a line drawing algo
can you send some documentation that i can follow
Anonymous
Learn a grahics framework like OpenGL.
I have some questions in c++
V01D
can you send some documentation that i can follow
https://github.com/ssloy/tinyrenderer/wiki
Surdma
/warn
V01D
gdb -tui
V01D
And compile with -g
Anonymous
I have a question. But that is very big. If you can, please give me an answer 🥺