All pastes #415766 Raw Edit

Mine

public text v1 · immutable
#415766 ·published 2007-03-29 20:49 UTC
rendered paste body
/* Here is an (x,y) program.*/
#include <iostream>
#include <stdlib.h>

using namespace std;

int main(void)

{
	int y = 0;
	int x = 0;
	int result = 0;
	
	cout << "Please Enter your Y-axis";
	cin >> y;
	
	cout << "Please Enter your X-axis";
	cin >> x;
	
	x/y = result;
	
	cout >> result;
	
	return 0;
	
}

slope.cpp: In function ‘int main()’:
slope.cpp:20: error: invalid lvalue in assignment
slope.cpp:22: error: no match for ‘operator>>’ in ‘std::cout >> result’