If I have a class named Employee, what should I do in order to determine that an object is really of type Employee? Thank you in advance. Any criticisms about my problem being described as too vague...
Type: Posts; User: Mingzhi
If I have a class named Employee, what should I do in order to determine that an object is really of type Employee? Thank you in advance. Any criticisms about my problem being described as too vague...
Firstly, I apologized to all who are going to read my program. There are not comments and it is a long one. Anyway, I have a problem trying to write the data pointed to by Employee * STAFF[20] to a...
What should I do if I only want to display the sentence'Please enter only one char' once? should the user enter more than one character?
My program will repeat the above sentence countless times if...
Why I cannot use this methode to flush out the invalid input.
I wanted to have the input part inside the while loop, unlike the one the FAQ show on the board(Inside the while condition).
...
thank u salem you have been a great help:)
can someone pls tell me what is wrong with my program
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
can anyone please tell me how to create a normal file with the .dat extension because i want to save it as a binary file? thanks.
lol. i am quite ........one lar anyway thanks.
// for example
int choice=0;
cout<<"Enter your choice please\n";
cin>>choice;
Question: If the user enters an integer, it is alright. However, if he enters lets say an alphabet, what should I...
A big thanks to all of u :)
#include <iostream>
#include <cctype>
using namespace std;
struct inventory_items
{
int code,quantity,reorder_level;
char name[20], item[3];
double price;
};
Thank you so much for replying back to my queries. However, I am still a newbie lor & do not know how to convert data in a char to a floating point number. Need to learn more. Anyway, thanks for...
can anyone tell me what is wrong with my code?
#include <iostream>
#include <iomanip>
#include <cstring>
using namespace std;
void input();
void compute();
void print();
char name[6][21];