Click here to Skip to main content
15,348,882 members

Comments by Member 15420232 (Top 20 by date)

Member 15420232 12-Mar-22 1:20am View
   
I really didn't realize I was using r1 and c1 for the second matrix
thank you very much for your help.
Member 15420232 19-Nov-21 1:30am View
   
actually I tried your code on my compiler but it gives error
" inline specifier allowed in function declaration only"
however, I tried my original code on an online compiler and it worked!
note: when I run my code on my compiler it says " your project is out of date"
I think that is the problem
thank you for your help (:
Member 15420232 18-Nov-21 23:46pm View
   
actually I use C++ 2010 so this code won't run
is there any other way I can organize the output
I think the problem is in
COD_player(string Username,string Password)
because it calls the destructor in the middle of the output
but I don't know why
Member 15420232 18-Nov-21 1:55am View
   
Is there any other way than using getter and setter?
like using a void function
Member 15420232 18-Nov-21 0:00am View
   
the question wants the properties to be private
Member 15420232 17-Nov-21 22:16pm View
   
I also want to print died_players from p1
I tried cout p1.died_players
but it gives error too
do I need to static any variable?
Member 15420232 17-Nov-21 22:14pm View
   
how can I print online_players from the class directly
i tried cout COD_Player::online_player
it did not work
Member 15420232 17-Nov-21 22:12pm View
   
Deleted
how can I print online_players from the class directly
i tried cout<
Member 15420232 17-Nov-21 22:08pm View
   
Deleted
how can I print online_players from the class directly
i tried cout<
Member 15420232 6-Nov-21 13:35pm View
   
thanks for helping me I appreciate it
Member 15420232 6-Nov-21 13:26pm View
   
there is error happens after the first time in the loop
the output like

enter the name
r
-----------
enter the location
anything
-----------
enter the manager_name
anything
-----------
enter the bank id
22
-----------
enter the employees number
3
enter the name
-----------(it does not take the name from the user)
enter the location
anything
-----------


so I used cin instead of getline
Member 15420232 6-Nov-21 13:09pm View
   
it worked!

but i have 3 questions
1- why should use size instead of 3?
2-why I did not use the & operator in main function when I pass the array?
3- why I did not assign n=getlistoftBankinfo(n,3)?
Member 15420232 6-Nov-21 9:24am View
   
I finally did it

all what I had to do is:
1- void displayBankinfo(BANKinfo *n)
2-use the -> operator
3- assign n== getBankinfo()

thank you for helping me
:)
Member 15420232 6-Nov-21 9:14am View
   
it worked!!

I forgot to assign it my bad
thanks:)
Member 15420232 5-Nov-21 22:14pm View
   
I tried that but it still gives me a garbage value ):
Member 15420232 5-Nov-21 20:40pm View
   
void displayBankinfo(const Bankinfo *n){

cout<<n->name<<endl;
cout<<n-="">location<<endl;
cout<<n-="">manager_name<<endl;
cout<<n-="">bank_id<<endl;
cout<<n-="">emp_numbers<
Member 15420232 5-Nov-21 20:35pm View
   
you mean like
void displayBankinfo(Bankinfo *n){

cout<<n->name<<endl;
cout<<n-="">location<<endl;
cout<<n-="">manager_name<<endl;
cout<<n-="">bank_id<<endl;
cout<<n-="">emp_numbers<
Member 15420232 5-Nov-21 18:43pm View
   
did not work
Member 15420232 5-Nov-21 18:38pm View
   
Deleted
1-me too
2-the question wants it with structure
3-also wants the function void displayBankinfo to take (*) as a parameter
is there other solution to display the output using (*) as a parameter?
Member 15420232 5-Nov-21 18:38pm View
   
1-me too
2-the question wants it with structure
3-also wants the function void displayBankinfo to take (*) as a parameter
is there other solution to display the output using (*) as a parameter?