I got a question relevant with binary files.
I defined
struct rec{
int Age;
char Name[10];
};
struct rec A[MAX];
Type: Posts; User: QuickSilver
I got a question relevant with binary files.
I defined
struct rec{
int Age;
char Name[10];
};
struct rec A[MAX];
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) {}
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...
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...
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);
...Thanks, sometimes my mind :(
...Anyway everything looks good now
i have this struct:
struct node{
char *data;
struct node *next;
};
And this is the function for pushing a string value in the stack
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...
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...
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...
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:
...