#code
91 messages · Page 1 of 1 (latest)
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close
- Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules.
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
have you looked up c if/else syntax
I would help but I know C++ and barely C 
im actually using C++ haha
Ohhh
I thought it was C 🗿
well use a switch
you are also using a different version of syntax then me so yk
try using #include <iostream>
ok! im gonna try
alright brb
same error 😦
i have never done cs in my entire life and my pc literally wants me to throw it in someone's bootyh0le istg
else is not a thing, i mean it is a thing but hmm
type else if
at line 15
if () {
} else {
}
yeah syntaxxing was missing should work after that
it didnt work, im gonna try cute rizzly's method
and also use return 0; at the end
since ur using int main
or just change it to void main
am i supposed to do like this? cuz it doesnt work as well
no you're supposed to do it like i said
Oh I see the problem
when you wrote your if statement you put ; at the end
like @untold totem said you only have to put curly brackets
but for the code inside the if statement you put semicolons
ah that too good eyes
@ember fox has given 1 rep to @untold totem
WHAT omg finally it's worked
ggs
thank you all for the patience, really
Nice eyes with you too btw
np bro
i use sublimetext, i honestly dont know what's going on w vscode when i first used it like it always give me errors
idk why tho
Did you install MinGW and the C/C++ extension
you could also use CodeRunner
honestly i dont even know if i did, i just followed someone's instructions on youtube so i suppose i did
the art of programming is googling it, if that doesn't explain the issue copying code from google and modifying it until it fits your situation
exactly
and then drinking enough caffine to kill a blue whale
i use chatgpt haha
Lol
chatgpt said to do if();
??
wait you know what im actually dumb like it told me to do the same thing what yall did but i didnt listen LMAO
dont use chat gpt for coding it is kinda ass
lmao
ChatGpt is ass for the majority of CS stuff and stem
its good for overviews and reports
otherwise yk
It's dogshit]
noooo but it's helped me sometimes, not everytime tho
In my opinion tho
i think it's probably good
Have you used it?
i have not
or nvrmd dumb question
It's meh, good, and horrible all at the same timew
well u can go and test it for coding , it gives literal non working codes
welp ig its time to close this thread
have a good day bye
