#code

91 messages · Page 1 of 1 (latest)

lament epoch
#

guys idk what's the problem, i put if before else but my pc says otherwise

ripe basinBOT
#
  1. Wait patiently for a helper to come along.
  2. Once someone helps you, say thank you and close the thread with:
+close
  1. Feel free to nominate the person for helper of the week in #helper-nominations
  2. Do not ping the mods, unless someone is breaking the rules.
  3. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
misty river
#

have you looked up c if/else syntax

ember fox
#

I would help but I know C++ and barely C despair

lament epoch
ember fox
#

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>

lament epoch
#

ok! im gonna try

ember fox
#

alright brb

lament epoch
#

i have never done cs in my entire life and my pc literally wants me to throw it in someone's bootyh0le istg

untold totem
#

type else if

#

at line 15

misty river
untold totem
#

yeah syntaxxing was missing should work after that

lament epoch
untold totem
#

and also use return 0; at the end

#

since ur using int main

#

or just change it to void main

lament epoch
misty river
#

no you're supposed to do it like i said

untold totem
#

open a bracket after the if

#

if()

#

{

#

bruh

#

}

#

like that

ember fox
#

Oh I see the problem

ember fox
#

like @untold totem said you only have to put curly brackets

#

but for the code inside the if statement you put semicolons

untold totem
ember fox
#

I was just looking at it

nocturne ironBOT
#

@ember fox has given 1 rep to @untold totem

lament epoch
#

WHAT omg finally it's worked

ember fox
#

lets go

#

also what software do you use, I mean like IDE

#

I use VSCode

untold totem
lament epoch
#

thank you all for the patience, really

ember fox
ember fox
lament epoch
#

idk why tho

ember fox
#

you could also use CodeRunner

lament epoch
ember fox
#

Ah

#

I see

misty river
#

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

ember fox
#

and then drinking enough caffine to kill a blue whale

ember fox
misty river
#

chatgpt said to do if();
??

ember fox
#

Oh yeah

#

did it?

lament epoch
untold totem
untold totem
#

everyone is like that

#

atleast i was

ember fox
#

its good for overviews and reports

#

otherwise yk

#

It's dogshit]

lament epoch
ember fox
#

In my opinion tho

misty river
ember fox
#

Have you used it?

misty river
#

i have not

ember fox
#

or nvrmd dumb question

untold totem
#

im just saying on basis of coding

#

not other realted stuff

misty river
#

it was made by openai which made the other code writing ai back in the days

#

so idk

ember fox
#

It's meh, good, and horrible all at the same timew

untold totem
#

well u can go and test it for coding , it gives literal non working codes

ember fox
#

I gtg

#

nice to meet all of you

untold totem
#

welp ig its time to close this thread

ember fox
#

have a good day bye

untold totem
#

same to u

#

too