Computer Science, asked by anandsingh11111111, 1 year ago

how to use a variable of function in other function in C++?

Answers

Answered by Anonymous
3

Answer:

#include <iostream>

#include <stdlib.h>

#include <time.h>

#include <windows.h>

using namespace std;

int bgame(), ugame(), results();

int main()

{

srand(time(NULL));

cout<<"Welcome to RPS!\n" <<"You know what to do.\n" <<"\n[ENTER]";

cin.ignore();

system("cls");

ugame();

return 0;

}

int ugame()

{

int x;

cout<<"Type a number from 1-3: ";

Answered by daredevil2492
0

i dont know..............

Similar questions