there are generally only 2 types of functions, 'void' and 'int'
Adding on to @DynamicSquid 's comment Functions can have many return types. you have things like std::string, std::map instances of your own classes and many many many more from the standard libraries.
SHORT C++ Tutorial Pt1: The Basics
This may be a little confusing for some people...
Short Tutorial on the [The Basics] of C++.
Hope you enjoy!
FULLSCREEN HERE
Adding on to @DynamicSquid 's comment
Functions can have many return types. you have things like
std::string, std::map
instances of your own classes and many many many more from the standard libraries.@CSharpIsGud But she was referring to the main ones.
@DynamicSquid well you could say that bool and float and double are "main ones".
@anotherthel well sure. I guess it varies though between people and what you do
@DynamicSquid yeah i guess so.
@anotherthel @DynamicSquid the only main one is int 😜
@Highwayman well u could say the only main one is the one u actually need, which yes, is int
@Highwayman i meant main by included so like bool float whatever
@anotherthel ik I was just joking around :P
@Highwayman haha nice one lol :)
@anotherthel you need every primitive type