oh so thats why...
ill try fixing it thanks for pointing it out... :)
Type: Posts; User: xetehkah
oh so thats why...
ill try fixing it thanks for pointing it out... :)
Thankies I really didn't know that.
Anyway i tried making start function the main.
void main()
{
int option;
Heres my whole code.
I already tried fixing its errors and the compiler said its error-free...
But still it wont work when I run it.
And one thing i dont have a main function.
Is that the...
Thanks!
Thanks to tabstop and laserlight too!
Thanks Elysia!
I'll its really hard for newbies like me.
I changed it now and everything's almost working.
:)
^
Yup sorry about that I checked my function again and you are right.
I've been trying to get rid of errors for the past few hours.
It's hard if you don't know what errors mean.
I tried...
I just changed my function name but now it has these errors and warnings.
[Error] C:\Documents and Settings\Ansay Family\Desktop\bal.c:457: conflicting types for `out'
[Error] C:\Documents and...
I tried searching the net for what it means but it is still unclear...
[Error]: to few arguments to function 'exit'
here is my exit function:
void exit(char choice4)
{
sorry about not putting the whole code...
well ive already inserted the pow() function but when i input something like
5 ^ 3 the answer results to 124
5 ^ 2 is 24
anybody whom i can pm the...
so how should I inset pow() in that?
i tried changing op to op[size] but the other operators had the problem...
int n = 0, m = 0, ans = 0, lcnt = 0, U = 0, P = 0;
char line[80], op;
char *p;
as for the power, it should use the "^" symbol~
like 5 ^ 2 = 25
T_T
heres more on the code.
sorry if i cant put it all...
fgets(line, 80, fr);
while(fgets(line, 80, fr) != NULL)
{
well I put the code above the previous codes i posted.
when my input is "abs -50"(with space) it just returns 0.
should I change char op to int op?
what statements should I use with that?
anyway any tutorials on using strcmp or strncmp you could recomment?
im having a hard time understanding strings...T_T
This is a part of the main function of my calculator:
if(op == '+')
{
ans = ans + m;
}
else if(op == '-')
{
ans = ans - m;
Hi...
I have created this code...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
^
thanks ill try reading it.
that was just what i needed cause i dont know what it's called... :)
Hi Im really new at C programming so I came to ask. :)
Ive just created a calculator but it can only do equations like x+y, x^y and the like.
What I want is it to do more than one operation.
...