Search:

Type: Posts; User: Moony

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Problem in compiling targa2.c: error: field `ip' has incomplete type..

    Hello,

    I have downloaded targa2.c and tried to compile it with gcc compiler under cygwin (CYGWIN_NT-5.1). I checked all the header files, and everything is fine.

    targa2.c can be found here:...
  2. Replies
    6
    Views
    2,927

    Well, I was looking for a way enabling me to...

    Well, I was looking for a way enabling me to execute .bat file when clicking on an image, i.e. appending .bat file underneath the image. I thought that I can do this using C programming, since I did...
  3. Replies
    6
    Views
    2,927

    Executing DOS commands from inside an image

    Hello all,

    Can I have DOS commands inside an image file, perhaps using C programming?
    Whenever the image is opened the DOS commands are executed.

    FYI: I know that I can use system function to...
  4. Replies
    1
    Views
    1,718

    binary combination.

    Hello,

    I was working on a problem for generating the binary combination of x digits, as input. E.g. for x = 2, I have 2^2-1:

    0--> 00
    1--> 01
    2--> 10
    3--> 11

    My program solves this by...
  5. Replies
    5
    Views
    1,147

    You are right, there should be no number with...

    You are right, there should be no number with leftmost zeros, thus, there would be only one solution. Thanks all.
  6. Replies
    5
    Views
    1,147

    Algorithm for: 100234190 = 227

    Hello,

    Few days ago I was thinking about finding algorithm for the following problem, and I got some ideas, but still not covering all the cases:

    The algorithm takes as input:

    100234190 =...
  7. Replies
    3
    Views
    3,795

    Oh, I got where is the mistake. Thanks Salem.

    Oh, I got where is the mistake.
    Thanks Salem.
  8. Replies
    3
    Views
    3,795

    Yeah, I run it with 2 args: $ ./mul.exe 2 3 ...

    Yeah, I run it with 2 args:

    $ ./mul.exe 2 3

    As I changed the printf() to gmp_printf(), but with no changes
  9. Replies
    3
    Views
    3,795

    mpz_mul(r, b, x);

    Hi all,

    I have this code:


    #include <stdio.h>
    #include <gmp.h>


    int main (int argc, char* argv[])
  10. Replies
    9
    Views
    2,903

    What do you mean by very different?

    What do you mean by very different?
  11. Replies
    7
    Views
    1,548

    Which is more optimized?

    Hi,


    increasing or decreasing for loop?


    i = i+1
    or
    i++;
    or
  12. Thread: JAva compiler

    by Moony
    Replies
    4
    Views
    1,428

    I think that the best and most quick responses...

    I think that the best and most quick responses would be found in:
    http://forum.java.sun.com/forum.jspa?forumID=31
  13. Why including \n in : printf("Enter your name:...

    Why including \n in : printf("Enter your name: \n") did not flush the output?
  14. That solved the issue. But, using gcc ver. 3.4.4...

    That solved the issue. But, using gcc ver. 3.4.4 it compiles fine without fflush(). Can you give any reason of why and what is the cause of this?
  15. Eclipse CDT: Problem in running simple C program

    Hi all,

    I just installed CDT tool for C programming under Eclipse, but when compiling the first simple program:


    #include<stdio.h>

    int main(){

    char name[30];
  16. Thread: error

    by Moony
    Replies
    6
    Views
    1,722

    It should be int main() since it returned 0,...

    It should be int main() since it returned 0, right?
  17. Replies
    2
    Views
    4,938

    Eclipse is good for students. I used to program C...

    Eclipse is good for students. I used to program C in any editor under Cygwin like vim, but for me, Eclipse works great in notifing any writting-error e.g fpoen() will be notified directly by eclipse...
  18. Replies
    2
    Views
    4,938

    Configuring Eclipse for C programming

    Hi all,

    I want to configure Eclipse for C programming. I searched the net and found CDT for such purpose. But, I don't know which one is the best for the version that I have. Also, I don't know...
  19. Thread: STRCAT problem

    by Moony
    Replies
    9
    Views
    2,745

    try ip without *.

    try ip without *.
  20. Thread: STRCAT problem

    by Moony
    Replies
    9
    Views
    2,745

    I think the problem with *ip here is the mistake

    I think the problem with *ip here is the mistake
  21. Thread: MIDI programming

    by Moony
    Replies
    4
    Views
    1,200

    Is this a sarcastic sentence!! Please be more...

    Is this a sarcastic sentence!! Please be more clear if there is any libraries (for playing/creating/manipulating..etc)
  22. Thread: MIDI programming

    by Moony
    Replies
    4
    Views
    1,200

    MIDI programming

    Hi all,

    I searched the net for any MIDI libraries and I did not find any useful results :( Does C language support audio/midi programming?
  23. Replies
    1
    Views
    1,077

    Process vs Thread

    Hi,

    I read that C programming language doesn't support mutlithread. Are there any libraries implemented for such purpose? And, what is the difference between process and thread?
  24. Replies
    5
    Views
    2,095

    Can anybody provide me with some examples of...

    Can anybody provide me with some examples of using:

    1. SHGetKnownFolderIDList
    2. UnDeleteFile

    I have read the documentation and I think for any newbie in win-programming it will not be enough.
  25. Thread: Appending "

    by Moony
    Replies
    15
    Views
    2,096

    okay, how this can be done for "win" ? The second...

    okay, how this can be done for "win" ? The second " can be added using strcat, but what about the first " ?
Results 1 to 25 of 130
Page 1 of 6 1 2 3 4