All pastes #608735 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-08 13:56 UTC
rendered paste body
char *mid(char *line, int s, int l)
{
	char buffer[64];
	l=s+l;int i=s;
	while(i<=l){buffer[i-s]=line[i];i++;}buffer[l-s]=0;
	return buffer;
}

int main()
{
	char line[64]="number: 895 then";
	cout << /*float(atof(*/mid(line, 8, 3)/*))*/ << '\n';
	cout << float(atof(mid(line, 8, 3))) << '\n';
	cin.get();cin.get();
	return 0;
}