BinaryByter
BinaryByter
really
klimi
it is
BinaryByter
using goto is the worst idea one coudl possibly have
klimi
just solve the problem
klimi
and do find a way ariybd
BinaryByter
if you want to get your solution: scanf doesn't input anything when you add a space so your condition doesn't work
BinaryByter
i'll copy that message until you understand
Mask
Can i post a question here to which i need code??
Ибраги́м
Twenty years and time to retire. https://lists.boost.org/Archives/boost/2018/09/243442.php
Anonymous
Hi, guys someone work as junior software engineer?
BinaryByter
BinaryByter
at clinl
Anonymous
Looking for some path of books/ tutorials for Software Enginerr Developer, I’m currently take an Intership at position Junior Software Developer C++, and want to grow my knowledge in C++ someone can help me?
Anonymous
Programming language https://drive.google.com/drive/folders/0ByWO0aO1eI_MN1BEd3VNRUZENkU Books https://drive.google.com/drive/folders/0B0hgUX3me1_RNi1KTXBzXzdXSzA hacking ebook collection https://drive.google.com/drive/folders/0B-JzQsKoJaANbTFGN0RWLWhONms Books https://drive.google.com/drive/folders/0B09qtt10aqV1SGxRVXBWYmNIS2M Books https://drive.google.com/drive/folders/0B1v9Iy1jH3FXdlNDeUNHNEVsZlE Books https://drive.google.com/drive/folders/0B1Ef5shqGHDNRGEwd3BYb0N3Um8 C programming tutorial https://drive.google.com/drive/folders/0B1qoi1IlEKwaM2tSMFBmOGUyNzg Udemy course https://drive.google.com/drive/folders/0B1HQDi7EkA9XNlR3STF5SVJIVUk Programming books https://drive.google.com/drive/folders/0B2iEK7PB5AR-b01obXBHWHVHQzg Linux books https://drive.google.com/drive/folders/0B1Wzf8eTK3LTYWtqOGlnQldTV2c Books https://drive.google.com/drive/folders/0B_qpgvDTe8kraTQ2QkM2S19tQWs Books https://drive.google.com/drive/folders/0B4PtWlBoZ1rVSncxbi1JVFY4anM https://drive.google.com/drive/folders/0B3Qd1rlyIyR5bHo0dENpM1lSclk Banking exam preparation papers https://drive.google.com/drive/folders/0B079Cm0MfQeyS3R5cHVnb2RVUU0 Learning awareness banking https://drive.google.com/drive/folders/0B8CnCCd60bnzM3VSWFhKZ2Rzc2s Head first programming book collection https://drive.google.com/drive/folders/0B1W3DeV5S5BELXZRajkteW83WHM IBPS book collection for banking https://drive.google.com/drive/folders/0B4xFnW1qvXXgZnVkaUVEX2w4Zzg Reading material https://drive.google.com/drive/folders/0Bx_3I5qjqu3rSVBWMHpjLVRoREE 300 medical books https://drive.google.com/drive/folders/0BzQUrkcZOjAiYmQ0NTBjZmMtMDJjMS00OWViLTk0NWEtYTFhYzE2ZTZmYzdk Udemy the complete digital marketing course https://drive.google.com/drive/folders/0B-M90IqpPfRHNXZ6SkdMQlZOUkk Arduino https://drive.google.com/drive/folders/0B0TIoKgqQ9p5WC1pV2I0aHlKamc All type books https://drive.google.com/drive/folders/0B1dv5sqSPsPbfk1ZSXNud1pvWl9BV2Franh2ZFl0S0hweTBhT3QyNFUxWGgzQkFpOGUtd0k Mechanical engineering books https://drive.google.com/drive/folders/0B1k2RCDnejGvNFZWTWhJeDctWDQ Study books https://drive.google.com/drive/folders/0B6hG9OOiP0g2Zkh4M2x3WnVJNWs @udemyfree4u English https://drive.google.com/drive/folders/0B5xOSW6DBC5LfkVZWTJqYUZOblgyQnlhSlc2U1RJWUFyWjBnUXc0dHlrTHR5dEUySXNYc0E English grammer https://drive.google.com/drive/folders/0B1_NUA4_UggJYUIwc09LX1dfcDA GMAT, GRE, TOEFL, IELTS & LSAT - https://drive.google.com/drive/folders/0B2jZERjUXCHhZnB5T0tpY2ZyRmc Html essential training https://drive.google.com/drive/folders/0B3LfaGUUk6tiT18xZDRBY1FCVXc Lynda courses https://drive.google.com/drive/folders/0B5eJ2fw2iba1UlZna0FUWXF4UFU Mathematics https://drive.google.com/drive/folders/0BzeyVSBfx9yaWUMtUXZNLU9kM0k Php https://drive.google.com/drive/folders/0ByWO0aO1eI_MV0lhX1dkUlQ3YUk Programming books https://drive.google.com/drive/folders/0B2iEK7PB5AR-b01obXBHWHVHQzg Share if u care 😘 @udemyfree4u
^
Anonymous
Rokas Urbelis: ## Welcome We're very glad to welcome you to join the International C/C++ Group. You can invite others by https://t.me/programminginc ## Rules * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages right after joining will get you BANNED. * Reverse enginnering, hacking (not facebook, instagram, etc.) also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are ok (no homework requests, or "pls write entire program for me" requests). * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming will grant you a warning or an immediate ban if you spam right after joining. * Religion, politics and ideological topics are forbidden. ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
and read this
Paulo
Paulo
Paulo
In func1: ( ptr = first = &v1[0] ) != *ptr In func2: ( ptr = *ptr ) != ( first = &v1[0] ) , but *ptr != ( (void *) ptr = first = &v1[0] ) The question is, why in func2 "ptr" isnt equal to &v1[0]? and apparently the ptr = *ptr, the pointer is equal to your content.(?)
Paulo
Sorry for reposting this. I think now is more clear what is my doubt.
Marie
Fynn has 1/3 warnings... watch out! Reason for last warn: rules prohibit book requests
Anonymous
Someone run this program #include<stdio.h> #include<conio.h> main() { int a; char b; clrscr(); start: printf("Enter any number \n"); scanf("%d",&a); If(a%2==0) { printf("Even no \n"); } else { printf("Odd no \n"); } printf("Do u want to continue y/n \n"); scanf("%c",&b); if(b=='n') { goto start; } getch(); return 0; }
olli
olli
Than run that program which i have sent
Why? Are you facing any issues? conio.h is not C standard btw
Anonymous
But why ??
olli
Please don't, this is not guaranteed to work (7.21.5.2.2.) If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush function causes any unwritten data for that stream to be delivered to the host environment to be written to the file; otherwise, the behavior is undefined.
olli
The correct way would be to discard the whitespace by using scanf(" %c", &b); and then if (b == 'y') {...}
olli
But why rely on UB if you can use a guaranteed way?
olli
That's alright, so I would advise to learn it "right" in the first place, getting rid of bad practices might be hard
olli
And there are infact reasons to use goto. The code shown above is however not a good example of it's usage. Error, ressource handling and termination of nested loops might be possible use cases. To repeat reading values you can and should be using regular loops
Anonymous
But if we use scanf(" %c",&b); Than its wirking without using fflush
Anonymous
I have many other ways to soul problem but my question is why it is not working
Anonymous
scanf("%c",&b),
Anonymous
Than why its working scanf(" %c",&b); 😭
Anonymous
U should try to know bro
Anonymous
Sure 😁
olli
scanf("%c",&b),
After entering your number you confirm using "enter". This insert let's say a \n character to your input stream. So you stream might look like 1234\n. After reading the number, only the new line char is left. Once you ask to enter y or n your input stream looks like \ny. If you omit the space in scanf you are reading the next character in your stream, which is \n. y is still in your stream, you have not read it yet. Using the space in scanf you discard all whitespace characters in the stream and read the next "meaningful" one, so y will be read. Your stream is empty Edit: flushing the input stream can do whatever the implementers wanted it to do. If you are running a system, that clears the stream on flush, it will work too. In this case the flush will discard the new line element. However you are not guaranteed to see this behavior and flush might do nothing, in which case it would not work at all since your stream is not altered and you need to discard the character(s) on your own
BinaryByter
The reason for goto are switch statements
BinaryByter
Imho
Anonymous
Anonymous
Anonymous
Run it in turbo c and soul problem
Anonymous
In turbo c its not working
BinaryByter
It only reads pointers. The sigir you give it tells it how to preprocess the values
Anonymous
How to design ui in c++
BinaryByter
How to design ui in c++
start by learning c++
BinaryByter
then learn to google
BinaryByter
then, learn that Qt is shit
BinaryByter
then, learn that you should use C# for ui
BinaryByter
and C++ as a backend for that UI
klimi
o.o
Anonymous
start by learning c++
I know basics concept aboyt class and data structure.... I wand to start learnig gui....
klimi
opengl is nice
klimi
xlib is nice too
klimi
glfw, qt, gtk, wxwidgets, xlib, sdl, sfml
Anonymous
Okk
Anonymous
do it in C# please
it will be kind of problem on linux
BinaryByter
btw: "basic concepts about class and data structure" is about as vague and buzzwordy as "AI algorithms"
Anonymous
do it in C# please
Whtyy bout java only for ui
BinaryByter
Whtyy bout java only for ui
okay, use java then
Anonymous
Hoe to program two languages together
BinaryByter
idk
BinaryByter
well I do know
BinaryByter
you sacrifice three virgins and spill their blood over your graphics card
BinaryByter
then you have to say this: "I believe in saint ignucius, founder of the church of emacs"
klimi
-__-
BinaryByter
three times
BinaryByter
while rubbing the blood into the resistors of your GPU
Joe
Hi guys what does this mean: 1<<14