Search:

Type: Posts; User: Machoscorpion

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,273

    Hi

    I guess zacs7 is correct.. try to use pre increment and pre decrement... rather than doing post increment and post decrement..
  2. Replies
    9
    Views
    1,557

    I guess you can also do away with count variable....

    I guess you can also do away with count variable. Instread you can use (i+1) instead.
  3. Replies
    7
    Views
    1,024

    If you want a one time fix i would suggest get a...

    If you want a one time fix i would suggest get a scripting language ( like perl ) to do that for you. In case you want to know about the searching then do it in C , is just revels the beauty of each...
  4. Replies
    5
    Views
    2,308

    yeah.. right.. what is the question now.. ?? or ...

    yeah.. right.. what is the question now.. ??
    or
    Are you expecting us to wright the client pgm.. ?? :-)
  5. Replies
    6
    Views
    5,011

    Hey Why don't you tell us about the logic that...

    Hey
    Why don't you tell us about the logic that you have used in your pgm, rather than cut and past of code what you have got.. ?
    It very much looks like an assignment problem and as the rule of...
  6. Replies
    3
    Views
    2,120

    Hey man, The code that you have posted is...

    Hey man,

    The code that you have posted is a part of major code tree, so its difficult to say what exactly it is, just by looking at a small piece of code. The declarations are not std. you...
  7. Replies
    18
    Views
    22,284

    what you can do is have 3 nodes call them , prev...

    what you can do is have 3 nodes call them , prev , current, nex . prev node will be before Current and nex will be the node after current.

    in your example, 2 will be held by prev, 3 will...
  8. Replies
    8
    Views
    1,198

    very good.. dude... As the saying goes. "You...

    very good.. dude... As the saying goes.

    "You feed a hungry man with a fish you feed him only that day..
    You teach him how to fish ... you feed him everyday... " :-)
  9. Replies
    5
    Views
    6,484

    Why do you wanne do this.. ? you could do...

    Why do you wanne do this.. ?

    you could do away with this by running the loop (sizeof temp-1) times. and i don't see you appending '\0' to temp anyway. !
    or am I missing something. ?
  10. Replies
    10
    Views
    2,500

    Hi..

    Hey can you also give the example of what you are expecting.. im' a bit confused.. about your requirement
  11. Replies
    5
    Views
    1,296

    Y don't you give it a shot.. and come back with...

    Y don't you give it a shot.. and come back with the problems.. you face.. rather than expecting us to do the homework.. ??

    If your intestion is to learn.. then.. you need to change your ways.....
  12. I would go with Prelude's solution. Read...

    I would go with Prelude's solution.

    Read what ever the input is as char array and then decode it to numbers and special char.

    the solution holds good if

    1. you are looking at only single...
  13. Replies
    4
    Views
    1,302

    are you using linux or windows.. ? If you are...

    are you using linux or windows.. ?
    If you are using something like Dev-c++. It does have a folder called "include" ( check where you have installed it) and you can place it there..
  14. Replies
    10
    Views
    2,142

    Gohan.. Getting frustrated.. won't get you...

    Gohan.. Getting frustrated.. won't get you anywhere.
    The reason people come here .. "message board ".. 'cos they are lost.. or are looking for challenging problem....

    There are lots of people...
  15. Replies
    8
    Views
    1,858

    Have you thought of declaring it as a glolbal...

    Have you thought of declaring it as a glolbal variable ?
    My knowlege is a bit rusty.. if you declare it as a global variable it should automatically get initialized to 0.

    Please correct me if...
  16. Replies
    5
    Views
    1,407

    why don't you maintain a replica on the client...

    why don't you maintain a replica on the client side too ?
    Once a new mail comes in. its transfered over to Client where it stays. even when the network is disconnected.
    Just like your outlook.
  17. Replies
    6
    Views
    1,441

    hey , Y don't you make use of array to...

    hey ,

    Y don't you make use of array to hold the numbers. ? you will be able to
    hold the list of number the user has entered.

    you can initialise small & large to say 0 and then compare...
  18. Replies
    13
    Views
    1,308

    I was under the impression that you can't post...

    I was under the impression that you can't post homework or assignment on the message board.... !!! :mad: :confused:
  19. Replies
    4
    Views
    1,253

    hi, Rigth now i can think of 3 methods of...

    hi,

    Rigth now i can think of 3 methods of doing it...

    1. Write a function, where in you send the pointer of name and man and do a char by char copy till you get the "."

    2. Using...
  20. Replies
    4
    Views
    1,003

    while ( (ch = getc(file)) != EOF ) { ...

    while ( (ch = getc(file)) != EOF )
    {
    if ( ch == ')' )
    {
    do {
    ch = getc(file);
    if ( ch == EOF )
    {
    ...
  21. Replies
    10
    Views
    1,174

    yes, you can do it.. but its just complecating...

    yes, you can do it.. but its just complecating the matter..

    Like salem said it..

    take the number.. and do a modulo (%) 100.. so it will give you the reminder.. which is less than 100 i.e...
  22. Replies
    24
    Views
    2,368

    Hi, I totally agree with nvoigt.. Thats its...

    Hi,
    I totally agree with nvoigt.. Thats its more a sort of personal about the styling of the code..

    What you need to do is have a standard notation as to how you would identify a variable it...
  23. Replies
    4
    Views
    1,290

    hey, If you are doing it in C its good....

    hey,


    If you are doing it in C its good. But there are many script languages which can be used and gonne be much more easier. Try using perl. Its gonne be very easy and its ment for that....
  24. Replies
    5
    Views
    1,272

    I totally agree with Salem, Variable...

    I totally agree with Salem,

    Variable decleared cannot be without address.

    You can have pointer and initalied to NULL.
    like, int *p=NULL;
    which would mean the p is a pointer to int but...
  25. Thread: File I/O

    by Machoscorpion
    Replies
    6
    Views
    1,219

    Correct me if i'm wrong .. 1. you give the...

    Correct me if i'm wrong ..

    1. you give the file name.
    2. the file is opened if it exists in the same folder.
    or
    it will create a new file.

    in that case what you can do is

    open the...
Results 1 to 25 of 38
Page 1 of 2 1 2