initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#include "linker.h"
|
||||
|
||||
void ausgabe(int ausgabeWert){
|
||||
std::cout << "Ausgabe" << ausgabeWert;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int fehler;
|
||||
|
||||
cout << fehler
|
||||
}
|
||||
|
||||
//AsemblerCode mit -S und erzeugteDatei.s
|
||||
@@ -0,0 +1,6 @@
|
||||
int main(){
|
||||
int array[3];
|
||||
for(int i = 0; i <= 3; i++){ //Es wird außerhalb des Arrays geschrieben -> Laufzeitfehler
|
||||
array[i] = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include "linker.h"
|
||||
|
||||
int main(){
|
||||
int ausgabeWert = 1;
|
||||
|
||||
ausgabe(ausgabeWert); //Falscher Funktionsname
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
#include <iostream>
|
||||
|
||||
void ausgabe(int ausgabeWert);
|
||||
@@ -0,0 +1,8 @@
|
||||
#include <iostream>
|
||||
#include "fehler.h" //Nicht benötigte Datei entfernen, Fehler da Datei nicht existiert
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(){
|
||||
cout << "Dies ist ein präporzessor Fehler";
|
||||
}
|
||||
Reference in New Issue
Block a user