BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
hello.cc File Reference
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 2 of file hello.cc.

2 {
3 int len = 0;
4 char* p = 0;
5 if (len > 0) {
6 p = new char[len];
7 }
8 std::cout << static_cast<void*>(p) << std::endl;
9
10 int len2 = 10;
11 char* p2 = new char[len2];
12 std::cout << static_cast<void*>(p2) << std::endl;
13}