Search:

Type: Posts; User: spiit231

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,384

    problem with structure pointers

    Hi,

    I am getting Segmentation fault error for code below. Please tell me how to remove it.



    #include<stdio.h>
    #include<stdlib.h>
  2. Replies
    4
    Views
    3,551

    can you please explain more? I can not understand...

    can you please explain more? I can not understand what 'touch' means.
  3. Replies
    4
    Views
    3,551

    Eclipse problem

    Hi,

    Today i have installed eclipse v3.3.2 + CDT on my 32-bit windows XP machine. While testing a simple "hello world" i got the the following error



    my makefile is as below
  4. A question related to dynamic memory allocation

    Hi,

    I have a really basic question about dynamic memory allocation. Is it necessary to free memory allocated to matrix temp (in function transpose) ?



    #include<stdio.h>
    #include<stdlib.h>...
  5. Replies
    18
    Views
    9,996

    expl() also not working. Suppose i want to create...

    expl() also not working. Suppose i want to create a new data type that can handle large floating values. Since i have no idea about this area...can anybody lighten me up?

    Another thing, what is...
  6. Replies
    18
    Views
    9,996

    Is it correct? #include...

    Is it correct?


    #include<stdio.h>
    #include<math.h>

    #define z 8113.48

    int main(){
    long double x;
  7. Replies
    18
    Views
    9,996

    I think this is due to exp() function which is...

    I think this is due to exp() function which is unable to handle large float value. Consider the code below:



    #include<stdio.h>
    #include<math.h>

    #define z 8113.48

    main(){
  8. Replies
    18
    Views
    9,996

    Thanks for the suggestion. Sorry for my silly...

    Thanks for the suggestion.

    Sorry for my silly mistakes. I have given the comments for describing the functions for this thread.
    Basically I dont know where the problem is. Borland displays a...
  9. Replies
    18
    Views
    9,996

    exp: OVERFLOW error

    Hi all,
    I am using Borland C++ 4.5 on 32-bit windows machine. I am getting "exp: OVERFLOW error" for my code. can anybody tell me how to deal with it.

    I am not posting my



    struct MATRIX {...
  10. Replies
    6
    Views
    10,226

    Thanks for your comment. I need to check missed...

    Thanks for your comment. I need to check missed entry in the data file. so i keep counting the columns in each row. Why I need to remove '\n' first from the filename?
  11. Replies
    6
    Views
    10,226

    Thanks hk_mp5kpdw. I got my answer. here is the...

    Thanks hk_mp5kpdw. I got my answer. here is the final code. Please tell me if there is any scope of improvements.



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    int main() {
    ...
  12. Replies
    6
    Views
    10,226

    Column count from data file

    Hi all,

    I have a dat file called customer.dat with this content:

    0 1.1 2 -0.3 4 ...
    5 6 7 8 9 ...
    10.1 11 12 13 99 ...
    ...
    ...
  13. Replies
    4
    Views
    2,287

    I'm extremely sorry. I have forgot to post my...

    I'm extremely sorry. I have forgot to post my code. Here it is...



    #include <stdio.h>
    #include <stdlib.h>

    struct matrix
    {
    int nRow;
  14. Replies
    4
    Views
    2,287

    Need simple code for large file handling

    Hi all,

    I need a simple code for storing numeric data into a 2D matrix (consider dimensions are unknown) from a data-numeric format file.

    The file is uploaded here...
    ...
  15. Oh... i am sorry. Actually I used fgets but...

    Oh... i am sorry. Actually I used fgets but somehow during i changed it to gets. But my problem remains in both cases.
  16. Need Help: Storing numeric data into matrix from a data file

    Hi all,

    I need your help regarding huge file handling. Suppose i want to read a file and store numeric data into 2D matrix. The file i am using is attached (a .dat file converted into .txt for...
Results 1 to 16 of 16