#EXECUTION PROBLEM
253 messages · Page 1 of 1 (latest)
When your question is answered use !solved or the button below to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
do you expect us to hack into your pc to see the error?
you cant just press "run" and expect it to work
you must tell it how to run
iirc vscode needs you to make a launch.json file somewhere which tells it what to do
THIS
In case you don't know, writing in ALL-CAPS generally gives the impression of shouting which is impolite.
looking at the way you are handling this
i would urge you to download visual studio instead 
WHAT?
Im sorry
Anyway that is an interesting error
Does it have to be done manually?
what? writtin the launch.json?
Yes

Noted I am patient🥰
probably better if you do tho
do not spread visual studio propaganda
Yeah so rest of my classmates will have their code run automatically while I will have to do all the work manually everytime🥹
no... just once
This is the fate right🥹
or
its all microsoft in the end 
do you have a .vscode folder in your project?
also it is objectively easier to use
for a beginner
shush vscode is a little better
Whats the difference?
they wont be a begginer any
m
ore by the time it isntalls
At the end of the day they're just ide's which are there many
For example sublime text's nice
I have alreade made a launch.json file...It is rotting there in a useless manner...
send contence
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
Uh
is an editor, it is general purpose , to code with any language , you will have to install extension , do configuration and stuff
is an IDE , it is made for writing C++ / C# code , which means , it already comes with a lot of stuff preconfigured and preinstalled for those specific languages , so it works out of the box
Oh guess im wrong
vscode is glorified notepad buddy
i need to run before they kill me
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
so is visual studio or any IDE
it doesnt matter whcih glorified notepad you use at the end of the day its just preferencec it wont make your code run any different
Whats contence?
Indeed
I used
- visual studio
- vs code
- codium
- kate
- qt creator
- neovim
- emacs
and I sucked at writting C++ in all of them equally
the text inside launch.json
Bear this crap I cant anymore...I have been vs code for like 3 hrs now
also send text not screenshots
```cpp
int main() {}
```
int main() {}
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": true,
"cwd": "e:/TEST",
"program": "e:/TEST/build/Debug/outDebug",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
Send the json bro not the accual text
The text file
no this is fine
I just started a week ago
yk what this is out of my depth Im a neovim dweller you help them bacon
it be a lot easier if you just used cmake tbh
Is there any thing you want me to do?
wdym by json?
you can learn basic cmake and just use that
ik it works well with vscode for a fact cause I used it a while ago
Going over a starter template to manage your C++ project with Visual Studio Code.
-- References --
▶ https://code.visualstudio.com/
▶ https://cmake.org/
▶ https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild?view=vs-2022
▶ bird wallpaper in thumbnail: https://wallhaven.cc/w/nm3eg9
-- Code, Tech, and Tutorials Links --
▶ Patr...
here is some random tutorial I found
idk if its any good its the first thing I found
The file
If i would say send the png i would reffer to an image because thats an image format
this will be a lot more integrated and easier to set up
okay I guess idk how my teach will react
what did your teacher tell you to use?
cause I will bet you it was probably not vscode
Code::blocks 
Yea when you send code to people send it like this
maybe just do that
it sucks and is old and you will probably hate it but you can switch ONCE YOU ACTUALLY KNOW WHAT YOUR DOING
cause right now its more effort then its worth
and you will have yo figure out everything on your own instead of doing what the teacher says
I reccomend sublime text if u dont wanna use vs
most of my mates are using vs code I dont want to be left out
just do what your teacher teells you do until you can understand how to set up somethin else entirely on your own
wait isnt codeblock meant for c users?
well get them to help you out then
no
C and c++
Also some other thing but those are libraries and stuff
they just started...
just use code blocks for now
if your frinds figure it out later you can switch to vs code later they will help you
if they cant then there you go you wont be left out
How about I delete vs code and everything and then reinstall it?
that wont help
i wish Windows had package managers
I wanna know why
it does
know why WHAT happens?
its called winget, it comes preinstalled and it sucks ass
Linux suppremecy
yas :3
Never going back to windows
B)
Anyways any more questions op
It is trash and cranky
I like that we are on the same page
Kitten has eatten fish😭
anyways its my 2nd time reaching out to people for this problem I guess it will persist forever
And nice build
danke
you will be able to switch to what you want later
when you know what your doing better
teacher suck my ass I hate him
whats the point of attending classes if your not gonna take the lessons they give you
if you tried to learn like every IDE and every compiler and everything you would also be restrictive
if your vscode config wont work he wont be able to help you
he cant possibly learn everything
its becose its depricated
and super slow
Give me a one time solution
Slow? K good to know
like a second or two to show basic info?
do what the teacher says
No I mean whats the best alternative?
Fair enough
Dear god thats fast
the best alternative is to do what the teacher says
Or switch to another ide thats simple and gets the work done
written in pure C 😎
dont do that
just do what the teacher tells you
Do what you like just dont blame it on us
if the teacher tells you to for example: switch to c++17 you wont know how to unless you use the exact thing he uses
I am going with this advice bcuz latter was pmo
I reccomend sublime
once you understand how this works well enough to be able to follow his instructions without a direct guide then swithc
doesnt that cost moneys?
Noted
is it foss?
is it foss tho?
idk
vim?
very simple config I made with just 145 lines of lua and it works grate
neovim
neovim
cool i dohave vim installed althought thats only for cmd tomfoolery and other stuff
neovim is the best >:3
it just takes some getting used to
like a month of getting used to
or 2 or 3 or more
i mean i would use vim and othermore but m typingis iinda bad
hey so I am using codeblocks does it have everything pre installed?
so?
should have
i mean i can type fast but only with my eyes on the keyboard
okay
it has io stream string auto complete
no way to get better then just type
wbt stdio.h
I for one cant type fast when looking at the keyboard :P
i dont code c
stdio.h is a C header not C++
yup I am using stdio.h for now
thats not C++
thats C
and the proper way to use C header in C++ is to use <cHEADER_NAME> with no .h
I am also learning c
so <cstdio>
its like a subset of c++
well this is CPP-help
isnt it?
yes
well if cpp is a super set of c why not the other way around?
its the predicesor
c++ is NOT a superset of C, thats why
let me give you an example
what the hell is this?
;compile
#include <stdio.h>
#include <stddef.h>
void print_pointer(void* pointer) {
printf("%zx\n", pointer);
}
int main() {
int my_int = 3;
print_pointer(&my_int);
}
7fffc19280fc
this is C
;compile -xc++
7ffe680139dc
uigh it compiled with C again
;compile
#include <stdio.h>
#include <stddef.h>
void print_pointer(void* pointer) {
printf("%zx\n", pointer);
}
int main() {
int my_int = 3;
print_pointer(&my_int);
}
7ffdec7d851c
choose console application and ignore EVERYTHING else
acualy empty file
and that
I could have sworn that c++ doesnt allow implicit casts to void* from another pointer
to my_int
anywyas here is proof
void main {} is (bearly) legal in C but not in C++
in C++ the main function is defined as these
in C its defined as these
including literally fucking anything
so thats why you can do void main in C but not C++
there is a lot of these differences
another example that actualyl matters
in C++ the members of an array have to be filled in the order they were declared
in C they dont
so no C is not a subset of C++ tho it is a common misconception
many C projects wont comile if you compile it as C++