Hello everybody, i am kinda new to programming. I used to do alot of C programming for psp, and i used cygwin. Im trying to learn regular C and some pascal now, but im having this problem with cygwin:

Craig@computer ~
$ #include <stdio.h>

Craig@computer ~
$

Craig@computer ~
$ main(){
> POINT pt;
> GetCursorPos(&pt);
bash: syntax error near unexpected token `&'

Craig@computer ~
$ }
bash: syntax error near unexpected token `}'

Craig@computer ~
$

This is What the bash says. Whats the problem here?

Also, The programmer doesnt recognize any pascal. i think i need libraries. Can somebody point me to some libraries for both c and pascal, and where do i save them under in cygwin?

Hello everybody,?

hi you posted in a windows xp/2000 OS help forum ,try the programing section of daniweb for you inquiry, top of the page ,software development

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.