Andrew
a and b should be double
Cristian
Guys i have a question, whats the best app for c/c++?
Andrew
atom or vs code, and compile via terminal
Andrew
visual studio is to heavy
Cristian
At school we are using dev-c, is it good?
Andrew
yes is okay
Anonymous
Yes
Anonymous
I don't understand you
Anonymous
SO???
Can you rephrase your question?
Anonymous
No, I don't think so
Anonymous
I don't understand how code that does nothing can advance readability, I can only imagine that such code reduces readability
Thor
V01D
This is still giving same output 0.
Idk what this is, but i assume 32 is the scancode for spaces.
Try 0x32.
Again, I have no idea what you are doing, just saw the code snippet you replied to
Thor
I am trying to calculate leading spaces in string upto first alphabet character in line. Multiple lines are stored in 2d arrays.
Thor
Anonymous
Actually you should match with the function
Anonymous
If the function says ret name(void) { // code }
Anonymous
You must define it as such too
Andrew
Anonymous
ret name(void);
Anonymous
Compilers sometimes do check this
Anonymous
No compiler will check this if you're just using the standard options
Accel
Anonymous
While it should not make that much of a difference with void
Anonymous
I've actually seen some compilers complain
Accel
Andrew
Accel
Andd coc is there for autocomplete
Accel
neovim*
Andrew
coding in vim is very basic
Andrew
is nice , but not for big things
Andrew
but you can use vim inside vs code
Accel
Andrew
no just inside the vscode terminal
Accel
Vim binding is there
Andrew
Accel
Why want to use vim in Vs term
Andrew
cause its hard to work with multiple files in vim
olli
Accel
Seems like you haven't configured vim properly
olli
it's unnecessary for C++, it can be useful for C
Andrew
olli
Yes, there are a lot of function that will produce the same assembly. But looking at this code, foo(1,2,3,4); is valid in C but not C++
void foo();
void qux(void);
void bar() {
foo(1,2,3,4); // valid for C, not C++
qux(1,2,3,4); // invalid for both C and C++
}
In C, a function with an empty parameter list () can take anything for its arguments that's why you write (void) in C
Accel
Search difference between int main(void) and int main()
olli
Talking about C, it's not ignoring them, it doesn't even compile
V01D
Accel
olli
one gives you a compile time error the other does not?
olli
one allows you to pass arbitrary parameters, the other forces you to pass none
V01D
Olli says it.
In C function parameters dont need an identifier
olli
There should be an example above showing the difference
olli
Aaron Nevalinz
Aaron Nevalinz
Anonymous
Aaron Nevalinz
Erfan
Aaron Nevalinz
Erfan
V01D
Uh...
Erfan
Whyy
olli
Whyy
From the rules:
Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions.
Kenny
Erfan
Andrew
Ow, my eyes
it's about the colors, or is a bad idea to use vim in vs code?
Mardîn
Merazi
Andrew
maybe cause vs code run inside a browser that "emulates" a terminal that run vim
Merazi
Mar!o
_mm256_store_si256(x, _mm256_add_epi32(_mm256_loadu_si256(x), _mm256_loadu_si256(y)));
Does anybody know why this crashes the program? The pointers x and y are valid, the addressed are loaded
unaligned (loadu) any my CPU supports AVX...
Anonymous
Anonymous
https://github.com/xtensor-stack/xsimd
Have you seen this? It's much nicer than all these intrinsics
olli
Mar!o
Mar!o