Hi, I'm new... I gave up months back when I tried to do C but I'm giving a 2. nd go at it. However, I've ran into the same problem... I'm using Osborne McGraw-Hill...
Could some some tell me and then explain why it's an error? I'm using Dev-C++
Code:
#include "stdio.h"
main()
{
func2()
printf("3 ");
}
func2()
{
func1()
pfintf("2 ");
}
func1()
{
printf("1 ");
}
- 'func2' undeclared (first use this function)
-`;' before "printf"
- ISO C++ forbids declaration of `func2' with no type
and so on...
Code:
#include "stdio.h"
main()
{
one();
two();
}
one()
{
printf("The summer solider, ");
}
two()
{
printf("the sunshine patriot.");
}
this one is one the exercise but the same "undeclared" comes up as well... I checked the answer and that's the answer.
It's so fustrating that I copied exactly what the book said and it's still an error
Thanks for any help.