Monday, 7 September 2015

Tool Command Language - (Get data from user)

Getting input  from user.

Like in c programming language we use "scanf"  to obtain data from user like 

int x ;
printf("enter value of x \n");
scanf("%d", &x);

now in tcl we using following code to get data from user

puts "enter value of x "
set y [gets stdin] 
puts "$y"

No comments:

Post a Comment

Grammar Mistakes in Technical Paper Writing

Let me share some experience in this post with you. I'm currently in the second year of my Ph.D. program. We are in the middle of paper...