Hi
I have Main.cpp and Hello.cpp files in my Dev C++ project.
Main.cpp
#include "Hello.cpp"
int main(){
return 0;
}
Hello.cpp
#include<stdio. h>
int main(){
printf("Hello World!");
getchar();
return 0;
}
//here is a square char and it rises error
My question is: Suppose i cant modify Hello.cpp. What can i do to
make
the compiler to ignore the square at the end of Hello.cpp file?
Regrads
Grzesiek Wilanowski
I have Main.cpp and Hello.cpp files in my Dev C++ project.
Main.cpp
#include "Hello.cpp"
int main(){
return 0;
}
Hello.cpp
#include<stdio. h>
int main(){
printf("Hello World!");
getchar();
return 0;
}
//here is a square char and it rises error
My question is: Suppose i cant modify Hello.cpp. What can i do to
make
the compiler to ignore the square at the end of Hello.cpp file?
Regrads
Grzesiek Wilanowski
Comment