0

Even tho I type the function correctly my compiler doesn't show some of them in output

compiler does not sent any error message tho

18th Apr 2018, 6:15 PM
Ziyad Aldoumany
Ziyad Aldoumany - avatar
5 odpowiedzi
+ 2
I commented what needs to be changed for it to run. #include <iostream> using namespace std; void line();//okay int main(){ //need quotation marks cout<<"hello world"<<endl; //don't need return type line(); return 0; } //needs to be void line() //and needs quotation marks void line() { cout<<"——————————"<<endl; }
19th Apr 2018, 4:34 AM
Zeke Williams
Zeke Williams - avatar
+ 4
Hello Zed Mleh , which programming language are you speaking of, and can you please provide your code with this function?
18th Apr 2018, 7:25 PM
Zeke Williams
Zeke Williams - avatar
+ 2
Coding language please? And the function definitions? Zed Mleh
18th Apr 2018, 7:32 PM
Zeke Williams
Zeke Williams - avatar
+ 2
c++ for example: #include <iostream> using namespace std; void line(); int main(){ cout<<hello world<<endl; void line(); return 0; } void(){ cout<<——————————<<endl; }
19th Apr 2018, 3:10 AM
Ziyad Aldoumany
Ziyad Aldoumany - avatar
+ 1
void line() , message()
18th Apr 2018, 7:32 PM
Ziyad Aldoumany
Ziyad Aldoumany - avatar