Register | Login
Forum Index > Bugs and Fixes > ord() problem
Author Message
Pages: 1
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1733] ord() problem - posted: 2015-02-18 22:55:19
Seems this code cannot compiles, console closes without success message:
Code:
program RAW_IMAGE 'test';

#set bits 32;

al = ord('\');
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1734] - posted: 2015-02-18 23:06:04
This should cause an unexpected EOF, this is because \ acts as a special character in strings, so you are actually outputting ' inside ord.

try al = ord('\\');

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 8 user(s) online. 0 member(s) and 8 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd