# A little programming help

**URL:** <https://forum.kirupa.com/t/a-little-programming-help/182494>\
**Category:** Uncategorized\
**Created:** [March 18, 2006, 8:40pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494 "2006-03-18T20:40:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)\
**Post date:** [March 18, 2006, 8:40pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/1 "2006-03-18T20:40:06Z")

</div>

i am sorry i know this isn’t related to flash, but i need to know

what is wrong with this code…

Program test;  
\_\_Uses  
\_\_\_\_WinTypes, WinProcs, WObjects, WinDOS;  
\_\_Var  
\_\_\_\_dummyText : string;  
\_\_Begin  
\_\_\_\_dummyText := “Hello Hongfire!”;  
\_\_\_\_write(dummyText);  
\_\_End.

what language is this in anyways?

i thinking it is this part?  
dummyText := “Hello Hongfire!”;

you can’t declare dummyText like that? i am not sure O\_o

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 18, 2006, 11:39pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/2 "2006-03-18T23:39:53Z")

</div>

well, its definately a lower lvl coding language, maybe asm? don’t know and how do you know its wrong… if you don’t know what language it is…

---

<div class="post-metadata">

**Author:** ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)\
**Post date:** [March 19, 2006, 12:24am UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/3 "2006-03-19T00:24:25Z")

</div>

the programming language is PASCAL

whats the problem! and yes i know its wrong cuz it is a problem someone gave me. there is something wrong with the code

---

<div class="post-metadata">

**Author:** ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)\
**Post date:** [March 22, 2006, 12:34pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/4 "2006-03-22T12:34:20Z")

</div>

_bump_ anyone know PASCAL?

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 22, 2006, 3:55pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/5 "2006-03-22T15:55:37Z")

</div>

google pascal syntax you will probably find out whats wrong

---

<div class="post-metadata">

**Author:** ![Dtads](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dtads/32/1230_2.png) [@Dtads](https://forum.kirupa.com/u/Dtads)\
**Post date:** [March 22, 2006, 8:37pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/6 "2006-03-22T20:37:12Z")

</div>

■■■■ been a while since I program in pascal, ddidn’t realise people still use it… I am not sure about the dummyText ( := ) , could it be the semicolon and equal sign, is it valid?.

If not that, it my be the declaration of the variable, isn’t “string” meant to start with capital “S”…  
Its been years since I use pascal, so I could be wrong.

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 26, 2006, 9:28pm UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/7 "2006-03-26T21:28:57Z")

</div>

no point in reinventing the wheel, as of now i would stick with a higher level of programming, maybe c++, the only way you would really need pascal is for the stuff that programming languages like C++ can’t do which is very little but umm i guess it could come in handy to learn

---

<div class="post-metadata">

**Author:** ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)\
**Post date:** [March 27, 2006, 11:31am UTC](https://forum.kirupa.com/t/a-little-programming-help/182494/8 "2006-03-27T11:31:07Z")

</div>

ok then how about this?

void what\_do\_I\_do(int a, int b) {  
\_\_System.out.println(a + " " + b);  
\_\_a ^= (b ^= (a ^= b));  
\_\_System.out.println(a + " " + b);  
}

tell me what that method does if a = 3 and b = 6
