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...
Type: Posts; User: koodoo
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...
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)...
@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.
...
OS : Slackware 11 : kernel 2.4.33.3
Compiler : gcc (GCC) 3.4.6
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");
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...
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)
{
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
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 :)
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...
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...
this may help you
#include <stdio.h>
int main()
{
long i = 0x88;
printf("\nHexadecimal = %x\tInteger= %d\n", i, i);
return 0;
}
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...
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
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...
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...
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
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...
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...
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...
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...
Hi,
Thank You all very much. This thread helped clear a lot of my doubts. :)
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...
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",...
Consider the following program.
#include <stdio.h>
int main()
{
char *a = "Hello";
a[2] = 'a';
return 0;
}