initializing constructors argument in main
How can I add an argument to a constructor in the int main section?
cout << k << endl;
i want it to output :
to the screen
What is not working with your example?
Assuming you have string etc included it should work just as you want it to.
I tried it again and you're right it works. Thanks. I must of not included something before.
Topic archived. No new replies allowed.