Had a breakthrough...

Code:
#include<iostream>
#include<string>
using namespace std;

int main(){
	string name;
	double sum,num[10];
	int i;
	sum=0
	cout<<"Please enter your name: "<<endl;
	cin>>name;
	cout<<"Your name is "<<name<<endl;
	for(i=0,i<10;i+1;){
	cout<<"Please enter a number: ";
	cin>>num[i];
	}
                sum+=num[i];
	cout<<"The sum of your numbers equals "<<sum<<endl;
	return(0);
}
This lets the loop run, but it never stops asking for numbers. Wouldnt it do that after it reaches num[9]?? Well, I also moved the whole sum statement outside the loop so it wont display the sum everytime they input a number. But why does it still loop infinitely?