Nyuke
actually the error is
Nyuke
G:\Code\C Language\BetterCalculator.cpp:10:10: error: 'num1' was not declared in this scope cin >> num1;
Farhan
Waht error
Anonymous
Nyuke
?
Nyuke
the integer is declared
Nyuke
correct me wherever im wrong, Still a noob, Learning
Anonymous
Show your current code
Anonymous
And you seem to have written not num1 but numl
Anonymous
You declared 'numl'
Anonymous
And trying to access num1
Nyuke
works like charm now
Nyuke
Anonymous
oh lol sorry and thanks
You didn't copypaste this code, right?
Nyuke
no man if i did that then why there would be any error
Nyuke
typing mistake
Anonymous
Yes. Be careful about such traps next time.
Nyuke
and i forgot to add print statement also.
Francisco
Francisco
Even me couldn't find it
Francisco
If I want to troll someone that copies my code when they shouldn't, that's a good way to do it
Francisco
Not meaning that you copied it, but it's a pretty troll error
Nyuke
i just started learning cpp and there are people who say cpp is not good
Francisco
Depends on the subject. For web development there's better options. For high-performance code it's esentially the best
Pavel
i just started learning cpp and there are people who say cpp is not good
It always depends. There's no perfect language for all needs. As there's no perfect solutions for most of the problems.
Nyuke
"Shit type system. Imperative. Shared memory. Completely mutable. Shitty support for higher level. Cannot do front end"
Nyuke
thats what they said
Pavel
Bet they work with JavaScript
Cuz they said something like "it's not JavaScript"
Artöm
Bet they work with JavaScript
> be js > call c++ type system shitty
Nyuke
they say haskell is best
Artöm
Roxifλsz 🇱🇹
reddit spacing
That's not reddit spacing, rart
Nyuke
i say noone in my country asks for haskell
Artöm
they say haskell is best
I think frontend in haskell would be as monstrous as in c++
kλletaa
That's not reddit spacing, rart
only redditors space after le greentext char
kλletaa
friend
Artöm
They're just different languages with different purposes
Francisco
they say haskell is best
It quite is when we talk about its type system and inmutability
kλletaa
they say haskell is best
haskell's good
Roxifλsz 🇱🇹
only redditors space after le greentext char
>this is >reddit spacing
kλletaa
>this is >reddit spacing
> this is also reddit spacing
Nyuke
but i like python more :C
Roxifλsz 🇱🇹
but i like python more :C
Check out nim lang, it's like python but compiled :^)
Francisco
Check out nim lang, it's like python but compiled :^)
That beats the whole purpose of Python, which is to do things in a short time
Pavel
they say haskell is best
less listen to people who say such things Haskell is better is some cases, C++ is better in other cases
Roxifλsz 🇱🇹
That beats the whole purpose of Python, which is to do things in a short time
How about doing things in a short time, but also having it run for a short time
Nyuke
are there any companies which solely works on haskell?
Anonymous
less listen to people who say such things Haskell is better is some cases, C++ is better in other cases
These who tried only php/js/haskell cannot talk about C/C++. Their opinion wouldn't be taken serious in most cases, because they know nothing about C/C++.
Roxifλsz 🇱🇹
are there any companies which solely works on haskell?
I'd guess those would be financial companies, maybe
Nyuke
and how many companies are there which solely work on cpp
Nyuke
many
Roxifλsz 🇱🇹
Pavel
and how many companies are there which solely work on cpp
many well, if it's a big company there are probably lots of technologies used I think no one will try to do everything in C++ (build scripts in C++? backend for corporate portal in C++?)
Francisco
How about doing things in a short time, but also having it run for a short time
Because compiling takes a lot of time, and for a scripting language like Python, you just want to execute right away
Francisco
you will save a fuckton of time on those 3 seconds you spent compiling
Good luck if you think all programs need 3 seconds to compile
Nyuke
brb playing csgo for a while
数学の恋人
they say haskell is best
I would say it's safer language but pretty useless
kλletaa
Good luck if you think all programs need 3 seconds to compile
if you write anything that large in python you're actually retarded
Nyuke
+1
:v
Pavel
yep as a primary language i was saying
well, every company I worked with 😄 some statistics from google results https://hackernoon.com/8-top-programming-languages-frameworks-of-2019-2f08d2d21a1
Francisco
if you write anything that large in python you're actually retarded
The thing is that interpreted languages are very convenient and leads to a faster development
Nyuke
well guess will learn js next