I'm making a library for myself, and I keep getting that error :(
Pib.h:
#pragma once
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
class Pib{
public:
void echo (int Text);
void test(void);
};
void Pib::echo(int Text){
printf("Haha: "+Text);
};
void Pib::test(void){
cout<<"Text";
};
Main File:
#include "stdafx.h"
#include "Pib.h"
#include <iostream>
#include <string>
int main(int argc, _TCHAR* argv[]){
string a="D:";
Pib::test();
getline(cin,a);
return 0;
}
Thanks if you can help! Keep in mind that I am learning C++ and may need some extra help putting in fixes, :P