|
-
April 16th, 2002, 10:31 PM
#1
Member
Help with C
I am just getting started with C and have been doing some basic programs and such when today, we I tried to make a program expermenting with the float data type, I would get a error in debug referring to the header.
c:\program files\microsoft visual studio\teststido\teststido.cpp(12) : f
cruiouse, and unable to solve the problem, I tried other programs that included "printf" and the header stdio.h and all of the programs returned the same error on debug. Even code as simple as:
#include <stdio.h>
main()
{
printf ("lala.\n");
return ();
}
returns that error, I could use any help, thanks ^ ^
-Radiator52
WWJD
What Would Jesus Do (For a klondike Bar?)
-
April 16th, 2002, 10:32 PM
#2
Member
Sorry.. the error message read:
c:\program files\microsoft visual studio\teststido\teststido.cpp(12) : fatal error C1010: unexpected end of file while looking for precompiled header directive
WWJD
What Would Jesus Do (For a klondike Bar?)
-
April 16th, 2002, 10:35 PM
#3
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
April 16th, 2002, 10:37 PM
#4
Member
Oh right, that was just a typo in the code, I still get the error message
WWJD
What Would Jesus Do (For a klondike Bar?)
-
April 16th, 2002, 10:43 PM
#5
other possibility:
<stdio.h> is for c not c++ (cpp)
<iostream.h> is for c++
then it'd be
cout << "lala\n"
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
April 16th, 2002, 10:47 PM
#6
Member
stdio.h used to work, now it suddenly just stoped working..and it says to use stdio.h in the manual i have
hm...
WWJD
What Would Jesus Do (For a klondike Bar?)
-
April 16th, 2002, 10:49 PM
#7
stdio.h is still aval in C++, and is probably not the problem. On the other hand you seem to have made the problem a LOT of new programmers make. Try your program like this, then compare it with what you had...>
Code:
#include <stdio.h>
int main(void) {
printf("Lala!\n");
return 0;
}
-
April 16th, 2002, 10:51 PM
#8
and I tested my code on Borland C++ 5.5.1 for Win32, Just thought I would mention this...
-
April 16th, 2002, 10:51 PM
#9
how about:
int main(void)
{
//ur code here
}
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
April 16th, 2002, 10:54 PM
#10
Member
Still nothing.. I thought maby stdio.h header file was deleated so I ran a search.. 3 found = \
<stdio.h> is for c not c++ (cpp)
C is what im trying to learn, not c++, incase there was a mis-communication
WWJD
What Would Jesus Do (For a klondike Bar?)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|