>DansTonCode();

Tous les codes sourcespage 46

C#
 16 Juillet, 2014 à 03:02
#106
int c = (int) App.Session.CreateCriteria(typeof(Transaction)).Add(Restrictions.Between("CreationDate", fromDateTime, toDateTime)).Add(Restrictions.Eq("SaleSession.Salesman", salesman)).Add(Restrictions.Or(Restrictions.Eq("PayMethod", "cash"), Restrictions.Eq("PayMethod", "card"))).SetProjection(Projections.Count("Id")).UniqueResult(); 
C++
 15 Juillet, 2014 à 11:27
#119
		int multiplyBy10(int number)
		{
			std::stringstream str;
			str << number << '0';
			str >> number;
			return number;
		}