need implement C# Counter

I want to make increment and decrement counter. There are two buttons called X and Y. If first press X and then press Y counter should increment. If first press Y and then press X counter should decrement. I am not familiar with c#. So can anyone help me please ?? 🙁

ubuntu /usr/bin/env: python: No such file or directory

I update the kernel, after that the Ubuntu doesn’t work well, PS: I try to exec “meld” command, it will report that “/usr/bin/env: python: No such file or directory”, then I exec “sudo apt-get install python” and get the result “python is already the newest version.”, what should I do for it. I’m not good … Read more

Getting stuck at Django error: No module named registration

I installed the registration module, added it to settings.py. When I tried to run syncdb (% python sitename/manage.py syncdb –settings sitename.devsettings) It gave me “Error: No module named registration” The same setup works (using the same files for everything) fine on the server. This happens on my local machine running OS X. I checked the … Read more

How can I get the maximum or minimum value in a vector?

How can I get the maximum or minimum value in a vector in C++? And am I wrong in assuming it would be more or less the same with an array? I need an iterator, right? I tried it with max_element, but I kept getting an error.

Categories C++