@vncpetrov/

printSentence2-1

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6014186181511794","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPiAgICAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCi8vIERlY2xhcmF0aW9uIGFuZCBkZWZpbml0aW9uIGF0IHNhbWUgdGltZQp2b2lkIHByaW50U2VudGVuY2UoKSB7ICAgICAgICAgICAgICAgICAgICAgCiAgICBjb3V0IDw8ICJJIGFtIGxlYXJuaW5nIGZ1bmN0aW9ucy4iOyAgICAKfSAgCgppbnQgbWFpbigpIHsKICAgIC8vIEZ1bmN0aW9uIGNhbGwKICAgIHByaW50U2VudGVuY2UoKTsKICAgIHJldHVybiAwOwp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>    
using namespace std;

// Declaration and definition at same time
void printSentence() {                     
    cout << "I am learning functions.";    
}  

int main() {
    // Function call
    printSentence();
    return 0;
}