Jump to content

Data Types and operators


_Seb1

5 posts in this topic

Recommended Posts

Updated

This is more an information post for people that don't know what as example an int is. I will explain this here.


Data Types: 
Int: comes from the word Integer and is a variable that can only hold full figures like 1, 56, -8 etc. 
Float or Double: these are floating point numbers like 4,6 12,7 the decimals are limited though.
Char: comes from "character" it is a variable used to save only characters such as: K, L, k, l
String: Well a String is basicilly a char array. A string contains more than one character as example full words.
Before we come to the last Data Type, I have to say that a char is always saved with an apostrophe ' 
as example: 'H' the string uses the " signs so: "hello".
Booleans: Booleans are variables that contain wheither a "true" or "false" value.

Now because we want to connect the variables with eachother we need operators:
arithmetic operators
compare operators
logic operators
Non of them are hard when you don't understand them the first time read it another time. Operators and algos are important for coding(algorythms are excluded here) as well as sortalgorymths such as Insertionsort(picks a random number out of a list and then sorts it after that), Mergesort(list gets divided in two different lists and always divided again and merged at the end) and bubblesort(I have no idea).

arithmetic operators
addition(+), substraction(-), multiplication(*), division(/), [salvage value(%)]
[Salvage value: if you divide two int values with eachother, just a full figure will be displayed the salvage value is for getting non divided value example: 
int restvalue;
restvalue = 17 % 5;
it would display 2.]

compare operators
compare operators are used to compare most likely numeric elements. the result is this is always a boolean value, which can be saved in a boolean variable.
compare operators are:
less <
less-equal <=
greater >
grater-equal >=
equal ==(two because one = sign is used to allocate values to variables, so the "equal" operator is a ==)
disparate != or <>

logic operators
with those operators you are able to connect boolean values with eachother, these operators operate on bool variables there are 4 logic operators.
Negationoperator: it negates the containment of a boolean value. is the value false the negationoperator turns it into true is it true it turns it into false. The Negationoperator is displayed by a !
exampls.:
bool trueorfalse1;
trueorfalse1 = false;

bool trueorfalse2;
trueorfalse2 = !trueorfalse1
trueorfalse2 has the value true now.

and-operator
an and-operator is used to connect 2 boolean values if both values are true. In every other cause it would display false. its realized through a double &
example.
bool trueorfalse1, trueorfalse2, trueorfalse3;
trueorfalse1 = true;
trueorfalse2 = false;
trueorfalse3 = true;

bool result1, result2;
result1 = trueorfalse1 && trueorfalse2;
result2 = trueorfalse1 && trueorfalse3;
result1 will be false and result2 will be true.

Or-operator
it connects 2 variables witheachother and displays true, if. at least one of the values are true. The command is a | |.
example.:

bool trueorfalse1, trueorfalse2;
trueorfalse1 = false;
trueorfalse2 = true;

bool result1, result2, result3;
result1 = trueorfalse1 | | trueorfalse2;
result2 = trueorfalse1 | | false
result3 = 3 = 3(true) | | false

result1 has the value true, result2 the value false, result3 has the value true.


either-or-operator
connects 2 bools with eachother and displays true if at exact 1 value is true, in all over causes its false, its realized through a circumflex ^.
example:
bool eitheror1, eitheror2;
eitheror1 = true ^ true;
eitheror2 = true ^ false;
eitheror1 is false and eitheror2 is true.


Then you can combine operators.
int result1, result2;
result1 = 2 + 3 + 4 - 5
result2 = 4 + 20 / 3 - 8 * 2;
 

-Seb

Enjoy

Posted
17 minutes ago, Joka said:

If you spelt racecar backwards, it would still be racecar 

(⌐■_■) 

19 minutes ago, Zimon said:

plz no hide <_< 

ok I‘ll edit it away.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Matching Story v1.42.04 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
      • 35 replies
    • Matching Story v1.42.04 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4

       
      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
      • 45 replies
    • Shadow Fight 4: Arena Cheat v1.9.50 +4
      Modded/Hacked App: Shadow Fight 4: Arena By Nekki Limited
      Bundle ID: com.nekki.shadowfightarena
      iTunes Store Link: https://apps.apple.com/us/app/shadow-fight-4-arena/id1479050948?uo=4


      Hack Features:
      - Freeze Enemies

      ViP Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
       

      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/136035-shadow-fight-4-arena-v1920-jailed-cheat-4/


      iOS Hack Download Link: https://iosgods.com/topic/136014-shadow-fight-4-arena-cheat-v1920-4/
      • 384 replies
    • [ ArKnights TW ] 明日方舟 v28.4.01 - [ x Player Damage & More ]
      Modded/Hacked App: 明日方舟 By GRYPH FRONTIER PTE. LTD.
      Bundle ID: tw.txwy.ios.arknights
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F/id1490985322?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - x Player Damage - x1 - 1000
      - x Player Defense - x1 - 1000
      - x Player Attack Speed - x1 - 10
      - Frozen Enemies
      - Instant - Kill
      - Instant - Win
      - Unlimited Skills
      - No Deploy Cost

       

      Non-Jailbroken Hack: https://iosgods.com/topic/129722-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/129583-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-x-player-damage-more/
      • 460 replies
    • Sneaky Sasquatch Cheats v2.0.6 +3
      Modded/Hacked App: Sneaky Sasquatch By RAC7 Games
      Bundle ID: com.rac7.SneakySasquatch
      iTunes Store Link: https://apps.apple.com/us/app/sneaky-sasquatch/id1098342019?uo=4


      Hack Features:
      - Infinite Gold
      - Unlock All
      - No Hunger


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148262-sneaky-sasquatch-v172-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/148261-sneaky-sasquatch-cheats-v172-3/
      • 183 replies
    • Mini Militia - Doodle Army 2 Cheats v5.6.0 +8 [ God Mode & More ]
      Modded/Hacked App: Mini Militia - Doodle Army 2 By Miniclip SA
      Bundle ID: com.chadtowns.da2
      App Store Link: https://apps.apple.com/us/app/mini-militia-doodle-army-2/id405885221?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - One Hit Kill
      - Infinite Ammo
      - No Reload
      - Infinite Grenade
      - Infinite Jetpack Boost
      - Friendly Fire Enabled
      - Premium

       

      Free Non-Jailbroken Hack: https://iosgods.com/topic/178790-mini-militia-doodle-army-2-v560-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/96342-mini-militia-doodle-army-2-cheats-v560-8-god-mode-more/
      • 602 replies
    • Tower of God: NEW WORLD Cheats v2.12.00 +4
      Modded/Hacked App: Tower of God: NEW WORLD By Netmarble Corporation
      Bundle ID: com.netmarble.tog
      iTunes Store Link: https://apps.apple.com/us/app/tower-of-god-new-world/id1599435437?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Critical
      - Skip Battle Intro


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/186202-tower-of-god-new-world-cheats-v20101-4/
      • 95 replies
    • Merge Magic Academy v1.7.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4


      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 1 reply
    • Merge Magic Academy v1.7.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4
       

      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 1 reply
    • Loot Heroes v1.8.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 118 replies
    • Loot Heroes v1.8.0 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 270 replies
    • Fisherman 2 v1.03.11 [+6 Jailed Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
      • 3 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines