User Profile

Collapse

Profile Sidebar

Collapse
madhankrish
madhankrish
Last Activity: Jan 26 '07, 09:26 AM
Joined: Dec 14 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • madhankrish
    replied to Help with data type
    in C
    wow horace!
    you are a C wizard, i say!
    it worked!
    you seem to help me out everytime..
    thanks so much

    madhankrish
    See more | Go to post

    Leave a comment:


  • madhankrish
    started a topic Help with data type
    in C

    Help with data type

    Hello all,
    I am supposed to multiply 10 float values. (like 0.002, 0.004, 0.006, etc...)
    Which data type will best suit the product of these float values?
    I used 'long double' but I am still getting 0 as the product.
    (I have initialised the product as 1. So, no problem with that.)
    Can someone suggest a suitable data type which can handle longer decimal places. Also pls mention the representation to be used ie.%f...
    See more | Go to post

  • madhankrish
    replied to Running programs in a batch
    in C
    thankyou
    i will try it out

    madhankrish
    See more | Go to post

    Leave a comment:


  • madhankrish
    started a topic Running programs in a batch
    in C

    Running programs in a batch

    hello all,
    i have around 200 .csv files.
    i have written a code which opens one file, sorts the data in the file and gives the required output.
    i have to do this for all the 200 files.
    should i change the file name in the fopen statement everytime and run the program 200 times?
    or is it possible to analyse all the files at a time (in a batch)
    any help will be highly appreciated

    thanks
    See more | Go to post

  • madhankrish
    started a topic data from a csv file
    in C

    data from a csv file

    hello all,
    i've to write a C code to read data from an excel sheet (in CSV format) into a 2 dimensional array.
    the csv file has 100 columns and 5000 rows.
    but i am supposed to read in only 19 of these 100 columns.
    the 19 columns which i require are D, E, P, W, BC, BD, BO, CU, CV, etc.
    so you can see that the required columns do not occur together in the original excel file.
    can someone help me out?
    ...
    See more | Go to post

  • madhankrish
    replied to String Comparison
    in C
    Thankyou so much Prakash.
    You seem to help me out everytime :-)

    Regards,
    Madhan
    See more | Go to post

    Leave a comment:


  • madhankrish
    replied to String Comparison
    in C
    thankyou prakash.
    its working fine.
    but in my case, i have to read the first line of a file as str1 and the second line of the same file as str2.
    that is exactly what i wanted to know.
    hope u could help me out.
    thanks again.

    madhan
    See more | Go to post

    Leave a comment:


  • madhankrish
    started a topic String Comparison
    in C

    String Comparison

    hello all,
    i'm writing code in c.
    can someone help me out with this problem?
    i have to read the first line of a text file into string1.
    the second line has to be read into string2.
    then strings 1 and 2 have to be compared character by character..
    and the number of differences between the 2 strings has to be printed.
    can someone give me the code?
    thanks

    madhan
    See more | Go to post

  • madhankrish
    replied to Reading Columns From A File
    in C
    thanks prakash..
    it worked!
    thankyou again
    See more | Go to post

    Leave a comment:


  • madhankrish
    replied to Reading Columns From A File
    in C
    the program has to read in 6 columns from an excel sheet..
    each column has 2000 elements
    each column has to be sorted in the ascending order...
    then, the location of a particular value in each sorted column has to be found and printed.
    i'll be very grateful if u could help..
    thanks
    See more | Go to post

    Leave a comment:


  • madhankrish
    replied to Reading Columns From A File
    in C
    thanks for ur reply..
    but i'm not able to apply tat to my problem..
    will u b able to write the code for me?? if tats not a trouble..
    below is wat i've done so far...
    its printing the output for the first column alone...
    after that i'm getting a 'segmentation fault'..


    #include<stdio. h>
    #include<stdlib .h>
    main()
    {
    int i,j,x,y,k;
    int l,m;...
    See more | Go to post

    Leave a comment:


  • madhankrish
    replied to Reading Columns From A File
    in C
    ...and is the function applicable even for FLOAT values?
    cos those are float values which i have to read in and process...
    thanks
    See more | Go to post

    Leave a comment:


  • madhankrish
    replied to Reading Columns From A File
    in C
    thanks for ur reply...
    can u give me the syntax of the function...
    an example would be easier to understand...
    thanks a lot
    See more | Go to post

    Leave a comment:


  • madhankrish
    started a topic Reading Columns From A File
    in C

    Reading Columns From A File

    hi all,
    can someone give me the C code to read individual columns of files into separate arrays?
    i have a .CSV file which has 6 columns and 2000 rows...
    i have to read each of the 6 columns into a separate single dimensional array.
    my program is working for one column...
    but i dont know how to shift the control to the next column of the file to start reading the elements.
    some1 pls help me out..its urgent....
    See more | Go to post

  • madhankrish
    replied to reading data from a .CSV file
    in C
    following is the code i've written...
    file1.csv has elements arranged in 2000 rows and 6 columns.
    i've to read all these elements in a 2-dimensional array.
    i've to sort the elements of each column in ascending order.
    then i've to find the location of a particular value in each sorted column.
    there are 6 values i've to look for (ie. one value per column)
    i'm not sure if the data is being read into the array.
    ...
    See more | Go to post

    Leave a comment:


  • madhankrish
    started a topic reading data from a .CSV file
    in C

    reading data from a .CSV file

    hi all,
    i'm new to c programming...
    i'll discuss my task in brief...
    i've been given a .csv file... which contains 6 columns and 2000 rows of numeric data...
    i've to read this data into a 2x2 array..
    then i've to sort each column in the ascending order..
    finally, i've to locate a particular value in each sorted column...
    can someone help me with this?? pls give me to code...
    thanks in advan...
    See more | Go to post
No activity results to display
Show More
Working...