Search:

Type: Posts; User: ashesh

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,192

    Thanks Salem. It turns out that the assumption...

    Thanks Salem. It turns out that the assumption was only the problem. When I printed up to 20 digits after the decimal point, I could see the difference in the two numbers.
  2. Replies
    5
    Views
    1,192

    Oops.. sorry abt that...was in a hurry when I...

    Oops.. sorry abt that...was in a hurry when I posted that. Will take care next time and indent.

    There were no warning given by the compiler. I executed the program on Fedora 1 gcc compiler and...
  3. Replies
    5
    Views
    1,192

    program problem...

    I have this small C program and I am unable to locate the mistake. Can someone help me locate it?


    #include<stdio.h>
    int main()
    {
    float a=0.0,b=0.0;
    float a1=0.0;...
  4. Replies
    2
    Views
    2,433

    Finally could compile my program that call LAPACK...

    Finally could compile my program that call LAPACK subroutines.

    To compile a program that calls LAPACK subroutines use "-llapacl" ie.,

    g77 filename.f -llapack

    If "BLAS" subroutines are also...
  5. Replies
    2
    Views
    2,433

    Hi Salem, It was very urgent for me to know...

    Hi Salem,

    It was very urgent for me to know the answer and I couldn't think of a better place to post...

    I read that I need to use g77 prog.f -ldxml,
    but that wouldn't work...

    Could u let...
  6. Replies
    2
    Views
    2,433

    LAPACK linking...

    I have Linear Algebra PACKage, (LAPACK) installed in my computer as I had opted for it during installationof Linux RH8.0. I need to use some of the routines in this package. These routines can be...
  7. Replies
    24
    Views
    2,692

    hi Wledge yes, the program works when I use ...

    hi Wledge

    yes, the program works when I use
    using namepsace std

    But I dont know why I am using it and what it does...

    The program I wrote without namespace is working on one compiler but...
  8. Replies
    24
    Views
    2,692

    seems to be compiler problem

    I have checked running the "hello!world" program on some other linux systsm. It worked fine.

    So I think there seems to be some compiler problem... AndI think that is what the error is trying to...
  9. Replies
    24
    Views
    2,692

    use of #include resulted in the...

    use of #include <iostream> resulted in the following errors...

    [ashesh@ecl5 learnc]$ c++ file1.cpp
    file1.cpp: In function `int main()':
    file1.cpp:6: `cout' undeclared (first use this function)...
  10. Replies
    24
    Views
    2,692

    "hello! world" gives error

    I am new to both C++ as well as Linux.

    The following program is to print "hello! world"
    When I complie it saying
    c++ file1.cpp
    The follwoing errors occur... what could be the reason?...
  11. Replies
    4
    Views
    2,015

    finally solved!!!

    main() {
    int *x;
    int r,c,i,j;
    printf("\nEnter r and c ");
    scanf("%d%d",&r,&c);
    x = (int *)malloc(sizeof(int)*r*c);
    for(i=0;i<r;i++)
    for(j=0;j<c;j++)
    scanf("%d",&x[i*r+j]);...
  12. Replies
    4
    Views
    2,015

    The size of the array is not constant and changes...

    The size of the array is not constant and changes dynamically...
  13. Replies
    4
    Views
    2,015

    passing 2D array to a function

    How I can pass a 2-dimensional array to a function.

    The size of the array(m-by-n) is not the same each time I run the program...
  14. Thread: what is wrong?

    by ashesh
    Replies
    6
    Views
    1,187

    Finally the program ran when I used "Ctrl+D" to...

    Finally the program ran when I used "Ctrl+D" to represent "EOF"

    Until now I was trying "Ctrl+Z" and "Ctrl+C"

    Since EOF has a value "-1"; so this mean that "Ctrl+d" too has "-1" as its ASCII...
  15. Thread: what is wrong?

    by ashesh
    Replies
    6
    Views
    1,187

    #include main() { long nc; nc =...

    #include<stdio.h>
    main() {
    long nc;

    nc = 0;
    while(getchar()!=EOF)
    ++nc;
    printf("\n nc = %ld \n",nc);
    }
  16. Thread: what is wrong?

    by ashesh
    Replies
    6
    Views
    1,187

    I have tried replacing EFO with '\0' too, but...

    I have tried replacing EFO with '\0' too, but still does' nt work... I am using a C compiler provided by Linux RH8.0
  17. Thread: what is wrong?

    by ashesh
    Replies
    6
    Views
    1,187

    what is wrong?

    #include<stdio.h>
    main() {
    char c;
    int nc=1,nl=1;
    while((c = getchar())!=EOF) {
    if(c=='\n')
    nl++;
    else
    nc++;
    }
  18. Thread: Help!!! Urgent

    by ashesh
    Replies
    5
    Views
    1,243

    How do I print the values in the function after...

    How do I print the values in the function after passing the array?

    What is the statement for ??????? in the prog below?

    #include <stdio.h>

    void f2(int *aryp, int m, int n);

    int main() {
    ...
  19. Thread: Help!!! Urgent

    by ashesh
    Replies
    5
    Views
    1,243

    Help!!! Urgent

    How can I pass a 2D array to a func without specifing the size of the array!!!

    Say, I my size of array is not fixed and hence I cannot specify array[][4] in the declaration...so what is the...
  20. Replies
    4
    Views
    1,518

    Hi, the problem is that, i had posted my...

    Hi,

    the problem is that, i had posted my problem just before leaving the system.

    I tried to install as per the information provided by "vVv". I mounted the cd and when I searched for the...
  21. Replies
    4
    Views
    1,518

    I tried doing that as a user as well as as root....

    I tried doing that as a user as well as as root.
    But neither gcc nor cc seem to be working.
    ashesh
  22. Replies
    4
    Views
    1,518

    Well, I did ry gcc stuff...but it didnt work. I...

    Well, I did ry gcc stuff...but it didnt work. I will try to reinstall the package \. Hope that helps me :(

    Ashesh
  23. Replies
    4
    Views
    1,518

    Command not found!!!

    Hi,

    I have installed Linux Redhat 7.1 in my system and had opted for the installation of C compiler.

    After the installation, when I login as a user/root, I a not able to complier a c program,...
  24. Replies
    2
    Views
    1,295

    In addition to math.h which other *.h files will...

    In addition to math.h which other *.h files will need me to add switches like "-lm"

    ashesh
  25. Replies
    2
    Views
    1,295

    #include

    Hi,

    I am working in linux Redhat7.1, P3 system.

    Whenever I compile a program which has a math function, I use the command:

    cc filename.c -lm

    I have to do this inspite of including math.h
Results 1 to 25 of 29
Page 1 of 2 1 2