Search:

Type: Posts; User: Manish

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    22,292

    You can use in case where an empty...

    You can use



    in case where an empty std::string is to be returned.
  2. Replies
    1
    Views
    1,423

    Make sure you are linking the newly allocated...

    Make sure you are linking the newly allocated node into the linked list itself in the add() function. I see no statement making a link between the new node and the existing linked list.

    Please...
  3. Replies
    5
    Views
    991

    Use map classVars; ...

    Use




    map<string,className> classVars;

    .
    .
    .
  4. Replies
    4
    Views
    1,925

    Thanks for taking time to write a long answer...

    Thanks for taking time to write a long answer buddy. :)

    I already have an idea of static members, and public/private members. What I was contarying was how did the author define (assign a value...
  5. Replies
    4
    Views
    1,925

    Declaration/Definition ??

    ok...this is a pretty lame question:

    I was reading Scott Meyer's "Effective C++", and on item E1, he writes this:



    I doubt when he calls the "definition part" as "mandatory", because it...
  6. Replies
    8
    Views
    1,801

    If your users are lazy enough not to open DOS...

    If your users are lazy enough not to open DOS prompt, then create a ShortCut on the Desktop, or use the Start -> Run command.

    Basically you have to understand that the "Press any key to...
  7. Replies
    6
    Views
    1,907

    Install an old version of Turbo C++ and take a...

    Install an old version of Turbo C++ and take a look at the all the examples in the provided help.
  8. Replies
    6
    Views
    2,175

    You have to understand that the * is handled by...

    You have to understand that the * is handled by the shell, and hence while using MS VC++, the * is passed to the program as it is (the shell doesn't handle it there).

    While with DOS or Unix...
  9. Replies
    1
    Views
    983

    I guess you will have to write code to parse the...

    I guess you will have to write code to parse the string yourself and calculate the result via code only.
  10. Replies
    4
    Views
    997

    I have a single tip: Move stepwise -- first move...

    I have a single tip: Move stepwise -- first move to C++. Then move to Visual C++ (and windows programming).

    Moving to C++ : Become proficient in use of classes and streams (streams is a very...
  11. Thread: stack

    by Manish
    Replies
    2
    Views
    952

    I guess it should be "stack", not "Stack".

    I guess it should be "stack", not "Stack".
  12. Replies
    7
    Views
    936

    as far as I know, this should work: char...

    as far as I know, this should work:




    char test;

    infile >> test;
  13. Replies
    10
    Views
    2,818

    Poking the wrong memory area can even reset your...

    Poking the wrong memory area can even reset your BIOS.
  14. Thread: Turbo C++

    by Manish
    Replies
    5
    Views
    6,246

    btw, If you are looking for a free C++...

    btw,

    If you are looking for a free C++ compiler (bec. most ppl. want Turbo C++ bec. its free), try taking a look at BloodShed C++ IDE (it comes with free C++ compiler). It works on Windows and is...
  15. Replies
    3
    Views
    911

    Another appraoch.. char a[]={'*','/',' '...

    Another appraoch..

    char a[]={'*','/',' ' (BLANK), '+','-'....}

    Separate all "levels" of precedence by a BLANK. Now just find out whether u traversed through a ' ' between the positions of the...
  16. Replies
    3
    Views
    911

    If that is all the program does, then ur approach...

    If that is all the program does, then ur approach is fine.

    You cud simply put all the operator chars in a char array...

    char a[]={'*','/','+','-',......}

    Have some schema as above that 0,1...
  17. Replies
    7
    Views
    2,747

    void main() return error code 0 ?

    Well,

    I know void main() is evil, and we shud use int main()...but if I do use void main(), then what?? What "error code" does it return to the OS? zero ??

    (Note: I cud have tested it myself,...
  18. Thread: Question?

    by Manish
    Replies
    7
    Views
    1,093

    Just adding... You can also have a prev[]...

    Just adding...

    You can also have a prev[] array to hold index of previous element in case you want a doubly linked list.

    :)
  19. Thread: Question?

    by Manish
    Replies
    7
    Views
    1,093

    For a linked list without pointers, you'll have...

    For a linked list without pointers, you'll have to create 2 arrays:

    int data[100],next[100];

    data[] will contain the actual data values, and corresponding next[] will contain the next element...
  20. Replies
    2
    Views
    5,737

    1. Hint: If you move to STL classes like list,...

    1. Hint: If you move to STL classes like list, its a matter of 1 single statment that you can remove duplicates from the list.

    2. For int, you can try out:


    int i,j,k,array[20];

    for...
  21. Replies
    4
    Views
    1,047

    Including a header file like iostream.h has the...

    Including a header file like iostream.h has the same effect -- it imports all the variables/functions in the header file to the program's global namespace.
  22. Replies
    2
    Views
    1,702

    Hello, See if this works... ...

    Hello,

    See if this works...

    http://www.gameprogrammer.com/archive/html/msg00372.html
  23. Replies
    2
    Views
    1,216

    Hi, Take a look at this: ...

    Hi,

    Take a look at this:

    http://www.cse.fau.edu/~cot3002l/stringsC++/

    Hope this helps. :)
  24. I think if you can convince them at the interview...

    I think if you can convince them at the interview what you are worthy of, then most good companies would keep you.

    But it is always safer to try at smaller/new companies and gain 1-2 years of...
  25. Replies
    2
    Views
    1,066

    Two links: ...

    Two links:

    http://www.cplusplus.com/doc/tutorial/tut3-2.html (for basics)

    http://www.cse.fau.edu/~cot3002l/stringsC++/ (on how to work with String objects)

    :)
Results 1 to 25 of 28
Page 1 of 2 1 2