Anonymous
"+2" as if it was a word like "house". Well actually I want to assign "+2" to a position of a vector whose elements are integers
Anonymous
So you want to save the number 2
No, i want to save "+2" which is not an integer, there comes the problem
Anonymous
Yup
Mat
You can't
Mat
It's called vector of ints for a reason 🤔
Anonymous
Even with strings?
Mat
Create a vector of strings if you need that
Anonymous
How?
Mat
std::vector<string> vectorOfStrings;
Anonymous
Hello guys
klimi
hi
Anonymous
How did it get [2,2 ] and 4 ?
klimi
How did it get [2,2 ] and 4 ?
Because you increment 1 by 1
klimi
Then add it to sum
klimi
Then increment one by one
klimi
Add it to the sum
Dark
I know this is a stupid question but how do you know what version of C++ your using?
Surge.rs
Dark
Depends on what version of compiler you're using
Ok will I would tell you but unfortunately my mouse is not working on my Kubuntu
klimi
Mouse not needed
klimi
No mouse gang
Surge.rs
Dark
I know I got it up
Dark
I am using G++ but I can’t remember how to get the version
Dark
Plus I think it needs an update lol
Surge.rs
G++ --version will tell you what version the compiler is but wont tell you what standard your code is written in
Surge.rs
(Ie c++11)
Dark
Ok well it says 9.2.1
Surge.rs
That's the compilers version. Not c++ standard
Dark
True but how would you find out the C++ standard?
Anonymous
You can compile with different C++ standard
Anonymous
You specify this when you compile
Anonymous
Afaik this version supports the latest C++17
Dark
Ok that’s makes sense
Anonymous
But I think this question is googleable enough
Dark
Ok I understand
Devil
Can anyone tell me what is compiler???
klimi
Can anyone tell me what is compiler???
Thing that translates your ugly code into some binary which can be executed
Anonymous
Hi guys How to install c/c++ in vscode?
Dima
Hi guys How to install c/c++ in vscode?
Search in the extensions for the most popular cxx support plugin
Anonymous
I got an error after configuring GCC/G++ following https://code.visualstudio.com/docs/cpp/config-wsl ==Error Message== g++: error: helloworld.cpp: No such file or directory g++: fatal error: no input files compilation terminated. The terminal process terminated with exit code: 1
Anonymous
I did But not working😫
klimi
Hello world.CPP not a file
klimi
It does notbexist
Ahmed
I did But not working😫
Its seem the file is not available to compiling
Anonymous
Got But it can't debugging It shows "launch: program 'e:\project\helloworld.exe doesn't not exist" button "open launch.json" 😫
klimi
Omg
Anonymous
How slove?
klimi
Read the first message
Anonymous
is it correct?
Mat
is it correct?
Have you touched it?
Mat
is it correct?
Can you let me see your directory?
Starm
I'm human baba
P
try setting actual full path instead of the ${file} variable
P
wait
P
shouldn't your helloworld.cpp be in 'helloworld' folder?
Anonymous
is it correct?
/warn screen photo
Anonymous
Is CLion free??
Anonymous
Can i get a virus that deletes files from a phone?
I_Interface
Anonymous
Is CLion free??
If you are a student and can proof this — yes, it is free
Mazen
Can i help me
P
you can definitely help yourself
klimi
DO IT
Mazen
?!
klimi
?!
You surely can help yourself
Mazen
You surely can help yourself
Okey Put now I don't know in error.
klimi
Okey Put now I don't know in error.
i totaly don't understand you