Login to ZARP
Username: Password: Remember me

TOPIC: Anyone here have this?

Anyone here have this? 6 years 4 months ago #765142

Katje wrote:
B) Runescape B)

Sent a request
  • Evan123
  • Evan123's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Posts: 662
  • Thanks received: 153
  • Karma: -20


-TTT Ex-Admin-
-Deathrun Ex-Head Admin-
-Ex-TeamSpeak Staff-
-Surf Ex-Mod-
Login or register to post a reply.

Anyone here have this? 6 years 4 months ago #765153

#include <iostream>

bool testGame(std::string _gameName)
{
if(_gameName == "League Of Legends")
std::cout << "Shit game tbh";
}

int main()
{
std::string gameName = "League Of Legends";
testGame(gameName);
}
  • catboy sven ツ
  • catboy sven ツ's Avatar
  • Offline
  • Adept Boarder
  • ZARP VIP
  • Respected Zarp Contributor
  • Posts: 7193
  • Thanks received: 1544
  • Karma: -45
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)








Login or register to post a reply.

Anyone here have this? 6 years 4 months ago #765159

Aspect wrote:
#include <iostream>

bool testGame(std::string _gameName)
{
if(_gameName == "League Of Legends")
std::cout << "Shit game tbh";
}

int main()
{
std::string gameName = "League Of Legends";
testGame(gameName);
}




????????????????????????
  • Evan123
  • Evan123's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Posts: 662
  • Thanks received: 153
  • Karma: -20


-TTT Ex-Admin-
-Deathrun Ex-Head Admin-
-Ex-TeamSpeak Staff-
-Surf Ex-Mod-
Login or register to post a reply.

Anyone here have this? 6 years 4 months ago #765199

Yami Yugi wrote:
Aspect wrote:
#include <iostream>

bool testGame(std::string _gameName)
{
if(_gameName == "League Of Legends")
std::cout << "Shit game tbh";
}

int main()
{
std::string gameName = "League Of Legends";
testGame(gameName);
}




????????????????????????

I have a feeling you didn't understand what i meant so here, i shall simplify:
#include <iostream>
#include <unistd.h>

struct Games
{
    char* gameName;
};

Games gameList[] =
{
    {"League_Of_Legends "},
    {"Dota "},
    {"Cs:GO "},
    {"Garrys_Mod "}
};

bool rateGame(Games* gameList);

int main()
{
    rateGame(gameList);
}

bool rateGame(Games* gameList)
{
    unsigned int microseconds = 70000;
    for(int i = 0; i < 42; i++)
    {
        std::cout << gameList->gameName[i];
        usleep(microseconds);
    }
    std::cout << "" << std::endl;
    usleep(550000);
    std::cout << "\nWhich game is bad?" << std::endl;
    usleep(550000);
    std::cout << "Answer:\n" << std::endl;
    usleep(550000);

    for(int i = 0; i < 17; i++)
    {
        std::cout << gameList->gameName[i];
        usleep(microseconds);
    }

    usleep(350000);

}

please don't run the code online, it would deeply offend me (download codeblocks (IDE))
  • catboy sven ツ
  • catboy sven ツ's Avatar
  • Offline
  • Adept Boarder
  • ZARP VIP
  • Respected Zarp Contributor
  • Posts: 7193
  • Thanks received: 1544
  • Karma: -45
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)








Last Edit: 6 years 4 months ago by catboy sven ツ.
Login or register to post a reply.
Time to create page: 0.085 seconds

256 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
11/127
online
Connect to server View Gametracker Deathrun
0/40
online
Connect to server View Gametracker TTT
0/47
online
Connect to server View Gametracker Bhop
0/32
online
Connect to server View Gametracker Surf
4/32
online
Connect to server View Gametracker Prop Hunt
10/42
online
Connect to server View Gametracker Sandbox
0/0
offline
Connect to server Discord
231/782
online
Top