#include "file1.c"
What I want to do is call a function from file1.c in a function built into file2.c, is this possible?




Posted 06 October 2009 - 10:16 PM
#include "file1.c"
Posted 06 October 2009 - 10:49 PM
zefiend, on 7 Oct, 2009 - 04:16 AM, said:
#include "file1.c"
Posted 06 October 2009 - 11:42 PM
#pragma once;
class fun
{
int add(int a, int b)
{
return a+b;
}
};
#include <iostream>
using namespace std;
int main()
{
fun x;
cout<<x.add(1,2)<<endl;
cin.get();
cin.ignore();
return 0;
}
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
