Search:

Type: Posts; User: QuickSilver

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    1,851

    I got a question relevant with binary files. I...

    I got a question relevant with binary files.

    I defined

    struct rec{
    int Age;
    char Name[10];
    };

    struct rec A[MAX];
  2. Ok, one last try and then give up on me. The...

    Ok, one last try and then give up on me. The following code is an example of what i am asking.

    #include <iostream.h>

    class ABC{

    private:
    int Data;
    public:
    ABC(int x): Data(x) {}
  3. Replies
    9
    Views
    1,443

    When we asssign a const string to a char pointer...

    When we asssign a const string to a char pointer what happens is that we point to the address where for example "world" is kept by the compiler???
    Why don't we do the following:
    char *string...
  4. Sorry, but i don't think i follow. if i have...

    Sorry, but i don't think i follow.

    if i have in my main function two instances of MyString:

    MyString strA,strB;

    and have a method in the class with the following prototype

    void...
  5. Accesing private data from method of another object

    I define a class named MyString. Part of it follows:

    class MyString{
    private:
    char *Str;
    int Length;
    public:
    MyString():Str(NULL),Length(0) {}

    MyString(const MyString &rhs);
  6. Replies
    2
    Views
    1,110

    ...Thanks, sometimes my mind :( ...Anyway...

    ...Thanks, sometimes my mind :(
    ...Anyway everything looks good now
  7. Replies
    2
    Views
    1,110

    stack and strings...

    i have this struct:

    struct node{

    char *data;
    struct node *next;
    };


    And this is the function for pushing a string value in the stack
  8. Replies
    5
    Views
    3,500

    Can you tell me which is the preferred way? Which...

    Can you tell me which is the preferred way? Which one is used more often... The return statement or by reference to an argument?
    The ** confuses me..
    head point to the pointer who's value we want...
  9. Replies
    3
    Views
    1,000

    Designing An Editor

    Can anyone tell me where to find info in designing a text editor??

    More specific:
    i want to know what's the best way to organize the data (chars)...what data structure to use...

    and which...
  10. Replies
    9
    Views
    1,443

    char x[]="abcd"; Can you tell me what's the...

    char x[]="abcd";

    Can you tell me what's the mechanism behind this statement? I mean why can we declare the string in the variable declaration and we have to use strcpy in the rest of the...
  11. In case 5 you forgot to call function...

    In case 5 you forgot to call function DeleteNode...

    You should also check the if(number<0) that follows...
    Whats the point in this?? You don't want negative numbers to be deleted?!??

    case 5:
    ...
Results 1 to 11 of 11