Computer Science Canada
Programming C, C++, Java, PHP, Ruby, Turing, VB
Username:
Password:
Register
Wiki
Blog
Search
Turing
Chat Room
Members
[Tutorial] Very Simpel I/O
Index
->
Programming, Turing
->
Turing Tutorials
Author
Message
Dan
Posted:
Sun Sep 15, 2002 7:56 pm
Post subject: [Tutorial] Very Simpel I/O
Ok this tutorial is mainly for people new to Turing and is about how to put text on the screen and get input form the user.
How to put text on the screen with out var's:
code:
put "your text here" %displays text in " "
put "hello all ".. % .. makes the next put go to the same line
put "this is Turing"
How to display text using a var:
code:
var mytext :string %decaler your string here
mytext := "I am programming in Turing!!!" %set the value of mytext
put mytext %displays the value of mytext
How get input from a user:
code:
var name :string %value to store input from user
put "What is your name?"; %ask the user for there name
get name %input the users text to the var name
put "Hello ".. %say hello to user
put name
Ok that is very simple I/O in Turing, if I have time I will try to add more. If you have any questions about this plz post and let us know.
Sponsor
Sponsor
Jonny Tight Lips
Posted:
Sat Jul 26, 2003 5:44 pm
Post subject: question
after the % is it a comment? Or is it something immportant?
rizzix
Posted:
Sat Jul 26, 2003 5:46 pm
Post subject: (No subject)
it's a comment -- ignored by the compiler/interpreter.
PaddyLong
Posted:
Sat Jul 26, 2003 8:40 pm
Post subject: (No subject)
wow a post by Dan and no typos ...
SilverSprite
Posted:
Sat Jul 26, 2003 8:47 pm
Post subject: Re: [Tutorial] Very Simpel I/O
Hacker Dan wrote:
Ok this tutorial is mainly for people new to Turing and is about how to put text on the screen and get input
form
the user.
bolded a typo:P Not to mention the title of the thread.
PaddyLong
Posted:
Sun Jul 27, 2003 1:23 pm
Post subject: (No subject)
heh
netninja
Posted:
Wed May 19, 2004 6:24 pm
Post subject: (No subject)
dont patronize him so much
Good post though, maybe theres someone out thats heard of turing but doesnt know about put. heh
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Index
->
Programming, Turing
->
Turing Tutorials
Page
1
of
1
[ 7 Posts ]
Jump to:
Select a forum
CompSci.ca
------------
- Network News
- General Discussion
General Forums
-----------------
- Hello World
- Featured Poll
- Contests
Contest Forums
-----------------
- DWITE
- [FP] Contest 2006/2008
- [FP] 2005/2006 Archive
- [FP] 2004/2005 Archive
- Off Topic
Lounges
---------
- User Lounge
- VIP Lounge
Programming
--------------
- General Programming
General Programming Forums
--------------------------------
- Functional Programming
- Logical Programming
- C
C
--
- C Help
- C Tutorials
- C Submissions
- C++
C++
----
- C++ Help
- C++ Tutorials
- C++ Submissions
- Java
Java
-----
- Java Help
- Java Tutorials
- Java Submissions
- Ruby
Ruby
-----
- Ruby Help
- Ruby Tutorials
- Ruby Submissions
- Turing
Turing
--------
- Turing Help
- Turing Tutorials
- Turing Submissions
- PHP
PHP
----
- PHP Help
- PHP Tutorials
- PHP Submissions
- Python
Python
--------
- Python Help
- Python Tutorials
- Python Submissions
- Visual Basic and Other Basics
VB
---
- Visual Basic Help
- Visual Basic Tutorials
- Visual Basic Submissions
Education
-----------
- Student Life
Graphics and Design
-----------------------
- Web Design
Web Design Forums
---------------------
- (X)HTML Help
- (X)HTML Tutorials
- Flash MX Help
- Flash MX Tutorials
- Graphics
Graphics Forums
------------------
- Photoshop Tutorials
- The Showroom
- 2D Graphics
- 3D Graphics
Teams
------
- dTeam Public
Style:
Appalachia
blueSilver
eMJay
subAppalachia
subBlue
subCanvas
subEmjay
subGrey
subSilver
subVereor
Search:
You can syndicate this boards posts using the file
backend.php
or view the
topic map using sitemap.php.
Terms of Use
|
Privacy Policy