Soluții

Sa se transforme un numar din baza 10 intr-o baza p, 2<=p<=10

/* Vom împarti succesiv pe x (numarul dat) la p, retinând cifrele din baza p într-un numar xpi, care va fi apoi rasturnat, pentru a obtine numarul xp, vazut care prezentarea în baza p a lui x. Pentru a nu avea probleme în cazul în care prima cifra a lui xpi ar fi 0, folosim o incrementare cu 1 a cifrelor la transformarea x->xpi, respectiv o decrementare la transformarea xpi->xp. */

[mai mult...]

Sa se calculeze suma S=1-1*2+1*2*3-…±1*2*3*…*n.

Anteturi standard C++

ALGORITM BITSET COMPLEX DEQUE
FSTREAM FUNCȚIONAL IOMANIP IOS
IOSFWD IOSTREAM ALEXANDRU ITERATOR
LIMITE LISTĂ SETĂRI REGIONALE HARTĂ
MEMORIE NUMERICĂ OSTREAM COADĂ
SET SSTREAM STIVĂ STDEXCEPT
STREAMBUF ȘIR STRSTREAM TYPEINFO
UTILITAR VALARRAY VECTOR XIOSBASE
XLOCALE XLOCINFO XLOCMON XLOCNUM
XLOCTIME XMEMORY XSTRING XTREE
XUTILITY YMATH.H

 

Compila opțiune Legate de biblioteci
/ML (VC ++ .NET 2003 și versiuni anterioare) LIBC.LIB, LIBCP.LIB
/ MLd (VC ++ .NET 2003 și versiuni anterioare) LIBCD.LIB, LIBCPD.LIB
/MT LIBCMT.LIB, LIBCPMT.LIB
/MTd LIBCMTD.LIB, LIBCPMTD.LIB
/MD MSVCRT.LIB, MSVCPRT.LIB
/MDd MSVCRTD.LIB, MSVCPRTD.LIB

 

[mai mult...]

jQuery one() method

The one() method is an inbuilt method in jQuery that attaches one or more event handlers for the selected element. This also attaches a function to run when the event occurs. This method named one because whatever event handler attaches to this method will run only once.

[mai mult...]

How To Create a Sudo User on Ubuntu

The sudo command provides a mechanism for granting administrator privileges, ordinarily only available to the root user, to normal users. This guide will show you the easiest way to create a new user with sudo access on Ubuntu, without having to modify your server’s sudoers file. If you want to configure sudo for an existing user, simply skip to step 3.

[mai mult...]