- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
can you not use the gets(str) function in the main function? thanks for any help. |
|
When I try to scan in the selection the program will not then let me scan in the string to encrypt. If i take the selection function out then the program does exactly what it is suppose to do. Any help would be great. Thanks alot Ryan [code] # include<stdio.h> … |
|
I need to write a function that opens a DAT file and calculates the average number of characters per line. Heres what I have so far... [code] # include <stdio.h> int main (void) { FILE *fp; int i; int counter; char ch; fp =fopen("TEST.DAT", "r"); for (i = 1; i … |
|
I am getting a -NaN message and I don't understand why? The program so far compiles okay. But prints "the value of lat1 is -NaN." Any help would be greatly appreciated. # include<stdio.h> # include<math.h> float get_lat1(); int main (void) { float lat1; get_lat1(); printf("the value of lat1 is %f … |