Search:

Type: Posts; User: Programmer3922

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,258

    Using Text Files and Functions

    Here is my situation:
    I have a text file with one line that contains:
    1;2;3;4;5;6;7;8;9;10

    Now I have a function that deals with each number separately. So I have myFunctionOne that deals with...
  2. Replies
    4
    Views
    1,151

    Awesome, worked great, thanks a lot.

    Awesome, worked great, thanks a lot.
  3. Replies
    4
    Views
    1,151

    I want to pull out the sixth slot in this set of...

    I want to pull out the sixth slot in this set of numbers, which is the number 7 as seen on the screen.
  4. Replies
    4
    Views
    1,151

    Using fscanf

    Ok I have a text file that looks like the following, it only has one line.

    2;3;4;5;6;7;8;9;10

    Now when I go to use the fscanf function, what is the proper syntax to pull out the number 7 alone?
  5. Is it possible to return an array?

    Is it possible to return an array?
  6. Returning Multiple Values from a Function

    In my main I call a function to compute some things. I send in the raw data to the function.

    My function then computes, averages, standard deviations etc.

    I then write my return statement in...
  7. Replies
    5
    Views
    1,007

    That is what I am unsure about is what the proper...

    That is what I am unsure about is what the proper sytnax for sending and recieving files to functions are.

    I mean I know how it works with int, float, etc..

    Its just : void myFunction(int a)
    ...
  8. Replies
    5
    Views
    1,007

    What would be the right syntax if I were to...

    What would be the right syntax if I were to declare it in the main and send it in.

    Here is my guess:

    Function Declaration: void myFunction(FILE myFile)

    File declaration in main: FILE *file...
  9. Replies
    5
    Views
    1,007

    Writing to File Using a Function

    I globally declared a file. Then in my main I opened the file, then called a function to write, and then closed the file in my main again. When I am in my function, do I need to send it the file, or...
  10. Replies
    2
    Views
    2,327

    Printing Lines to .txt File

    What I have done is basically laid out a 10x10 table filled with zeroes in every position. Now what I want to do is have the user input a line number, and then fill in the 10 columns with actual...
  11. Problem Using Strings in IF statements

    When I run the code, put it 'yes', the code does not print 'Hi'. How can this be fixed?




    #include <stdio.h>
    #include <math.h>
    #include <string.h>
    #include <ctype.h>
  12. How to build a baseball stats database

    My goal is to build a baseball statics database. A tree schematic would be like:
    Database branch to Team branch to Game # branch to Player brach to Each individual statistic. I want to be able to...
Results 1 to 12 of 12