Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
IshKhan_Dissertation_Final/Front End Code C++.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (28 sloc)
713 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
/** | |
* Auto-generated code below aims at helping you parse | |
* the standard input according to the problem statement. | |
**/ | |
int main() | |
{ | |
// game loop | |
while (1) { | |
int y; | |
cin >> y; cin.ignore(); | |
int opp_y; | |
cin >> opp_y; cin.ignore(); | |
int ball_x; | |
int ball_y; | |
cin >> ball_x >> ball_y; cin.ignore(); | |
int speed_x; | |
int speed_y; | |
cin >> speed_x >> speed_y; cin.ignore(); | |
// Write an action using cout. DON'T FORGET THE "<< endl" | |
// To debug: cerr << "Debug messages..." << endl; | |
cout << ball_y<<endl; | |
} | |
} |