@vncpetrov/

printSentence1

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

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

// Declaration
void printSentence();  

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

// Definition
void printSentence() {              
    cout << "I am learning functions in C++.";
}