I didn't get you.
But Do you mean that iterator is class inside vector class? (And because we are accessing it using :: operator so it must be a static class)
Something like this:
Template...
Type: Posts; User: freiza
I didn't get you.
But Do you mean that iterator is class inside vector class? (And because we are accessing it using :: operator so it must be a static class)
Something like this:
Template...
vector<int> v;
vector<int>::iterator i = v.begin();
How is iterator implemented?
I mean,
test::box c = 1;
Tried all. But none was useful for me.
I found this two links useful for me
Pragma Directive:
Pragma Directives (C/C++)
Def files:
Module-Definition (.Def) Files
I agree on this point. But I never thought that my post will produce so much inflation.
But you must also agree. Just blatantly stating "Use Google" without knowing OP's situation is not good...
Can I assume every OP to be lazy just like everyone else is thinking same for me?
Great, I got plethora of Guidance on how to ask and search.
But my question till unanswered. That's okay. I will...
If you consider "Use Google with commonsense" a help. Can I help every other post in this forum in similar way?
Btw, your last post in Function pointer helped me. Thank You
And why do you...
You are just taking side of your old fellow.
He just provided me a link of visual studio ide.
And even you didn't provided me any link.
If I was able to search it myself, I wouldn't have posted it...
First reply after 12 hours. And that too useless.
If you don't want to help then please don't.
I want to learn more about visual c++ 2010 IDE like project/linker settings, optimizations, pragma etc.
Can someone give me a good link. (Video tutorial if possible)
Still confused. I mean instead of using function pointers, why we cannot simply call the function with the objects.
When should I use function pointer and member function pointer.
Till date I have done all my programming without noticing any need of these two. Then when it is actually used?
And what is the...
In my class. I have not declared name as static. But it still both code compiles fine?
Output:
Creating test instance at 0x002AF7FB via default c'tor.
Destroying test instance at 0x002AF7FB.
Press any key to continue . . .
I don't know why copy constructor is not called?
I didn't understand this point.
In my opnion it should be
test t(t); // This syntax is incorrect. because you cannot pass same object in constructor; But I thought default copy constructor...
Yes, It did. Now I understand what you were trying to say. Thank you.
But how can I use testme variable in both person.cpp and main.cpp ?
// MAIN.cpp
#include <iostream>
#include "Person.h"
using namespace std;
int main()
{
return 0;
class test
{
public:
test()
};
void main()
{
void Person::setname(string name)
{
Person::name = name;
cout<<Person::name;
}
void Person::setname(string name)
{
I mean when the second case is useful?
From what I know that stack size is assigned at compile time and heap is allocated in runtime. Hence using stack increases exe size. Is this the primary...
When should I use
Classname Object;
Object.a;
And,
Classname *Object = new Object();
Object->a;
QLabel *label= new QLabel("HelloQt!"); //this works
QLabel label= new QLabel("HelloQt!"); //Error: Cannot convert QLabel* to QLabel
When this is possible. I mean, what must be class...
What gui tool kit should I use?
For now I my project is windows based. And I will stick to windows for atleast 1 year. I know only C++ and Win32 api. My project is not a simple database...
What is ATL ?
why and when should I learn it?
Where it is used and why it is used ?
When <iostream> is linked at link time. Then how does the compiler knows about cout at compile time?
Does header files are included in compile time?