Soooo, hallo erstmal.
Bin neu hier und stell mich mal vor:
Name:Lukas
Alter: 16
Beruf: Schüler
Hobbys:Mit Freunden rumhängen, zocken(vorwiegend auch mit Freunden
), musik hören, zeichnen und neuerdings auch programmieren
Schonmal vorweg, ich bin nicht so einer der sagt: Ich lern C++ und programmier nach einer woche ein mmorpg...naja
Nun hier is das problem, (hoffe das klappt auf anhieb mit den quelltext einfügen)
:
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
// cmd "help" befehl aufführen
//
#include <iostream>
using namespace std;
int main ()
{
//Vars.
//
int help;
int auswahl_1;
int auswahl_2;
int auswahl_3;
int auswahl_4;
int auswahl_5;
help = 0;
auswahl_1 = 0;
auswahl_2 = 0;
auswahl_3 = 0;
auswahl_4 = 0;
auswahl_5 = 0;
cout << "Luniel Soft version 1.0.0" << endl;
cout << "Copyright (c) all rights reserved " << endl;
cout << "\n\n(1) for help" << endl;
cout << " //lun.exe/:" ;
cin >> help;
if (help == 1)
{
cout << "(2)user (show current admin)" << endl;
cout << "(3)showIP (show current IP)" << endl;
cout << "(4)config (change current config)" << endl;
cout << "(5)speedtest (show current Mb/s" << endl;
cout << "(6)close (close TAB)\n\n" << endl;
cout << "//lun.exe/:";
cin >> auswahl_1;
}
if (auswahl_1 == 2)
{
cout << "\n\nloged in: LUNIELPC" << endl;
cout << "//lun.exe/:";
cin >> auswahl_2;
}
if (auswahl_2 == 3)
{
cout << "\n\n.................5.2.186.255" << endl;
cout << "//lun.exe/:";
cin >> auswahl_3;
}
if (auswahl_3 == 4)
{
cout << " not available yet" << endl;
cout << "//lun.exe/:";
cin << auswahl_4
}
if (auswahl_4 == 5)
{
cout << "Current: 1,7 Mb/s " << endl;
cout <<"//lun.exe/:";
cin << auswahl_5;
}
if (auswahl_5 == 6)
{
cout <<" Close...pleas wait." << endl;
}
else
{
cout << "unknown" << endl;
cout << "//lun.exe/:";
cin << auswahl_1;
}
return 0;
}
|
Ich weiß ungefähr wo das prob is, jedoch weiß ich nicht wie ich es beheben soll.
Ziel des ganzen war es cmd zu kopieren (mehr schlecht als recht, ich weiß xD)
Wollte halt nochmal alle bisher gelernten befehle verinnerlichen ( bin im Buch S.70 und wollte mit den "if"," else" und "if else" mal rumexperimentieren)
ach ja und ich beschäftige mich damit erst seit 3 tagen
bitte nich allzu hart sein
MfG Luniel/Lukas