Can' t run code that worked before

I am using Codeblocks and I wrote a programm from the beginner exercises. Everything worked fine until recently when I executed the program again and the console was empty and no error appeared. I don't know why this happens, because I changed nothing in my code. The files are all in the same directory.

main File:
1
2
3
4
5
6
7
8
9
10
#include "funWithFunctions.h"

using namespace std;

int main()
{
    //Seite 36
    void funWithFunctions();
    return 0;
}


Header File:
 
void funWithFunctions();


funWithFunctions.cpp File:
1
2
3
4
5
6
7
#include <iostream>

using namespace std;

void funWithFunctions(){
    cout << "Hello";
}
Last edited on
Remove void from line 8 in main.
Hello Fajsdie,

in line of the main file this is a function proto type or forward declaration not a function call. try removing the "void" and see what happens.

Hope that helps,

Andy
Last edited on
Thank you, I don't know how I could oversee this dump mistake
Topic archived. No new replies allowed.