Search:

Type: Posts; User: nag

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,205

    help about text editor

    i need the source code for a simple text editor in C++ ,again using the ideas of OOP , desiging it with classess thanks
  2. Replies
    3
    Views
    1,788

    i have written a copy constructor but it does...

    i have written a copy constructor
    but it does not seem to work,without it junk values was being printed but with a copy constructor,it does not print anything after return and returning a run time...
  3. Very well said,although Dr.Stroutup 's book is...

    Very well said,although Dr.Stroutup 's book is very detailed and informative + fully describes all the secrets of C++ but avoid reading it unless you get well experience in C++ because it is mostly...
  4. Replies
    2
    Views
    1,070

    it is mostly used when you have allocated dynamic...

    it is mostly used when you have allocated dynamic memory,because if you allocate dynamic memory it will not be deleted automatically even class instances are destroyed(out of scope).
    you have to...
  5. Replies
    3
    Views
    1,788

    intArray class problem!

    I have to write an intArray class with different operators overloaded for it,
    The problem is that how i can overload operator - for it,here is the class code (partial)


    class intArray
    {
    int...
  6. Replies
    14
    Views
    1,222

    how it can work,there is no default constructor...

    how it can work,there is no default constructor which takes "Joe",5,9,3 as parameters,but you can write one urself

    like altering above it would be used as


    Cat() //default constructor
    ...
  7. Replies
    14
    Views
    1,222

    you can give definitions of class member...

    you can give definitions of class member functions in class itself like


    class Cat
    {
    private:
    char name[50];
    int height;
    int weight;
    int lengthwt; \\legnth with tail;
  8. Thread: error 2679

    by nag
    Replies
    3
    Views
    2,546

    it still has errors, it is the output generated...

    it still has errors,
    it is the output generated by code
    ----------------------------------
    000000000 0000000
    000000000 0000000
    000000000 0000000
    000000000 0000000
    000000000 0000000
    000000000...
  9. Thread: error 2679

    by nag
    Replies
    3
    Views
    2,546

    i compiled the code on VC6.0 it did not return...

    i compiled the code on VC6.0 it did not return any error,but a warning

    Cannot open input.txt file

    ok i created an input.txt file and place abcd in it.

    i run it again ,this time no error
    ...
  10. Replies
    5
    Views
    1,180

    If you pass it in this way,there is no problem...

    If you pass it in this way,there is no problem but you will always get a const pointer to the first element of array,thats why usually programmers omit this and pass size as second argument!
  11. Replies
    9
    Views
    2,846

    this code #include #include...

    this code


    #include <iostream>
    #include <fstream>
    #include <conio.h>
    #include <string>

    using namespace std;
  12. Thread: Help with function

    by nag
    Replies
    16
    Views
    1,949

    yes but most newbies dont see faq nor anybody...

    yes but most newbies dont see faq nor anybody tells them about this!
  13. Thread: Books?

    by nag
    Replies
    9
    Views
    2,020

    i dont know exactly what type of books you need...

    i dont know exactly what type of books you need (basic,advanced) anyhow i suggest you to study

    Programming and Problem Solving in C++ by Nell Dale

    or

    C++ Programming by Dietel and Dietel
    ...
  14. Thread: Help with function

    by nag
    Replies
    16
    Views
    1,949

    Re: Re: Help with function

    Why are you are worrying about it so much,
    I have a book
    Microsoft's Guide To C++ Programming.
    In this book the writer throughout used void main() in all code examples :):):):):) (yes the...
  15. Replies
    9
    Views
    2,846

    It would return error again,can you declare an...

    It would return error again,can you declare an array of numrecords size because it is variable!!

    It is better to use dynamic array with new operator and using it through a pointer!
  16. Replies
    7
    Views
    1,491

    Try to use getline() twice ,i hope it would work...

    Try to use getline() twice ,i hope it would work as mentioned by Stoned_Coder there was a bug in getline() !
  17. Replies
    8
    Views
    7,671

    I have not worked this problem yet but I know...

    I have not worked this problem yet but I know iostream.h provides a way to do it by typing
    flush keyword at the point where you want to emty the buffer.I am not clear about this but I think try to...
  18. Thread: data type limits

    by nag
    Replies
    7
    Views
    2,389

    For a 16 bit machine it is unsigned int=2^16...

    For a 16 bit machine it is

    unsigned int=2^16 -1 (2 to the power 16) =65535

    for a 32 bit machine

    unsigned int=2^32 -1 =4294967295

    for signed int value divide it by two...
  19. Thread: "\n" or '\n'

    by nag
    Replies
    11
    Views
    1,158

    Yes it is true "\n" has a null terminated...

    Yes it is true "\n" has a null terminated character at its end which is '\0' but '\n' is only converted to its ASCII value (which is 10).
  20. Replies
    17
    Views
    11,971

    But I think the actual question was How to pass...

    But I think the actual question was How to pass an array of strings to a function ?
    And also no matter if you pass an array as pointer,the function does not get a new copy of array as usual It can...
  21. Replies
    17
    Views
    11,971

    Amazing!! ,men when you pass an array to a...

    Amazing!! ,men when you pass an array to a function it is always passed as a pointer to its first element,so you should pass the size of array as its second parameter ,what you are trying to do can...
  22. Replies
    2
    Views
    1,151

    How to delete a File?

    While reading File Handling in C i came acroos the programs which copy files by inputing file name and required file Bu i wonder that there is no example how to Delete a file???
    --so i want to know...
Results 1 to 22 of 23