declaration
declaring an int variable
for(int i=0; i < size; i++) I declared a variable in my code as above an received a compile-time error: something like such a declaration is obsolete according to ISO standards.[详细]
2023-02-25 01:57 分类:问答One of the QImage constructors gives me a linker error, but another constructor doesn't?
In my project I\'m using QImage to save a generated picture, but whe开发者_JAVA技巧n I call QImage image(width, height, QImage::Format_RGB32);[详细]
2023-02-24 06:55 分类:问答What are the differences between $, @, % in Perl variable declaration? [duplicate]
This question already has answers here: What is the difference between `$this`, `@that`, and `%those` in Perl?[详细]
2023-02-22 00:07 分类:问答enums declaration in class C++, problem getting to enum in class
I have problem with the declaration of enum in my class. I had tried to declare it on private, public, outside, in the main, nothing works.[详细]
2023-02-21 22:47 分类:问答More elegant way of declaring multiple variables at the same time
To declare multiple variables at the \"same time\" I would do: a, b = True, False But if I had to declare much more variables, it turns less and less elegant:[详细]
2023-02-21 03:12 分类:问答change variable to reference even if it was not declared as reference
In C++ I can make myReference be a reference of myValue by using & in the declaration of myReference:[详细]
2023-02-18 08:07 分类:问答Problem declaring class objects outside of conditional statement because of template function
For my c++ class we were given the task of writing a template class who\'s class object\'s type is defined by the user using templates.[详细]
2023-02-17 15:32 分类:问答Redefinition allowed in C but not in C++?
Why does this code work in C but not in C++? int i = 5; int i; 开发者_开发知识库// but if I write int i = 5; again I get error in C also[详细]
2023-02-17 14:44 分类:问答Problem with object declaration/initialization as a private member on a different class
Sorry if this has been asked before, I can\'t seem to find开发者_如何学C anything. I\'m not sure how to search for this.[详细]
2023-02-16 09:58 分类:问答Why do Java array declarations use curly brackets?
I would like to know why Java array declarations use curly brackets as opposed to the standard parenthesis. As illustrated here. I imagine this may take further understanding of curly 开发者_如何学Gob[详细]
2023-02-16 09:57 分类:问答