Hi all,
I am trying to use 2 files, abc.cpp and test.cpp, where test.cpp uses a "#include abc.cpp" to include abc.cpp. But there seem to be some problems and i can't seem to find out why. If someone could point me in the right direction would be great:
[CODE
//abc.cpp
]int solve(P & p) {
return 1; // this does nothing at the moment
}[/CODE]
Code://test.cpp
#include<iostream>
using namespace std;
class L {};
class H {};
class P {
int val;
public:
P(int Val) {
val = Val;
int i=max-min+1;
while(i/=2) lgn++;
}
void testing123(int g){
if(g<val) throw L();
if(g>val) throw H();
return;
}
};
int main()
{
for(int i=0; i<=1280; i++)
if(solve(P(0,1280,i)) != i) cout << "wrong answer\n";
system("pause");
return 0;
}
