Search:

Type: Posts; User: .ZG.

Search: Search took 0.01 seconds.

  1. Thread: fscanf and EOF

    by .ZG.
    Replies
    3
    Views
    8,473

    Thanks you so so much. Being trying all weekend...

    Thanks you so so much. Being trying all weekend due to my lack of knowledge of return values of fscanf. So fscanf's return value is the amount of elements its reading in?

    .ZG.
  2. Thread: fscanf and EOF

    by .ZG.
    Replies
    3
    Views
    8,473

    fscanf and EOF

    I have written a function that takes input from a text file called "fridge.txt" with its contents being:

    milk carton 4 2 .5
    bread loaf 2 2 1
    VB slab 20 40 10

    I can read it into an array fine,...
  3. Thread: Newbie question

    by .ZG.
    Replies
    11
    Views
    1,567

    I assume your using the stdafx.h header file when...

    I assume your using the stdafx.h header file when your compiling your programs in VC++. You can add a line of code that will wait until you press a key. add this line of code:



    ...
  4. Thread: N Choose R

    by .ZG.
    Replies
    7
    Views
    4,045

    Thanks for the help. I can't do it any other way...

    Thanks for the help. I can't do it any other way than what I have in the previous code. I have to calculate the whole thing iteratively, then recursively (which works fine) and now using the formula....
  5. Thread: N Choose R

    by .ZG.
    Replies
    7
    Views
    4,045

    N Choose R

    Im trying to calculate N Choose R by multiplication but it returns some crazy value like -1#inde. Its for a prac. I have already done it iteratively and recursively, and need to do it by...
Results 1 to 5 of 5