SHORT C++ Tutorial Pt1: The Basics
SilentShadowBla (551)

This may be a little confusing for some people...

Short Tutorial on the [The Basics] of C++.

Hope you enjoy!

You are viewing a single comment. View All
CSharpIsGud (825)

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.

DynamicSquid (4597)

@CSharpIsGud But she was referring to the main ones.

anotherthel (0)

@DynamicSquid well you could say that bool and float and double are "main ones".

DynamicSquid (4597)

@anotherthel well sure. I guess it varies though between people and what you do

anotherthel (0)

@Highwayman well u could say the only main one is the one u actually need, which yes, is int

anotherthel (0)

@Highwayman i meant main by included so like bool float whatever

Highwayman (1457)

@anotherthel ik I was just joking around :P

CSharpIsGud (825)

@anotherthel you need every primitive type