User Profile

Collapse

Profile Sidebar

Collapse
balambur
balambur
Last Activity: Apr 14 '10, 07:58 PM
Joined: Apr 9 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • balambur
    replied to divide first column from a txt file
    in C
    #include <stdio.h>
    #include <conio.h>
    void main(void)
    {
    FILE *pointer_fisier ;
    FILE *pointer_fisier 2;
    int t,x,y,z,c;

    pointer_fisier2 =fopen("datepou t.txt","w");
    if ((pointer_fisie r = fopen("peter6.t xt", "r")) == NULL)
    printf("Error opening peter6.txt for input\n");
    do{
    fscanf(pointer_ fisier,...
    See more | Go to post

    Leave a comment:


  • balambur
    started a topic divide first column from a txt file
    in C

    divide first column from a txt file

    hy guys,
    I am a beginner in c and from 3 days I have a big question...
    I have a file containing the folowing data:
    5971 -44 976 -23
    5981 -53 980 -23
    5991 -50 978 -21
    6001 -56 975 -21
    6011 -58 971 -21
    6021 -52 981 -24
    6031 -49 974 -22
    6041 -50 981 -31
    6051 -47 978 -37
    6061 -42 978 -38
    6071 -37 977 -42
    I need to divide the first column by 600 to convert...
    See more | Go to post
No activity results to display
Show More
Working...