Beruflich Dokumente
Kultur Dokumente
#include <cstdlib>
using namespace std;
void print(int);
void combine(int, int);
int main()
{
int a = 5;
int b = 6;
cout << "hello, world!" << endl;
print(a);
combine(a,b);
system("pause");
return 0;
}
void print(int a)
{
cout << a << endl;
}
void combine(int a, int b)
{
cout << a << ", " << b << endl;
}
g language [designed] for building and using efficient and elegant abstractions"
;[3] and "offering both hardware access and abstraction is the basis of C++. Doi
ng it efficiently is what distinguishes it from other languages".[21]
C++ inherits most of C's syntax. The following is Bjarne Stroustrup's version of
the Hello world program that uses the C++ Standard Library stream facility to w
rite a message to standard output:[22][23]*/