Jump to content

Search the Community

Showing results for tags 'functii'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • B-Zone
    • Announcements
    • B-Zone Clips
    • Community
    • Forum Suggestions
    • Market
    • Questions and Answers
  • San Andreas Multiplayer
    • RPG.B-Zone.Ro:7777 Roleplay
    • Wiki Website
  • Rage Multiplayer
    • V.B-ZONE.RO
  • B-Zone Online
    • B-Zone Championships
    • B-Zone Clans & Clubs
    • B-Zone Radios
    • Counter-Strike 1.6
    • Discord
    • Metin2
    • Minecraft
  • IT Zone
    • Design
    • Gadgets
    • Programming
    • Software & Hardware
    • Video Games
  • Real life
    • Entertainment
    • History
    • Juridic
    • Lifestyle
    • Politics
    • Sport
    • Vehicles
  • Trash Can
    • Trash Can
  • The Last Generation [TLG]'s The Last Generation
  • Very Important Person [VIP]'s [VIP] - Topic
  • zero Limits [zL]'s Topics
  • Safe 4 Family [S4F]'s S4F - Forum
  • Sons of Anarchy MC [SoA]'s Club Matters
  • The Last Kingdom [TLK]'s Topics
  • The First Generation [TFG]'s General
  • United Blood Nation [UBN]'s DSICUTII LIBERE MEMBRII!
  • Wild Balkans [WB]'s Informatii
  • True Silent Aimbot [TSA]'s Topics
  • Alliance [A]'s General
  • Merry Weather [MW]'s Prezenta activitati
  • Merry Weather [MW]'s Anunturi Importante
  • Merry Weather [MW]'s Giveaway
  • Merry Weather [MW]'s Giveaway
  • Dangerous Life [dL]'s General
  • Elite Squad [eS]'s Discord

Calendars

  • Community Calendar
  • Merry Weather [MW]'s Events

Product Groups

There are no results to display.

Categories

  • MODURI
    • CLEO/SAMPFUNCS
    • Vehicles
    • Skins
    • Sounds
    • Effects
    • Weapons
    • Others
    • Modpacks
  • True Silent Aimbot [TSA]'s Files
  • Merry Weather [MW]'s Event

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Steam ID


Discord


Instagram


Location


Hobbies


Real name


RPG Nickname

Found 2 results

  1. In acest tutorial, vom invata sa transmitem obiecte unei functii si sa returnam un obiect dintr-o functie in programarea C++. In programarea C++, putem transmite obiecte unei functii intr-un mod similar cu cel al transmiterii argumentelor obisnuite. Exemplul 1: C++ Pass Objects to Function: #include <iostream> using namespace std; class Student { public: double marks; // constructor to initialize marks Student(double m) { marks = m; } }; // function that has objects as parameters void calculateAverage(Student s1, Student s2) { // calculate the average of marks of s1 and s2 double average = (s1.marks + s2.marks) / 2; cout << "Average Marks = " << average << endl; } int main() { Student student1(88.0), student2(56.0); // pass the objects as arguments calculateAverage(student1, student2); return 0; } Output: Average Marks = 72 Aici, am trecut doua student obiecte student1 si student2 ca argumente pentru a calculaAverage() functie. Treceti obiectele pentru a functiona în C++. Exemplul 2: C++ Return Object dintr-o functie: using namespace std; class Student { public: double marks1, marks2; }; // function that returns object of Student Student createStudent() { Student student; // Initialize member variables of Student student.marks1 = 96.5; student.marks2 = 75.0; // print member variables of Student cout << "Marks 1 = " << student.marks1 << endl; cout << "Marks 2 = " << student.marks2 << endl; return student; } int main() { Student student1; // Call function student1 = createStudent(); return 0; } Output: Marks1 = 96.5 Marks2 = 75 Returnare obiect din functie in C++. In acest program, am creat o functie createStudent() care returneaza un obiect al clasei Student. Am numit createStudent() din metoda main(). // Call function student1 = createStudent(); Aici, stocam obiectul returnat prin metoda createStudent() in student1. Pot face tutoriale si despre Flow Control,Functions,Arrays & String,Structures,etc..dar nu vad rostul daca nu vad interes la topicurile de tutoriale.
  2. Salut! In acest topic voi posta functii folositoare nu numai pentru incepatori, ci pentru toata lumea. Daca vreti, puteti da reply sau PM cu o functie si o voi adauga. V-as ruga sa nu faceti mai multe posturi cu aceeasi functie. Daca si dvs. aveti o functie care este deja in comentarii, dati up la acel comentariu. I. STOCKS Aici vor sta stock-urile. Viteza stock GetSpeed(playerid) { new Float:Vx,Float:Vy,Float:Vz,Float:rtn; if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz); rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2))); return floatround(rtn * 100 * 1.61); } Cu acest stock puteti vedea viteza unui jucator in KM. Poate fi folosita la anti-cheat sau la vitezometru. * Topicul nu este complet! Voi continua lista mai tarziu, cand ajung acasa si am acces la mai multe functii! Rog administratorii sa nu inchida topicul.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.