Search:

Type: Posts; User: JezW

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,189

    The program i am writing takes in 6 strings...

    The program i am writing takes in 6 strings a0,b0,c0,x0,y0 and z0. It then converts them to doubles a,b,c,x,y,z using the atof function. if the user types "f" then it goes to the divide function that...
  2. Replies
    8
    Views
    1,189

    thanks guys i know this is really basic stuff but...

    thanks guys i know this is really basic stuff but i do appreciate it and its very helpful :)

    Jez
  3. Replies
    8
    Views
    1,189

    thanks for the replys guys. "/ *I won't even...

    thanks for the replys guys.

    "/ *I won't even speculate why you're converting the value you calculate to an int */"

    I thought "int" was how you defined a function!?
  4. Replies
    8
    Views
    1,189

    sorry mate i don't understand. do u mean this: ...

    sorry mate i don't understand. do u mean this:



    #include <stdio.h>
    #include <stdlib.h>
    int divide(float c);


    int main(float fraction)
  5. Replies
    8
    Views
    1,189

    really simple question

    i am trying to return the result "c" back to the main function. can anyone see why this isn't printing the correct answer the second time?

    thanks, jez



    #include <stdio.h>
    #include...
  6. Replies
    7
    Views
    1,102

    thanks i think i'm doing alright now

    thanks i think i'm doing alright now
  7. Replies
    7
    Views
    1,102

    thanks for the quick replies ;) Brafil i will...

    thanks for the quick replies ;)

    Brafil i will work on what you said but am having trouble getting the switch and case "a" part to work, it says there is a syntax problem.

    Adak, are you saying...
  8. Replies
    7
    Views
    1,102

    Really bad programming! I think i need help..

    The program that I am writing takes 6 inputs from the user which are all numbers. When all the numbers have been inputted the program asks whether the user is happy with the values. If they enter...
  9. and how might one go about this? Jez

    and how might one go about this?

    Jez
  10. is there no way to just send the value of a...

    is there no way to just send the value of a variable from one function to another?

    thanks,

    Jez
  11. yes that is what i'm trying to do! please can...

    yes that is what i'm trying to do!

    please can you show me how?
  12. Simplest question ever! Sorry i can't work it out...!- Local variables

    I am trying to ditch my global variables but i can't work out how to send a variable between functions...

    eg.




    int main(float x)
    {
    calculate();
  13. thanks for the reply matsp. couple of Qs: ...

    thanks for the reply matsp. couple of Qs:

    1.Can you elaborate on the difference between scanf and gets? What's the difference between entering aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa when...
  14. Thread: Assembly in C?

    by JezW
    Replies
    53
    Views
    10,601

    Just out of interest have you written many...

    Just out of interest have you written many programs before jcafaro?

    I have limited experience but don't understand a single line of you code. Can you explain a couple of lines for me?

    ...
  15. could i have something like this? can't get it...

    could i have something like this? can't get it work properly...



    int functiona(void)
    {

    system("cls"); /*This clears the screen and displays the data*/
    ...
  16. Thanks for the replies. Ben10, the isdigit...

    Thanks for the replies.

    Ben10, the isdigit function sounds like what i'm looking for, i'll give it a go ;)

    vart please can you elaborate on fgets, and parsing with strtol or strtod?

    Sorry...
  17. Function to check whether user has entered a number or not?

    I want to be able to check if the user has entered "two" or even gibberish as one of the number inputs.

    What i have so far checks whether each input = 0. If it does it confirms that with the user...
  18. Replies
    11
    Views
    1,111

    im not expert but...

    #include<stdio.h>

    struct employees
    {
    int employee_num;
    int age;
    char genger;
    float hourly_rate;
    }Acc_receivable[4];
Results 1 to 18 of 18