#why we use
50 messages · Page 1 of 1 (latest)
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.
@lyric quail It'll make more sense as you learn more of the language.
#include <iostream> includes declarations for standard library i/o utilities
can you tell me whit an example?
And every C++ program must have an int main() {}, that's where your program starts running
If you want to use std::cout or std::cin, you must #include <iostream>
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:
- Programiz
- codecademy
- learncpp.com if you have prior experience with programming
- [Programming Challenges](#archived-resources message)
- CodinGame
- LeetCode
- HackerRank
- An Introduction to Modern CMake
- Our #archived-resources channel. It contains many useful utilities.
We recommend these resources for learning C++
Yep
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
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)
yep
in main you are allowed to omit the return 0;, it's a special case in the language
Okay
Only in main
any other function you must return correctly
(i.e specifically main returning 0 is the special case)
do you have any tip for me i am beginner? @jaunty swift @tacit kayak
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:
- Programiz
- codecademy
- learncpp.com if you have prior experience with programming
- [Programming Challenges](#archived-resources message)
- CodinGame
- LeetCode
- HackerRank
- An Introduction to Modern CMake
- Our #archived-resources channel. It contains many useful utilities.
We recommend these resources for learning C++ @lyric quail
okay
i am stuck on a very small issue can you help?
scroll down in the sidebar, there are more instructions
@lyric quail Has your question been resolved? If so, run !solved :)
There is no difference
okay
ya but it showed an error
What error did it show
It is not continuing
Btw I figure it out thank you for asking
@lyric quail Has your question been resolved? If so, run !solved :)
!solved