Igor🇺🇦
You can achieve so much with them
Except for code completion, navigation, warnings even without compilation.
Mat
Vim and vscode or any serious editor don't have that
Mat
LOL
Mat
C'mon, please
Daniele
Asdew
Except for code completion, navigation, warnings even without compilation.
For Vim: YouCompleteMe and then some for warnings and errors https://images.elixi.re/i/rruyyyof.png
Igor🇺🇦
VSCode is almost IDE. It's not just text editor and even that doesn't have proper code completion. And VI code navigation and completion is more basic than that
Asdew
And then this can turn Vim into an even more complete IDE: https://vim.fandom.com/wiki/Use_Vim_like_an_IDE
Asdew
I honestly cannot understand using an IDE for a language that doesn't have lots of unrememberable imports, such as Java.
klimi
old? 13 December 2019
Jussi
old? 13 December 2019
Oh, is that the first release?
klimi
Asdew
Initial release was 2 November 1991.
klimi
yep?
Daniele
Initial release was 2 November 1991.
kinda like saying visual studio is old because it was there in the 2000s
RishiGss
thank you guys
Daniele
Not vs code tho :-)
but vs is not old
Asdew
but vs is not old
VS or VS Code?
Jussi
VS 2019 is not old, true
Asdew
Visual Studio is old, initially released in 1996.
Asdew
Because #include are so much easier to remember 😂
After writing Java for many years, I still couldn't make a hello world program without autoimport.
Asdew
Why is this a problem if any decent IDE can autimport?
It's not really a problem, since I don't write Java anymore and when I did, I used an IDE.
Igor🇺🇦
It's not really a problem, since I don't write Java anymore and when I did, I used an IDE.
That's the point. Let computer do as much work as possible. I want to concentrate on logic, not navigation between files and the exact signatures of methods
Захар
how to rotate matrix 270 degrees in c?
Захар
i kwon only how to rotate in 90
Artöm
Rotate 3 times
Artöm
Or -90 degrees
Захар
bad way
Захар
i don t know how
Захар
for(i=0;i<n;i++) { for(j=m-1;j>=0;j--) { printf("%d ",matrix[j][i]); } printf("\n"); }
Захар
this is for 90
Захар
how made it for 270?
Artöm
Thats not rotating, just fancy printing
Захар
wrong answer
Захар
What to do?
Захар
for(i=0; i<n; i++){ for(j=0; j<m; j++){ rotatedA[i][j] = A[n-i-1][m-j-1]; } }
Захар
this is for 180
Захар
help someone please
Захар
for(i=n-1;i<0;i--) { for(j=0;j<m-1;j++) { printf("%d ",matrix[i][j]); } printf("\n"); }
Захар
like this, but it doesn’t work
Artöm
i <= 0 and j < m
Artöm
Are i, j signed?
Artöm
https://wandbox.org/permlink/VNtsWGCj6iO30MSe
Artöm
Both 90 and -90 and unsigned indexing
🐉
Hey boys, I'm trying to compare a Student object to an array of Students of the class Exam So I need to overload the == operator and put it in the Student class My problem is, I've seen many methods like className returnType operatorSomething(etc) But also Friend returnType operator etc So I don't get when to use class name and when friend
Igor🇺🇦
I don't know if it was posted here, but I'd like to share this list of different resources related to C++. I find it quite useful and maybe others will too https://github.com/MattPD/cpplinks
Sυииу
Thanks
Anonymous
hello
Anonymous
in general we know that is possible to have a mapped file in memory
Anonymous
there are some libraries that can help to do this
Anonymous
but there is also a way to have a directory mapped in memory ?
Anonymous
I have a map<string, vector<string>> and suppose I've calculated map["hi"] = some_vector_of_strings then if I want to assign map["hello"] = map["hi"] and after this statement, I don't need map["hi"] forever. Is there a faster way to assign map["hello"] with the vector that map["hi"] has?
Dima
Artöm
but there is also a way to have a directory mapped in memory ?
You wouldnt be able to modify files in that directory
Anonymous
You wouldnt be able to modify files in that directory
why? maybe I will lost these changes
Anonymous
Thats why
yes but I don't want to keep the files
Artöm
Thats too specific. Dont think its possible
Anonymous
maybe ram disk could be an alternative
Anonymous
Do you care about the contents of map you're copying from/to? Do keys between maps has any correlation? What about previous values? Should they be overwritten or new vector should be appended ?
The keys don't have any relation. It is just that both the keys have same value. Now, copying a new vector is expensive so I want the value(here vector) to be transferred.
Igor🇺🇦
The keys don't have any relation. It is just that both the keys have same value. Now, copying a new vector is expensive so I want the value(here vector) to be transferred.
If keys have the same values there is no need to copy anything. If you want to append and you do this operation a lot - consider using std::list and splice http://www.cplusplus.com/reference/list/list/splice/