I have problems accessing _maxx, it says: ./ScoreBoard.hpp:20:38: error: member access into incomplete type 'WINDOW' (aka '_win_st') mvwprintw(score_w ...
I have problems accessing _maxx, it says: ./ScoreBoard.hpp:20:38: error: member access into incomplete type 'WINDOW' (aka '_win_st') mvwprintw(score_w ...
This is my code: When I try to print the person's details and it just prints out BLANK code. Output: I don't know why it prints out blank inste ...
I have simple the nested structure: It prints 10, but how the de-reference a pointer taking place here, is ptr->obj same as &->obj == *ob ...
Hey guys I am currently learning DSA and in ADT I have a problem: This is a code that creates a custom array and takes the input of the array and stor ...
I am trying to overload the ostream << operator for class List To my humble knowledge (overload ostream functions) must be written outside th ...
I wonder if there is a way to declare multiple structs in C. For example, I made this: I want each TeamCup to have 4 teams. But when it comes to in ...
My code don't run ,how can I fix it i think i don't understand where i am wrong error when using pointers, dynamically allocating ,struct Invalid t ...
My expectation from other programming languages is that (1:4)[3:5] and list(asdf = 4, qwerty = 5)$asdg should both raise exceptions. Instead, the firs ...
I don't know why the private variable result is not saved. And how can i make it work. Then i start compiling it works fine, private result is chan ...
Suppose I have a base class that is an abstract interface, and two derived classes, which inherit a certain state from the base class. I want to chang ...
let's have an example program: I do know why the error appears - when creating a const Example object, pointer is actually const pointer, not a poi ...
I am facing an error: request for member data in something not a structure or union. I am passing the address of a structure receiver_data in a struct ...
I am trying to overload an operator for a class: #include <iostream> using namespace std; class Complex{ float re, im; public: Complex ...
when I execute the following code I get an error message for this line scanf("%s",A.(T+i)->CNE) error message : expected identifier before '(' tok ...
I've searched far and wide and can't find an answer. Why can't I access the elements? It gives me the error: "Expression must have a class type". I ha ...
There is following c++ raw code: template<typename T> class A { private: // here I want to access B::SomeStruct to create SomeStruct field i ...
Again reading C++ primer 5 ed. by lipmann now I've read about Member access operators overloading. Everything is clear to me except: What I've l ...
class Program { static void Main(string[] args) { var p = new Program(); p.Main(args);//instance reference error,use type name ...
How can one use in C/C++ macro parameter containing dot (member access operator)? Example: #define M(obj,y) obj.y##x struct S { struct {int x;} c; i ...
So I am using C++ and experimenting with classes. I am trying to create a function with a class type. Here is the code: Can the instance function o ...