If you're doing this in .net, then this is not the best forum to come for help.
There's a C# and a C++/CLI one.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]
I implemented Class Time with private members and public function, any way I used to declare friend function to access those private data members.
The first Time give me the right value but the second gives me 0 Zeroooos I done know why
And the header is follwing over here
Time(int hour,int minute,int second);
int getHour(int h);
int getMinute(int m);
int getSecond(int s);
friend ostream & operator<<(ostream& , Time);
friend istream& operator>>(istream&,Time);
this-> hour = 0;
this-> minute = 0;
this-> second = 0;
Time::Time(int h,int m, int s)
this-> hour = h;
this-> second = s;
this-> minute = m;
istream & operator>>(istream &in ,Time t2 )
ostream& operator<<(ostream &o, Time t2 )
Finally the main
cout<<"The first Time is:\n";
cout<<"Enter the second time\n";
No, the exe file will be locked by the OS as it is a running process. You can however save the new file under a different name and call the MoveFile function and specify the MOVEFILE_DELAY_UNTIL_REBOOT flag to have the OS replace the exe file the next time the machine is rebooted.
I've just written a piece of code which works fine and now I need to do one more and the last operation to complete the whole project. I'd like to count how many times all elements in each combination repeat. To be more precise I'm interested in number of occurences which are equal or bigger than six. Here's the code. You can use it for your studies if you want: