please note that if u have more than one line of code following your if statement these lines must be enclosed in matching {}
example:
if(word==word1)
{cout<<"abc";
cout<<"xyz";
}
else
Type: Posts; User: stanleyw
please note that if u have more than one line of code following your if statement these lines must be enclosed in matching {}
example:
if(word==word1)
{cout<<"abc";
cout<<"xyz";
}
else
how do i hex dump a binary file i created using c++
thanks
stanley
i have assigned a character array of 10 to hold a password.
then i ask for the user to input a password and then compares the new password with the original to validate its authenticity.
...
hey,
i have a written a C++ class to a file. i can print the entire contents of the file eg.
ID NAME ADDRESS AMOUNT
100 John China 100.00
200 Tom Iran 500.00
300 Ann ...
can i write a C++ class to file ?? if the answer is yes....how do i do it ??
thanks
stan
so i have gone thru my c++ class array and entered all the info needed.....
class student
{
private:
int ID;
etc....
};
student stan[10];
After i create an array of a class object how do i access a private member of an element of the array ??
example:
class student
{private:
int ID;
char name;
public: