Search:

Type: Posts; User: ain

Search: Search took 0.00 seconds.

  1. Thread: totally lost.

    by ain
    Replies
    12
    Views
    1,787

    #include int main() { int m, n,...

    #include<stdio.h>

    int main()
    {
    int m, n, k, sum=0;

    FILE *inp;

    inp = fopen ("data_1.txt", "r");
  2. Thread: totally lost.

    by ain
    Replies
    12
    Views
    1,787

    thank.sorry but i dont understand this line "FILE...

    thank.sorry but i dont understand this line "FILE *input_file"..this is a pointer right?input_file is what?is it my file's name?
  3. Thread: totally lost.

    by ain
    Replies
    12
    Views
    1,787

    oh YES!i do it wrong.i think i dont really...

    oh YES!i do it wrong.i think i dont really understand the question. i really need to stay awake all night as i have to submit this tomorrow. thank you so much for telling me my mistake. i have to...
  4. Thread: totally lost.

    by ain
    Replies
    12
    Views
    1,787

    oh thank you for telling me that.this is my 1...

    oh thank you for telling me that.this is my 1 post actually.

    so what do you mean is i should change sum/k to sum%k?i already compile the code and i dont find any incorrect result.

    fopen,...
  5. Thread: totally lost.

    by ain
    Replies
    12
    Views
    1,787

    so do i need to make a new function to include...

    so do i need to make a new function to include all this code? and {fopen("INPUT DATA FILE", "r")}what is the meaning of INPUT DATA FILE?is it where should i put my file's name?for example if my file...
  6. Thread: totally lost.

    by ain
    Replies
    12
    Views
    1,787

    totally lost.

    hi there.so my assignment is to write a program that asks the user to supply 3 integers k,m,n with k being greater than 1.and the program should compute all integers between m and n that are...
  7. Replies
    16
    Views
    40,915

    i know this will be a late reply but i need to...

    i know this will be a late reply but i need to ask what is the first number enter is greater than the first one?can this code proceed and give the right answer? because i have try before and it...
Results 1 to 7 of 8