Search:

Type: Posts; User: Engineer

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds; generated 6 minute(s) ago.

  1. Replies
    3
    Views
    1,098

    if i understand the question correctly, you want...

    if i understand the question correctly, you want to scan the user's input, and then create and open the file using the input you just scanned.

    so the logic of your program should ask the user for...
  2. I would recommend double checking your...

    I would recommend double checking your preferences and the type of object you are trying to build. I am pretty sure C++ Builder will have an option to generate an executable file, you just have to...
  3. Replies
    11
    Views
    1,981

    Your main.c file has to include all the headers...

    Your main.c file has to include all the headers of the functions you are trying to use.
  4. I don't really have the time to debug your code,...

    I don't really have the time to debug your code, but after looking at it I can say the following:

    1) You are blocking all the signals except SIGALRM:

    sigemptyset(&sigset);
    sigaddset(&sigset,...
  5. the -lm option tells gcc to link (that's what the...

    the -lm option tells gcc to link (that's what the 'l' stands for) your code with the "math" (this what the math library is called) shared library. It's almost like DLL's in windows...
  6. Thread: Cookies

    by Engineer
    Replies
    20
    Views
    4,462

    Poll: Chocolate Chip cookies.... Uhmmm, Yammmy....

    Chocolate Chip cookies.... Uhmmm, Yammmy....
  7. Thread: using free()

    by Engineer
    Replies
    17
    Views
    2,839

    Wow, I am impressed!!! All this because of...

    Wow, I am impressed!!!

    All this because of something I said...
  8. Replies
    3
    Views
    1,386

    If I understand your problem right, you are...

    If I understand your problem right, you are trying to concatenate non-string variables to a string. If this is correct, I would suggest using sprintf(). It works exactly as printf(), with the...
  9. Replies
    3
    Views
    1,991

    Thought of something to add: Just think of the...

    Thought of something to add:

    Just think of the system() function as you being in a command prompt window or a system terminal.

    In Unix for example you would type "ls -al" to get a long listing...
  10. Replies
    3
    Views
    1,991

    You can pass whatever system command you want...

    You can pass whatever system command you want with the system() function.

    As a parameter you pass it the command:

    system("cd my_directory"); // will actually execute that command in the system
  11. Replies
    3
    Views
    1,863

    Ooops, my bad! The structure name is not...

    Ooops, my bad!

    The structure name is not "time_t", it's "tm".
  12. Replies
    1
    Views
    1,122

    In order to get the full picture you need to have...

    In order to get the full picture you need to have some networking experience. I am assuming that you now what TCP/IP is and how it works.

    Let's take Nortel's IP phone for example: You pick up...
  13. Replies
    3
    Views
    1,863

    I agree with Agrajag. But if you need to get...

    I agree with Agrajag. But if you need to get started on this then you should probably start by looking into what functions like time(), gmtime() and other "time" functions do. And also on how to...
  14. Replies
    3
    Views
    1,420

    If you don't want to use linked list a cheap and...

    If you don't want to use linked list a cheap and dirty solution would be to create an array of same type of structures which is bigger by one than the original, add the new structure to the new array...
  15. in that case I would suggest google.com and the...

    in that case I would suggest google.com and the frase "C++ tutorials" in the search engine...
  16. Replies
    1
    Views
    10,407

    TCP TIME_WAIT state

    Just though to share this with those of you who are into network programming:

    According to every network programming resource I have seen TIME_WAIT state after closing a TCP connection is a normal...
  17. One question comes to mind - did you think of...

    One question comes to mind - did you think of hiring a private tutor? Explaining all this to someone who either has a problem with what the book says, or has a problem even reading a book would take...
  18. Thread: using free()

    by Engineer
    Replies
    17
    Views
    2,839

    I beg to differ... malloc() only takes the...

    I beg to differ...

    malloc() only takes the length of the memory to allocate:

    malloc(sizeof(int));

    when calloc() takes the number of elements to allocate and the length of individual element:...
  19. Replies
    6
    Views
    1,631

    NSA-enhanced Linux

    Just thought it might be intersting for some:

    NSA (National Security Agency) distributes a modified version of RedHat Linux with a lot of security enhancements. It is called SELinux and it can be...
  20. Replies
    3
    Views
    1,273

    Just remembered, if you don't have to use MS...

    Just remembered, if you don't have to use MS Access, you can use MySQL instead. It is freely available on the net, with source code, free API guides and a lot of examples on how to use. And I also...
  21. Replies
    3
    Views
    1,273

    Or you could try looking up some Access API...

    Or you could try looking up some Access API functions on the internet or maybe some examples to work with Access using SQL. You will need to know SQL for sure. Statements like INSERT and UPDATE...
  22. Replies
    4
    Views
    1,141

    I am not too sure I understood your question (you...

    I am not too sure I understood your question (you see, smoking too much weed can do this to a person) but here goes...

    ex.1
    int x = 0; // the value of x is now equal to 0

    x = 4; // value of x...
  23. Thread: using free()

    by Engineer
    Replies
    17
    Views
    2,839

    Don't mean to be rude here, but why are you even...

    Don't mean to be rude here, but why are you even doing it this way? Why not use calloc() to allocate a multi-dimensional array?

    But speaking of your problem:

    I am pretty sure that what is...
  24. Replies
    2
    Views
    1,026

    You can define anything you want on the borland...

    You can define anything you want on the borland bcc32 compiler command line using the -D flag.

    Example:

    Source:

    #ifdef __DEBUG__
    // some code
    #endif
  25. What language are using? Doesn't look like C nor...

    What language are using? Doesn't look like C nor C++ to me....
Results 1 to 25 of 125
Page 1 of 5 1 2 3 4