Search:

Type: Posts; User: xetehkah

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,256

    oh so thats why... ill try fixing it thanks...

    oh so thats why...

    ill try fixing it thanks for pointing it out... :)
  2. Replies
    4
    Views
    1,256

    Thankies I really didn't know that. Anyway i...

    Thankies I really didn't know that.

    Anyway i tried making start function the main.



    void main()
    {

    int option;
  3. Replies
    4
    Views
    1,256

    Need help again...

    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...
  4. Replies
    10
    Views
    1,880

    Thanks! Thanks to tabstop and laserlight too!

    Thanks!

    Thanks to tabstop and laserlight too!
  5. Replies
    10
    Views
    1,880

    Thanks Elysia! I'll its really hard for...

    Thanks Elysia!

    I'll its really hard for newbies like me.

    I changed it now and everything's almost working.

    :)
  6. Replies
    10
    Views
    1,880

    ^ Yup sorry about that I checked my function...

    ^
    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...
  7. Replies
    10
    Views
    1,880

    I just changed my function name but now it has...

    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...
  8. Replies
    10
    Views
    1,880

    What does this error mean?

    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)
    {
  9. Replies
    16
    Views
    2,874

    sorry about not putting the whole code... well...

    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...
  10. Replies
    16
    Views
    2,874

    so how should I inset pow() in that? i tried...

    so how should I inset pow() in that?

    i tried changing op to op[size] but the other operators had the problem...
  11. Replies
    16
    Views
    2,874

    int n = 0, m = 0, ans = 0, lcnt = 0, U = 0, P =...

    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
  12. Replies
    16
    Views
    2,874

    heres more on the code. sorry if i cant put it...

    heres more on the code.

    sorry if i cant put it all...



    fgets(line, 80, fr);

    while(fgets(line, 80, fr) != NULL)
    {
  13. Replies
    16
    Views
    2,874

    well I put the code above the previous codes i...

    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?
  14. Replies
    16
    Views
    2,874

    what statements should I use with that? anyway...

    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
  15. Replies
    16
    Views
    2,874

    Calculator Operand

    This is a part of the main function of my calculator:


    if(op == '+')
    {
    ans = ans + m;
    }
    else if(op == '-')
    {
    ans = ans - m;
  16. Replies
    1
    Views
    953

    Strings and If Statement

    Hi...

    I have created this code...


    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <string.h>
  17. Thread: Calculator

    by xetehkah
    Replies
    2
    Views
    1,184

    ^ thanks ill try reading it. that was just...

    ^
    thanks ill try reading it.

    that was just what i needed cause i dont know what it's called... :)
  18. Thread: Calculator

    by xetehkah
    Replies
    2
    Views
    1,184

    Calculator

    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.
    ...
Results 1 to 18 of 18