#c code

63 messages · Page 1 of 1 (latest)

sage nicheBOT
#

When your question is answered use !solved 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.

jolly crag
naive ermine
jolly crag
jolly crag
#

It's a list of problems

#

That you can solve with code

naive ermine
#

i wish i can but im short on time i need them like solved so i can see how it works over all

#

i was sick for a whole 2 week i couldnt study for it

jolly crag
naive ermine
naive ermine
jolly crag
naive ermine
jolly crag
#

don't go to sleep then, lol

naive ermine
#

but swear i learn from interpreting code

violet flicker
#

A spontanous nighshift never hurt anyone xD

naive ermine
#

so if u can help me by giving me simple codes

#

it wont hurt

#

but ill really appreciat it

jolly crag
violet flicker
#

You will forget till tmr

naive ermine
naive ermine
#

at least how to solve a 2nd degree equation

violet flicker
#

And i dont have any code examples

jolly crag
naive ermine
jolly crag
#

:P

naive ermine
jolly crag
#

Like, if I understand this correct, you literally just need to implement the quadratic formula, no?

naive ermine
#

i tryed using ai but it uses another directory other than stdio.h

sage nicheBOT
# jolly crag !llm

@naive ermine

Large Language Models (LLMs)

We highly recommend against the use of LLMs and AI assistants because:

  • LLMs are bad at C and C++
  • LLMs are wrong more often than not
  • LLMs answer with complete confidence even when wrong
  • If you're new to C or C++ you likely don't know enough to know when answers are wrong
jolly crag
#

Especially that last bullet point is important

naive ermine
#

if i just know how to do the other 2 ill pass

jolly crag
#

Ngl, just based on the fact that you called stdio.h a "directory": Would it be an option to just be sick tomorrow and take a retake?

naive ermine
jolly crag
naive ermine
#

we ddnt study anything other so yeah

jolly crag
naive ermine
jolly crag
naive ermine
#

yess but how to write the power of 2

#

and the square root

jolly crag
naive ermine
jolly crag
sage nicheBOT
#

sqrt, sqrtf, sqrtl - square root function

Synopsis
#include <math.h>

double sqrt(double x);
float sqrtf(float x);
long double sqrtl(long double x);

Link with -lm.

Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

sqrtf(), sqrtl():
    _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
        || /* Since glibc 2.19: */ _DEFAULT_SOURCE

... (truncated)

naive ermine
#

how about square root

normal thistle
#

sqrt is square root

#

sq->square
rt->root

#

sqrt

naive ermine
#

!solved

sage nicheBOT
#

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