Monday Morning
This is not exactly a c++ query but i am desperate to solve this issue. After clicking "Run Code" Button ( circled in the picture) , the code is neither compiled nor run . But when I change my terminal from bash to cmd/ powershell, It works exactly as expected. Any help on how to get bash to compile and run the code will stop my eternity long itching. Thank you in advance.
Monday Morning
Thank you for Replying. Do you have any idea how to rectify the path ?
Nomid Íkorni-Sciurus
Thank you for Replying. Do you have any idea how to rectify the path ?
I think it's a matter of googling where the C root file system is ;)
Nomid Íkorni-Sciurus
https://superuser.com/questions/1067373/where-is-the-linux-subsystems-filesystem-located-in-windows-10
Nomid Íkorni-Sciurus
Just a little hint.
Chernykh
/IDE
Anonymous
/IDE
sk
/IDE
Anonymous
Void functions can return void values
Anonymous
In practice this is just a simple return; with no arguments or returning another void function
Yash
Can anyone help me to find whats the logical error in this code..
Chirag
/get ide
Scriptern
I'm a C++ beginner someone help where to start from
Scriptern
what's your goal?
To become a video game programmer
klimi
and you are complete beginner in programming?
Dima
go for algebra, geometry a bit for a first time
klimi
In C++
so what do you know?
Scriptern
so what do you know?
I have more experience in python programming
klimi
but you want to transition into making game engines and stuff like that?
Scriptern
How much?
5 years experience
Asdew
5 years experience
I doubt that a little. If you actually had that much experience with Python, you'd probably know to not ask in this kind of place.
Asdew
Continue doubting
I sure will.
Scriptern
I sure will.
Which programming language have you specialized in?
Dima
you’ll need basic knowledge of trigonometry also
Asdew
Dima
you need to be more specific, do you want to create a game engines or design a game?
Dima
this is a very wide topic about game development. if you want just to use complete solutions as Unity or UE then you’ll need nothing, it’s simple enough and almost everything is done for you
Dima
UE allows to create a game without even touching a code
Dima
Bluescripts etc
Yash
Why u are sending it like PDF ?
Because i coded on handset😅
Dima
c++ can be used here but you can go with blueprints (flowcharts, etc)
Dima
english only
Scriptern
Scriptern
Which is the best IDE for C++
Noble Friend
/get ide
Asdew
Wow, you definitely have not been programming in Python for 5 years.
Noble Friend
/get ide
that's the command to run to check ide here
Asdew
What makes you think so?
You asking for someone to "share the syntax of C++," you asking for the best IDE.
Scriptern
I use pycharm in python
Scriptern
Python is also case sensitive
Dima
throw python into a garbage, learn c++!
Dima
c++ is case sensitive too, just like many other languages
Scriptern
throw python into a garbage, learn c++!
I think I should learn both
Anonymous
c++ is case sensitive too, just like many other languages
#define PRINTF printf PRINTF("no"); (Sarcasm)
Dima
python is trash IMO
Anonymous
python is trash IMO
Glorified trash
Dima
Glorified trash
all hail python
Yash
Yash
Yash
Yash
Yash
Can anyone help me to find whats the logical error in this code..
Anonymous
not really a logical error. but here's a security error - stop allowing user to send in strings of arbitrary lengths. use fgets(), getline() (remember to free memory), or scanf() with %Ns instead of %s where N is one less than the size of the array.
Anonymous
Can anyone help me to find whats the logical error in this code..
you fogot to actually sort the structs, you are just printing them
Anonymous
also, why not use qsort() from stdlib.h
PO
Someone knows, how can I compare a string with argv[]?! I use strcmp but doesn't work!
Asdew
Strcmp does work.
Asdew
It's probably you at fault. Why are you saying it doesn't work?
PO
But