- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Name - Thomas Brinegar
Location - Triad Area of North Carolina
Hobbies - Computers, Programming, Web Development
Education - Sophomore at High Point University double majoring in B.A Computer Science & B.S. Management Information Systems
- Interests
- Just another nerd armed with an internet connection.
- PC Specs
- Intel 2.4Ghz Core 2 Duo 8GB DDR2 RAM 600GB HDD nVidia 9800gt Windows 7, Ubuntu, Fedora
2 Posted Topics
Re: Here is another C++ implementation. -GNU-Compiled* [CODE] #include<iostream> #include<cstdlib> #include<ctime> using namespace std; char cpuhand(); int referee(char,char); int main(){ srand(time(NULL)); char hand,cpu;int score(0);bool again(true); while(again){ cout<<endl<<"Select (R,P,S,X) for hand:";cin>>hand;cpu=cpuhand(); if(hand=='X')again=false; cout<<"Player throws: "<<hand<<endl<<"CPU throws: "<<cpu<<endl; score+=referee(hand,cpu); } cout<<endl<<"Final Score: "<<score<<endl; return 0; } char cpuhand(){ int num_eval; char cpuhand; num_eval=rand()%3+1; … | |
I want to focus back on the main page from an iFrame that is loaded as an element on the page. I am trying to make a toggle focus using CTRL to go between the two. I am using javascript to navigate the iFrame to different pages. Once the iFrame … |
The End.