Reputation: 1
How do i read in pascal a string and an integer in the same line like the C's scanf("%s %d", str, &n); version?
Upvotes: 0
Views: 1877
Reputation: 596246
Pascal does not have an equivilent of C's ...scanf()
functions. You will have to either find a third-party implementation, write your own implementation, or just parse the string directly.
Upvotes: 2
Reputation: 6078
I am sorry, but I am pretty sure there is no way. You must read them separated.
Upvotes: 1