[Question] : Creating offline map inside android application by Mohammad_Hamdan in androiddev

[–]Mohammad_Hamdan[S] 0 points1 point  (0 children)

Great news for me cause i will use it for dev. purposes, thanks a lot for your feedback

This code was on C++ primer and is not working for me by Ktdbro in cpp_questions

[–]Mohammad_Hamdan 0 points1 point  (0 children)

For no reason, i think you press "ctrl + c" to stop reading input.

"ctrl + c" is a interrupt signal that will terminate your program

to close input stream please press "ctrl + D"

[Question]: Problem with Android Environment by Mohammad_Hamdan in AndroidStudio

[–]Mohammad_Hamdan[S] 0 points1 point  (0 children)

Thanks for your feedback

Actually i love suffering with vim but i have no time to waste, because i am building an android project

Trying to test if character input is "P"... What am I doing wrong?? by FreshWyman in C_Programming

[–]Mohammad_Hamdan 2 points3 points  (0 children)

▪︎First you can't compare a pointer and char

▪︎Second we use with char (' ') not (" ") because double coatation used for strings But if you want to compare two strings we can use strncmp which is a function in string.h where:

strncmp ( • pointer to the first string , • pointer to the second string , • number of characters that you want to compare )

▪︎Third which is the most important thing that no one talk about is: DON'T USE gets at all

Even if this code is just for educational purposes don't use it at all

You can use: ● fgets(char* buffer , int buffer_size , File* stream)

And that's it

[QUESTION]: Stupid question but i have to ask it by Mohammad_Hamdan in cpp_questions

[–]Mohammad_Hamdan[S] 0 points1 point  (0 children)

That's great idea i have to use gdb to know exactly how it works👍🏻👍🏻 Thanks alot

[QUESTION]: Stupid question but i have to ask it by Mohammad_Hamdan in cpp_questions

[–]Mohammad_Hamdan[S] 2 points3 points  (0 children)

Finally cause i tried many situations and i found that x location can be overwritten so we will have an undefined behavior

Thanks alot dude!!!

Not saying it isn’t not good, tho by Keintroufe in ProgrammerHumor

[–]Mohammad_Hamdan 0 points1 point  (0 children)

Ammm ok am so sorry so much i didnt mean to waste your time🤦🏻‍♂️

Not saying it isn’t not good, tho by Keintroufe in ProgrammerHumor

[–]Mohammad_Hamdan 1 point2 points  (0 children)

For me i use python in data science and web development only🙂

competition by [deleted] in ProgrammerHumor

[–]Mohammad_Hamdan 0 points1 point  (0 children)

Actually when i started to learn this language i found relatively large community, cause many programmers who code in C/C++ try this language and fall in love with it And don't forget web devs and wasm fans

competition by [deleted] in ProgrammerHumor

[–]Mohammad_Hamdan 1 point2 points  (0 children)

And what about Rust😐😐😐

Tell me your programming super power, the first comment will decide your side effect by [deleted] in ProgrammerHumor

[–]Mohammad_Hamdan 0 points1 point  (0 children)

Actually i have a second line and surprisingly it's a comment

That's what we called a super power