Categories > Coding > C++ >

I don't understand C++

TaxiDriver08

JustMarie

Posts: 1218

Threads: 33

Joined: Dec, 2020

Reputation: 6

Replied

@63568

think about it again ;)

  • 0

JustMarie#0709

 

0x90

dingleberry#2286

vip

Posts: 224

Threads: 26

Joined: Dec, 2020

Reputation: 27

Replied

@Xorenos

You can achieve a somewhat "any type" standard without templates, even in C. 

Anything can be represented as a number, that's why C people be using void* for everything, I didn't mean it in a literal sense, I meant it in the explanation of typed syntax. Even in that sense you still have to declare the type being used for the template if it's used in a class or struct. I meant more so in a lua-like scenario. You can't have a value set to a number then set it to a string later, unless you "go around" it.

  • 0

MINISHXP

minishxp

Posts: 814

Threads: 4

Joined: Jan, 2021

Reputation: 9

Replied

cornhub.com

  • 0

hi123

Moon

Moon

vip

Posts: 6196

Threads: 262

Joined: Aug, 2020

Reputation: 77

Replied

@MINISHXP

Can you not

  • 0

MINISHXP

minishxp

Posts: 814

Threads: 4

Joined: Jan, 2021

Reputation: 9

Replied

@59853sorry

  • 0

hi123

Moon

Moon

vip

Posts: 6196

Threads: 262

Joined: Aug, 2020

Reputation: 77

Replied

@MINISHXP

10 Notifications from you what-

  • 0

Xorenos

Jimmy "The Carpet" Skovic

Posts: 26

Threads: 0

Joined: Feb, 2021

Reputation: 10

Replied

@0x90

Yeah you can use void* it's just we're dealing with modern C++ here and I found it appropriate to mention templates, it's a must know in modern C++, but then again we have things like this in modern C++

class the_best_class_in_the_whole_universe
<%
    _declspec(noinline) virtual const unsigned long unsigned long unsigned __fastcall __declspec_noinline_virtual_const_unsigned_long_unsigned_long_unsigned_fastcall() const <% return static_cast<const unsigned long unsigned long>(static_cast<bool>(static_cast<bool>(0.0f) + static_cast<bool>(0.0f) + static_cast<bool>(false + true) + static_cast<bool>(true - true) - true));%>;
%>the_best_class_in_the_whole_universe,*pthe_best_class_in_the_whole_universe;
  • 0

You are a feedback loop.

Posts: 614

Threads: 53

Joined: Feb, 2021

Reputation: 3

Replied

@Xorenos

After seeing that I have decided not to learn cpp

  • 0

no

Error: The signature must be between 3-200 characters

Prev

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )