ohailulz
ohailulz

Reputation: 1

Reading STRING, INTEGER in the same line with Pascal

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

Answers (2)

Remy Lebeau
Remy Lebeau

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

Rafael Colucci
Rafael Colucci

Reputation: 6078

I am sorry, but I am pretty sure there is no way. You must read them separated.

Upvotes: 1

Related Questions