Hellow I am trying to write a fairly simple program in C and get an error in
line 2. I look at the code and can't find a line number in line 2 thoe. Can
someone please help?
From: Ioannis V. <no...@ya...> - 2001-08-03 16:19:24
you forgot a } after return result;
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of Jared
> Sent: Friday, August 03, 2001 6:11 PM
> To: dev...@li...
> Subject: [Dev-C++] errors in devc++ with no visible cause
>
>
> Hellow I am trying to write a fairly simple program in C and
> get an error in line 2. I look at the code and can't find a
> line number in line 2 thoe. Can someone please help?
>
From: Bruno B. <bbe...@cl...> - 2001-08-03 18:54:48
Hello,
Here is the right code :
int multiply(int x, int y)
{
int result;
result= x * y;
return result;
}
int main()
{
int answer;
answer = multiply(3, 5);
printf ("the multiplication answer to 3 and 5 is%d.\n",answer);
return 0;
}
From: Luigi S. <gi...@li...> - 2001-08-05 02:39:42
Hi !
A possible explanation.
Line #2 of your C source file says:
// this is ...
I think it should be (assuming you are using ANSI C 89-90)
/* this is ... */
At 12.10 03/08/01 -0400, you wrote:
>Hellow I am trying to write a fairly simple program in C and get an error in
>line 2 ...
--
gisan
gi...@li...
Yes but it will have to work as long as using C++ as language ?
(see settings for language)
or am i wrong ?
On 4 Aug 2001, at 9:29, Luigi Santillo wrote:
> Hi !
>
> A possible explanation.
>
> Line #2 of your C source file says:
> // this is ...
>
> I think it should be (assuming you are using ANSI C 89-90)
> /* this is ... */
>
> At 12.10 03/08/01 -0400, you wrote:
> >Hellow I am trying to write a fairly simple program in C and get an err=
or in
> >line 2 ...
>
> --
> gisan
> gi...@li...
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
J=FCrgen Schuhmacher
jsc...@gm...