Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
/* STRCPY.C: This program uses strcpy
* and strcat to build a phrase.
*/
#include <string.h>
#include <stdio.h>
void main( void )
{
char string[80];
strcpy( string, "Hello world from " );
strcat( string, "strcpy " );
strcat( string, "and " );
strcat( string, "strcat!" );
printf( "String = %s\n", string );
}
#include <iostream>
#include <string>
int main( argc, argv )
int argc;
char **argv;
{
String str = "Hallo";
String str2 = ", Welt!";
String b = str + str2;
std::cout << b << std::endl;
return 0;
}
#include <iostream>
#include <fstream>
#include <string>
int main(void)
{
std::ifstream file("test.txt"); //File-Stream anlegen (File muss existieren)
std::string strTmp;
while(!file.eof()) //So lange, bis File-Ende
{
std::getline(file,strTmp); //Zeile einlesen
std::cout<<strTmp<<'\n'; //Zeile ausgeben + nächste Zeile
}
file.close(); //Filestream schließen, HIER nicht unbedingt nötig
return 0;
}