#why we use

50 messages · Page 1 of 1 (latest)

lyric quail
#

#include <iostream> in the code
and
int main(){

} in the code i am new

lament brookBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

tacit kayak
#

@lyric quail It'll make more sense as you learn more of the language.

#

#include <iostream> includes declarations for standard library i/o utilities

lyric quail
#

can you tell me whit an example?

tacit kayak
#

And every C++ program must have an int main() {}, that's where your program starts running

tacit kayak
lament brookBOT
#
How to Learn C++ Programming

Everyone learns differently, but the best way is to learn by doing: Working on personal projects, solving programming challenges, etc. Here are some resources to accompany you:

C++ Tutorials
Practice
See Also
tacit kayak
#

We recommend these resources for learning C++

lyric quail
#

okay

#

@tacit kayakint is use for integer?

tacit kayak
#

Yep

lyric quail
#

so

#

the

#

code is telling the main is an integer and the inside of it is also integer?

#

im correct?

#

and std :: cout<< is a print command?

#

like

#

python

tacit kayak
#

main is a function which returns an integer

#

though unlike other functions you're allowed to omit the return in main (it defaults to returning zero)

tacit kayak
lyric quail
#

okay

#

if i don't put return 0; what will happend?

tacit kayak
#

in main you are allowed to omit the return 0;, it's a special case in the language

lyric quail
#

Okay

jaunty swift
#

Only in main

#

any other function you must return correctly

#

(i.e specifically main returning 0 is the special case)

lyric quail
#

do you have any tip for me i am beginner? @jaunty swift @tacit kayak

lament brookBOT
#
How to Learn C++ Programming

Everyone learns differently, but the best way is to learn by doing: Working on personal projects, solving programming challenges, etc. Here are some resources to accompany you:

C++ Tutorials
Practice
See Also
tacit kayak
#

We recommend these resources for learning C++ @lyric quail

lyric quail
#

i am stuck on a very small issue can you help?

tacit kayak
#

scroll down in the sidebar, there are more instructions

lyric quail
#

oh

#

done

#

thank you

#

for the help

#

what is wrong whit this code?

lament brookBOT
#

@lyric quail Has your question been resolved? If so, run !solved :)

tacit kayak
#

There is no difference

lyric quail
tacit kayak
#

What error did it show

lyric quail
#

Btw I figure it out thank you for asking

lament brookBOT
#

@lyric quail Has your question been resolved? If so, run !solved :)

lyric quail
#

!solved