Mail Archives: djgpp/1997/06/10/04:19:57
On Sat, 07 Jun 1997 21:06:00 GMT, kdor AT geocities DOT com (Kristian
Dorland) wrote:
#include<stdio.h>
>main()
/* This should rather be int main(void). */
> {
> int one == 1234;
/* ^^^^
== stands for a test of equality. You have to use = for assignment.*/
int one = 1234;
> printf("%d",one);
return 0;
/* return default is int */
> }
Hope this helps.
Nighthawk
--
*------- REMOVE .NOUCE and .NOSPAM to eMail me ----------*
*Artificial intelligence is better than natural stupidity*
*If something can go wrong, it will. *
*If something can _not_ go wrong, it will. *
*If something went wrong, it will become even worse. *
*---------------- PGP Public Key aviable ----------------*
- Raw text -