User Profile

Collapse

Profile Sidebar

Collapse
Prisms
Prisms
Last Activity: Apr 13 '11, 12:01 AM
Joined: May 9 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Prisms
    started a topic Float Point Exception trouble
    in C

    Float Point Exception trouble

    For Some reason when I compile the screen says "Floating point exception". Here is my code was wondering if anyone could lend me a hand.


    Code:
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    
    char file[100];
    int total = 0;
    
    struct student
    {
    	int SID;
    	int quiz[5];
    } students[40], highscore, lowscore, avg;
    ...
    See more | Go to post

  • Prisms
    replied to How to read a text file into an array
    in C
    Thanks I'll give it a try...
    See more | Go to post

    Leave a comment:


  • Prisms
    started a topic How to read a text file into an array
    in C

    How to read a text file into an array

    I am trying to read a text file into an array and I'm having some trouble doing so. here is the code that I have so far. Any help would be much appreciated.

    Code:
    #include <stdio.h>
    #include <ctype.h>
    #define MAX_ROW 15
    #define MAX_COL 6
    
    
    int main()
    {
    	FILE* numbers;
    	int x;
    	int ary[MAX_ROW][MAX_COL];
    	
    	
    	numbers = fopen("extradata.txt",
    ...
    See more | Go to post
No activity results to display
Show More
Working...