Code: Alles auswählen
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
using namespace std;
void gotoxy(int x, int y)
{
printf("\033[%d;%dG", y, x);
}
void home()
{
int x[2] = {0,0};
printf("\033[%d;%dG",x[1],x[2]);
}
void writehead(string header, string filepath)
{
FILE *ini;
ini=fopen(filepath.c_str(),"t");
fprintf(ini,header.c_str());
fclose(ini);
}
"Multiple Definition of gotoxy(int, int)"
"First declared here" --> zeigt auf Zeile 7
"Multiple Definition of home()"
"First declared here" --> zeigt auf Zeile 12
"Multiple Definition of writehead(std::basic_string<char, std::char_traits<char>, std::allocator<..."
"First declared here" --> zeigt auf Zeile 18
(... zeigt an dass es dann noch weiter geht, mehr Parameter als meine writehead function)