BinaryByter
this isn't the same
BinaryByter
char [] has the compiler support for creating temp strings
BinaryByter
while char* does not
BinaryByter
but internally they are the same
BinaryByter
I edited
still no
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
yes we know
BinaryByter
try this:
MᏫᎻᎯᎷᎷᎬᎠ
Okay?
BinaryByter
#include <iostream> char getFirstChar (char* hi) { return hi[0]; } int main () { char p [3] = "hi"; std::cout « getFirstChar (p); }
Anonymous
so no one cant help me..(
Dima
so no one cant help me..(
check your paths?
Anonymous
check your paths?
its all in my PATH C:\Users\SONY\AppData\Roaming\npm;C:\MinGW\bin;C:\Program Files\Microsoft VS Code\bin;C:\cygwin\bin;C:\Users\SONY\AppData\Local\atom\bin
BinaryByter
Yeah It works
because they are the same
Dima
just werks (tm)
MᏫᎻᎯᎷᎷᎬᎠ
because they are the same
Yeah Like int* == int[]
Dima
you can check assembly of your code if you are super curious
MᏫᎻᎯᎷᎷᎬᎠ
And char[] prints the content Because it's overloaded
MᏫᎻᎯᎷᎷᎬᎠ
Same as char*
MᏫᎻᎯᎷᎷᎬᎠ
you can check assembly of your code if you are super curious
I'm in Windows now And I'm too lazy for that XD
klimi
.
MᏫᎻᎯᎷᎷᎬᎠ
Thanks Guys
MᏫᎻᎯᎷᎷᎬᎠ
.
...
Dima
there are online stuff for that
Dima
.
.net
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Like what
Dima
gdbonline
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Let me check it
MᏫᎻᎯᎷᎷᎬᎠ
Thx
Dima
oh wait, no
Dima
there is another site
MᏫᎻᎯᎷᎷᎬᎠ
What
Dima
I forgot it
Dima
#googleit
MᏫᎻᎯᎷᎷᎬᎠ
gdbonline
And this one?
MᏫᎻᎯᎷᎷᎬᎠ
This one lol XD
Luis José
what is your problem?
The error I wrote on the same message
Anonymous
this is all in path C:\Users\SONY\AppData\Roaming\npm; C:\MinGW\bin; C:\Program Files\Microsoft VS Code\bin; C:\Users\SONY\AppData\Local\atom\bin
Anonymous
Anonymous
and this is the error
Dima
I think its because of win32 mingw
Anonymous
Anonymous
Anonymous
I really need to fix it
Dima
/warn no
Dima
I really need to fix it
you are passing wrong parameters to it
Dima
I am not really sure what you need
Dima
but its clearly
Anonymous
I need that my IDE to find wx/wx.h header file and people said I should install wxwidgets
Anonymous
and I downloaded zip extracted to C: watched to this tutorial in order to install https://www.youtube.com/watch?v=FgAaiBg4wEE
Anonymous
my IDE is not codeblocks
Anonymous
may be I should install some packages in MinGW manager ?
Anonymous
and also I dont use the MinGW that comes with codeblocks I downloaded MinGW separately
Anonymous
probably because of that I have a problem with compiling
MᏫᎻᎯᎷᎷᎬᎠ
If I were you && has a first internet, I would do the operation from scratch...
MᏫᎻᎯᎷᎷᎬᎠ
In Long term it's a good way to learn, but not fast
Bader
.
MᏫᎻᎯᎷᎷᎬᎠ
.
What up
Bader
reading a fascinating 42 page IoT and blockchain thesis
Bader
I'm trying to get real low level with IoT and blockchain, thus I need cpp. All solutions are JS based, which is fine for networking, but for low level dev and full control CPP is the way to go for sure
MᏫᎻᎯᎷᎷᎬᎠ
.
Watch out I have dots copyrights :-P
Bader
el, OH el
Bader
hmm, just realized C is to C++ as Javascript is to Typescript
Bader
Bader
#ot
Dima
Bader
TS introduces OOP to JS