How can i ensure that 1024 is an integer? thank you....

Code:
#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main(void){
	int age;
	string buf("1024");
		stringstream(buf) >> age;
		cout << age << ".\n";
	
return 0;
}