Search:

Type: Posts; User: zombiezparadize

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    20,345

    yeah and I had stupidly ignored exactly that. ...

    yeah and I had stupidly ignored exactly that.

    d = tmp = new data;
    :)


    And I never claimed to know C++ well...I have always written code in C.
    I have been introducing myself to C++ lately. ...
  2. Replies
    17
    Views
    20,345

    #ifdef C #include struct data { ...

    #ifdef C
    #include <stdio.h>

    struct data {
    char text[1024];
    data *next;
    };

    data *readData(FILE *in)
    {
  3. The "do some default" or "do nothing" was exactly...

    The "do some default" or "do nothing" was exactly what was missing from the code!
    Which means when there are no arguments passed to the program the code will merrily
    throw SIGSEGV as it is going...
  4. On going through the post again, yeah I agree it...

    On going through the post again, yeah I agree it is asking a pretty vague or rather a question that is too obvious.
    I was more concerned about the the comparison.
    If the programmer were to write...
  5. Variable Arguments through Command Line

    I was called for a Code review and I saw some code as below:

    if(argc!=1)
    Whoa!


    To this I got the response from the programmer saying:


    Now my question is, what would be the better way...
  6. Replies
    10
    Views
    2,749

    That's exactly the question I want to ask!

    That's exactly the question I want to ask!
  7. Replies
    12
    Views
    4,103

    That's what the description on the man page says....

    That's what the description on the man page says.

    And the Usage says:


    I guess that makes it clear to you why your code is dumping core.
    I'd recommend writing a signal handler to work with...
  8. Replies
    16
    Views
    3,634

    Did you get a fix for that? I cant see a reason...

    Did you get a fix for that? I cant see a reason why that should happen!
    Initially looking at the datatype char I thought its the structure boundary thingy which says that a structure should end on...
  9. Replies
    8
    Views
    1,430

    Of course you CANT! You have not allocated any...

    Of course you CANT!
    You have not allocated any space for the pointer f!!!
  10. Replies
    4
    Views
    2,031

    I have entered comments in your code! Go through...

    I have entered comments in your code! Go through them.
  11. Replies
    3
    Views
    1,488

    yeah, I too have known that, but someone had just...

    yeah, I too have known that, but someone had just confused me... :D
    Thanks! ;)
  12. Replies
    3
    Views
    1,488

    Random Server Port

    Hi,

    I am building an examination server.
    Will it be a wise idea to let the server choose a random port and listen on it rather than using a fixed port? And if the requirement is such, how would a...
  13. Replies
    5
    Views
    999

    Try Andrew S. Tanenbaum's book. Or may be even...

    Try Andrew S. Tanenbaum's book.
    Or may be even Introduction to Algorithms by Cormen.
  14. Replies
    10
    Views
    1,733

    Fixed! Yeah sorry I was an idiot not to look at...

    Fixed!
    Yeah sorry I was an idiot not to look at the correct settings for the Keyboard.
    Mine was set to English (International) however, we use the Engslish (USA) settings in India and that's what...
  15. Replies
    10
    Views
    1,733

    I have checked the Keyboard settings and I have...

    I have checked the Keyboard settings and I have my region set to India and have the keyboard set to Dell Inspiron Laptop (yeah I was pleased to see that option).
  16. Replies
    10
    Views
    1,733

    Problem using " and '

    Hi,
    If this is completely out of contest, the moderators may delete it without warnings.

    I have facing this strange problem. I have a Dell Inspiron 1520 laptop and I use Fedora Core 8 via VMWare...
  17. Replies
    7
    Views
    1,722

    Getting answers from us wont really help if you...

    Getting answers from us wont really help if you dont try to find solutions yourself.
    Try them out first and then post the problems you face.
  18. Replies
    9
    Views
    1,396

    I have personally worked on GUIs using C/C++...

    I have personally worked on GUIs using C/C++ supporting multiple platforms.
    The examples being, as mentioned in the previous post, Gtkmm, Qt etc.
    I have worked on these two and I know they support...
  19. Replies
    2
    Views
    2,318

    exactly as robwhit pointed s1 does not have...

    exactly as robwhit pointed s1 does not have enough memory to store s1+s2 and hence the problem.

    Make s1 an array or allocate enough memory for s1 so that it may store the length of s1+s2.
  20. Replies
    4
    Views
    2,921

    yes that is correct, writing to a File before...

    yes that is correct, writing to a File before reaching EOF will replace characters in "w" mode.
    The OP can use fseek as right pointed out by prog-bman!
  21. Replies
    3
    Views
    1,131

    probably he doesn't read the replies to his posts

    probably he doesn't read the replies to his posts
  22. Replies
    10
    Views
    20,212

    I think the usage and cost is situational,...

    I think the usage and cost is situational, presuming one is more expensive than the other and to call that statement generic will not be wise.
  23. Replies
    3
    Views
    1,131

    post your problem!

    post your problem!
  24. which means you actually posted the code without...

    which means you actually posted the code without even looking at it once or bothering to compile it?
    Or just typed it from memory and never bothered to check it.
  25. Replies
    22
    Views
    5,430

    yes it should give you 4 as array is the pointer...

    yes it should give you 4 as array is the pointer and the sizeof operator when applied on a pointer shall return you 4 on the machines we normally use today.
Results 1 to 25 of 47
Page 1 of 2 1 2