Sie sind nicht angemeldet.
Zitat von »Rotring«
buffer = word[i];

Neues moddingtech.de Portal online!
Zitat von »Rotring«
@Yogi
ops...da ist mir wohl ein Mistgeschick unterlaufen...war im Stress...ganz so einfach isses wohl doch nich *g*
3. Beispiel
void turn()
{
char buffer[MAX];
int n = 0;
for (int i= MAX; i >= 0; i--)
{
buffer[n] = word;
n++;
}
word = buffer;
}
|
|
Quellcode |
1 2 3 4 |
for (int i=0; i<MAX; i++) buffer[i]=word[MAX-i-1]; for (int i=0; i<MAX; i++) word[i]=buffer[i]; |

Zitat von »gerzii«
1. Beispiel
Schreiben Sie eine Funktion
int Search (char Text[], char Letterl, Letter2);
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
#include <string>
int Search (char Text[], char Letter1, Letter2){
std::string st = Text;
std::string::size_type sz = st.search(std::string(Letterl)+std::string(Letter2));
if (sz!=std::string::npos)
return sz;
return -1;
}
|
-