BinaryByter
dude just don't learn java if you cant bear learning the cases by heart
olli
You can't expect someone to guide you....
Avamander
If you actually learned them it should be rather trivial to learn a new one. The answer to your question about capitalization is that it depends on the writer. There's no definite rule that you *must* follow when writing C++/Java
Avamander
They don't have to.
Avamander
Most capitalization rules when you write your own Java are "You should"
Anonymous
Most programmers in Java uses CamelCase (style of writing): an identifier is written like: compoundWord (normally a single word is small while a compound Identifier is written like the identifier i've written before
Anonymous
A final(const in c/c++) identifier is all MAIUSC like: COMPOUND_WORD
Anonymous
Classes in java start always with capitalized letters and then follow the CamelCase rules
Anonymous
I think that is all you need for Java programming style
Anonymous
Then you have to study basic syntaxes and classes
Avamander
Java written for Android quite often has m as the first letter for variables that are non-public, non-static and s as the first letter for static field names.
Avamander
So it's all just a big convention when you actually name stuff.
Anonymous
Of course I explained you Pure Java, then there are a lot of conventions that you can follow. They are always a "You should", but you can follow the writing style that you prefer
Anonymous
In fact, most used style in Java (pure) is CamelCase that i introduced you before
Ritu Raj
If we execute return function, then code written after the return function would execute?
BinaryByter
No
BinaryByter
return completely stops the execution of the current functions
Ritu Raj
No
Thank you😇😇😇
Anonymous
No the block exit
Anonymous
why orig_eax return -1 ?
Talula
The book is called "Google".
Sara
Choud any one help me, how can i check two array if it,s has the same number of elements or not
Anonymous
With begin and end
Sara
I try hardly to find answer in google but I didn’t understand completely
Sara
On same index or different index?
I will do same calculation for every array of them then a wont to compare
Anonymous
#include <iterator> auto aBegin = std::begin(array); auto aEnd = std::end(array);
Talula
#include <stdio.h> int main(void) { int array1[] = {1,2,3,4,5,6,7,8,9,10}; int array2[10]; int i; for (i=0;i<10;i++) { //fixed the range here printf("Enter numbers: "); scanf("%d", &array2[i]); //fixed the indexing } for (i=0;i<10;i++) { //fixed the range here if (array1[i] != array2[i]) { printf("Not equal \n"); } else { printf("They are equal. \n"); } } }
Sara
Sara
This is my code
Anonymous
Or also you can do a for each like int arrayElements =0; for(auto count : array) { arrayElements ++; }
Sara
I do it as what you send but i think there is same mistakes
Mihail
Choud any one help me, how can i check two array if it,s has the same number of elements or not
Arrays have a fixed size and always have an element in them, so what exactly are you checking?
Mihail
It always has as many elements as it's size
Sara
The problem is i have to take two number from the user in base of 10 then i have to convert it to binary number, finally i have to check if the two numbers can be written in the same number of digits or not
Mihail
Well you can initially fill the array with a value like -1 then just count until you reach a -1 and that's how many elements you've put in it
Mihail
With a for that goes through the whole array
Sara
Like this
Mihail
No
Mihail
Start at 0
Mihail
And go up to the maximum size
Mihail
And also don't return a[i], but rather just i
klimi
don't make me warn you
Anonymous
Sorry
klimi
Like this
you dont understand the basics of programming
Nicolas
Hi c/c++ community
Sara
And go up to the maximum size
i dont know the max because it will done same calculations then the array will occur
Nicolas
I have problem on running my c++ program as I run get error on terminal saying "permission denied" help please
Nicolas
What IDE do you use?
Visual studio code on fedora 29.
Mihail
Also what exactly says permission denied? The compiler? Your program or what? Can you maybe show a screenshot?
Nicolas
Mihail
Nicolas
There 👆
Mihail
Mihail
What are you trying to do with the .cpp file?
Mihail
You can't just run that
Mihail
You have to compile it first
Mihail
Use g++ to compile it
Mihail
(Or clang)
Nicolas
Are you familia with this vs code on fedora distro?
BinaryByter
use vsccodium on fedora
Mihail
You're just complicating things
Mihail
Are you familia with this vs code on fedora distro?
g++ should come preinstalled on Fedora and that doesn't depend on VSCode
Nicolas
g++ should come preinstalled on Fedora and that doesn't depend on VSCode
How to compile with g++ while file is debugged in vs code
BinaryByter
Why tho?
vscodium is FOSS
BinaryByter
So?
the binary of vsccode isn't
Mihail
And like why does that matter
Mihail
Ok they collect data and put their logo, but like why bother someone trying to do something with your opinions and views about what he should use
Mihail
I agree it might be better, but that's completely besides the point
BinaryByter
And like why does that matter
vscode has telemetry enabled by default
BinaryByter
+ vscodium is in the package repositories while vscode requires addition of a ppa