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...
Type: Posts; User: Programmer3922
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...
Awesome, worked great, thanks a lot.
I want to pull out the sixth slot in this set of numbers, which is the number 7 as seen on the screen.
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?
Is it possible to return an array?
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...
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)
...
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...
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...
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...
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>
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...