Search:

Type: Posts; User: rm82co

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    244

    Thank you Sir, I could get the point.

    Thank you Sir, I could get the point.
  2. Replies
    4
    Views
    244

    Following are compilation errors Defining as...

    Following are compilation errors

    Defining as const, a member function that modifies a data member of an object
    Defining as const, a member function that calls a non-const member function of the...
  3. Replies
    4
    Views
    244

    Constant Member function

    Defining as const, a member function that calls a non-const member function of the class on the same instance of the class



    What is the meaning of the above sentence? Can anybody please explain...
  4. I have done Sir, thank you very much. It is...

    I have done Sir, thank you very much. It is working now.

    Thank you very much
  5. #include #include using...

    #include<iostream>
    #include<cstdlib>


    using namespace std;


    class Time{

    private:
  6. Yup I have done it in this way. Still same issue.

    Yup I have done it in this way. Still same issue.
  7. Still same issue

    Still same issue
  8. Logical error: I'm not getting expected result

    Please check the code and output.
    I've checked again and again but could not sort out the flaw.
    Kindly help please!
    15793

    #include<iostream>
    #include<cstdlib>


    using namespace std;
  9. Replies
    3
    Views
    419

    Yeah! there were two errors. One as you are...

    Yeah! there were two errors. One as you are indicating to and the other I haven't used using namespace std;
  10. Replies
    3
    Views
    419

    Well I've identified error. Thanks for all

    Well I've identified error. Thanks for all
  11. Replies
    3
    Views
    419

    class string error

    #include<iostream>
    #include<cstdlib>
    #include<string>


    class GradeBook{
    private:
    string name;

    public:
  12. Replies
    6
    Views
    385

    Well, I've gotten the answer

    Well, I've gotten the answer
  13. Replies
    6
    Views
    385

    Error is as following, In member function...

    Error is as following,

    In member function 'void ObPass::disp3()':
    [ERROR] no matching function for call to 'getline(std::istream&, char[40])'
  14. Replies
    6
    Views
    385

    void disp3(){ ...

    void disp3(){

    cout << "Enter Name: " << endl;
    getline(cin,name);
    cout << "Enter Integer: " << endl;
    cin >> n;
    cout<<"Enter...
  15. Replies
    6
    Views
    385

    cout

    #include <iostream>
    #include<cstdlib>


    using namespace std;


    class ObPass {
    private:
    char name[40] = "Javaid Iqbal";
  16. Replies
    9
    Views
    597

    Well another question is if we need to add...

    Well another question is if we need to add namespace statement or std prefix, we'll need to add it in our program and then compiler first will check in our program namespace statement or prefix std ...
  17. Replies
    9
    Views
    597

    Yup I have checked already through compiler but...

    Yup I have checked already through compiler but actually I am beginner. So, one question get satisfied another arose.
    I observed that when I include C header files in my CPP program, It compiled...
  18. Thread: stdlib.h in C

    by rm82co
    Replies
    3
    Views
    355

    stdlib.h in C

    It is said that we can use cstdlib and stdlib.h header file as well.

    My question is how can we use C language header file to fetch prototype of functions here in CPP too? Are C and CPP header...
  19. Replies
    9
    Views
    597

    It is said that we can use cstdlib and stdlib.h...

    It is said that we can use cstdlib and stdlib.h file as well. My question is how can we use C language libraries functions here in CPP too? Are C and CPP libraries available for both, C and CPP?
  20. Thread: class string

    by rm82co
    Replies
    5
    Views
    442

    Thank you. Actually I know those are functions...

    Thank you. Actually I know those are functions and not automatically called. Because these operators in itself are functions. Anyway up have been told about constructors. I think my reply exist in...
  21. Thread: class string

    by rm82co
    Replies
    5
    Views
    442

    Sir, I'm beginner in C++. Can you please tell me...

    Sir, I'm beginner in C++. Can you please tell me that if string member functions are executed automatically? Because when we create an string object. I see not a call of member function.
  22. Thread: class string

    by rm82co
    Replies
    5
    Views
    442

    class string

    When we use class string, we create an string object. what is about its member functions? We don't call them except the function that overload operator <<>>

    So, my confusion is, how do, and where...
  23. You're best teacher. I could get the point...

    You're best teacher. I could get the point
    Thanks you both replied
  24. Accessing to data members of a class issues!

    #include <iostream>
    using namespace std;
    class ObPass {
    private:
    char name[40];
    int n;
    char ch;
    public:
    void disp(ObPass objectpass){
    cout << "Enter Name: " << endl;
  25. Thread: string class

    by rm82co
    Replies
    1
    Views
    249

    string class

    string name;
    cout<< name << endl;

    Will the above statement display an object?

    I was told that object. (class data member)
    But here we are passing direct to a string object. And It works too....
Results 1 to 25 of 55
Page 1 of 3 1 2 3