Search:

Type: Posts; User: koodoo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Hi Grumpy, Thanks a lot for your reply and...

    Hi Grumpy,

    Thanks a lot for your reply and many apologies for the extremely late reply. I tried vector <double *> but I did not get any significant speedups. And you were right, Strassen's method...
  2. efficient implementation of strassen's algorithm for matrix multiplication

    Hi,

    I am trying to implement strassen's algorithm in C++ that does matrix multiplication.
    I have implemented it but the results are not much better than that of the traditional approach of O(n3)...
  3. @brewbuck Thanks a lot! I was looking for...

    @brewbuck
    Thanks a lot! I was looking for something of this type as the solution, coz I was intitally assuming that I don't know whether the function name passed by the user exists or not.
    ...
  4. OS : Slackware 11 : kernel 2.4.33.3 Compiler :...

    OS : Slackware 11 : kernel 2.4.33.3
    Compiler : gcc (GCC) 3.4.6
  5. No, unfortunately it gives a segmentation fault :...

    No, unfortunately it gives a segmentation fault :

    This works :

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

    void hello(void)
    {
    printf("\nIn function hello: Yipppeeeeeee!!!!!!1\n");
  6. Replies
    3
    Views
    2,795

    char *str = "Hello World!"; str is a pointer...

    char *str = "Hello World!";


    str is a pointer to a string.
    str is a pointer to a char array.
    But str is a pointer to a char (not a pointer to a pointer to a char). str is of type char * .(and...
  7. Hi, I still couldn't get it to work :confused:...

    Hi,

    I still couldn't get it to work :confused:
    What I am trying is (to make my idea more clear) :

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

    void hello(void)
    {
  8. No, I fully understand pointers to functions, but...

    No, I fully understand pointers to functions, but I couldn't figure out how to do it using a string. I'll check MSDN for information on dlls, thanks
  9. wow! never thought about that! I'll study about...

    wow! never thought about that!
    I'll study about the workings of dll's and respond back.
    Maybe I'll be able to write an example contradicting myself :)
  10. Replies
    8
    Views
    11,697

    I went to the link...

    I went to the link http://c-faq.com/decl/recurfuncp.html and tried to understand it.
    I have a few questions:


    int (*funcptr)();
    states that funcptr is a pointer to a function that takes no...
  11. passing the name of a function as command line argument.

    Hi,

    Suppose I have a lot many functions in a library, I've included all the necessary header files and have linked with all the necessary libraries. Now what I want is that the user specifies a...
  12. Replies
    4
    Views
    2,906

    this may help you #include int...

    this may help you


    #include <stdio.h>
    int main()
    {
    long i = 0x88;
    printf("\nHexadecimal = &#37;x\tInteger= %d\n", i, i);
    return 0;
    }
  13. Replies
    11
    Views
    24,471

    do you mean multiple inclusions of header files?...

    do you mean multiple inclusions of header files?
    they'll give you that "re-declarations" error that you mentioned.

    To prevent a file from being included multiple no. of times, you can use the...
  14. Replies
    6
    Views
    10,660

    Thanks, I'm still very new to understanding the...

    Thanks, I'm still very new to understanding the disassembled output. But I'll study and try to understand it.
    Thanks for all the help
  15. Replies
    6
    Views
    10,660

    I read it and I even noticed that stackbase...

    I read it and I even noticed that stackbase wasn't passed by value. But still made a mistake. What I wanted was something like this.



    #include <stdio.h>
    #include <stddef.h>
    ptrdiff_t testfunc...
  16. Replies
    6
    Views
    10,660

    I searched in this forum and found this thread...

    I searched in this forum and found this thread http://cboard.cprogramming.com/showthread.php?t=81300&highlight=stack+size+function
    I then wrote the following code. It compiles/executes without...
  17. Replies
    18
    Views
    50,367

    ohh...thanks, Then I think you also need...

    ohh...thanks,

    Then I think you also need certain number of posts if you wish to add animated graphics in your avatar. Because when I tried to it didn't allow me
  18. Replies
    18
    Views
    50,367

    yeah, thanks again. I don't know why I am in...

    yeah, thanks again.
    I don't know why I am in such a hurry and messing up things.
    In the discussion from where I got this code, the first error pointed out was that of using void main() which of...
  19. Replies
    6
    Views
    10,660

    Determine a function's stack size.

    Hi,

    Once a function is called it's parameters, return address etc, are pushed onto the stack, Can we determine programatically how much stack space a function uses? i.e. by wiring some code in the...
  20. Replies
    18
    Views
    50,367

    I'll remember that, the next I have such a query....

    I'll remember that, the next I have such a query.


    Thanks for that too, actually I'm used to some other forums where that kinda thing works :)



    I think it will :) thanks for the help. I...
  21. Replies
    18
    Views
    50,367

    Hi, I was searching for the same problem, and...

    Hi,
    I was searching for the same problem, and this thread proved to be very helpful. Thanks to everyone.
    I have just one more query, how can I find whether the computer is little endian or big...
  22. Replies
    15
    Views
    4,653

    Hi, Thank You all very much. This thread...

    Hi,

    Thank You all very much. This thread helped clear a lot of my doubts. :)
  23. Replies
    15
    Views
    4,653

    k, I fully agree that they are awfull thing to...

    k, I fully agree that they are awfull thing to do.
    But doesn't the second scenario in a way contradict the first one as far as C is concerned ?.
    Shouldn't there be more consistency in the way C...
  24. Replies
    15
    Views
    4,653

    Thank You all, that solved it completely. But now...

    Thank You all, that solved it completely. But now I have one more question. I tried the following code :


    #include <stdio.h>
    int main()
    {
    const int a=10;
    int *b = &a;
    *b=20;
    printf("%d\n",...
  25. Replies
    15
    Views
    4,653

    segfault with gcc, but not with TC

    Consider the following program.


    #include <stdio.h>
    int main()
    {
    char *a = "Hello";
    a[2] = 'a';
    return 0;
    }
Results 1 to 25 of 28
Page 1 of 2 1 2